Monday, March 9, 2020

[google-cloud-sql-discuss] Incorrect Region Reported by service URL and Metric URL

Hi Team,
   Found an issue for us-central1. 

The Service URL  is giving the Region as us-central1
https://www.googleapis.com/sql/v1beta4/projects/<Project name> /instances

(Part of response)

{
  "items": [
    {
      "instanceType": "CLOUD_SQL_INSTANCE",
      "region": "us-central1",
      "gceZone": "us-central1-a"
    },

But the Stack Driver URL for metrics of the same DB giving the region as us-central
https://monitoring.googleapis.com:443/v3/projects/<Same Project Name>?filter=metric.type="cloudsql.googleapis.com/database/mysql/innodb_buffer_pool_pages_dirty"&interval.startTime=2020-02-20T04:00:28Z&interval.endTime=2020-02-21T04:35:28Z&aggregation.perSeriesAligner=ALIGN_MEAN&aggregation.alignmentPeriod=60s

(part of response)

{ "timeSeries": [ { "metric": { "type": "cloudsql.googleapis.com/database/mysql/innodb_buffer_pool_pages_dirty" }, "resource": { "type": "cloudsql_database", "labels": { "region": "us-central", } },

Ideally Both End Points should give same region name

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/185fe6ba-963c-4c55-b31c-9fed1116d3f5%40googlegroups.com.

No comments:

Post a Comment