Incorrect Region Reported by service URL and Metric URL

11 views
Skip to first unread message

Siva Teja Varun Bysani

unread,
Mar 10, 2020, 8:49:08 AM3/10/20
to Google Cloud SQL discuss
Hi Team,
   Found an issue for us-central1. 

The Service URL  is giving the Region as us-central1

(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

Olu

unread,
Mar 12, 2020, 2:30:57 PM3/12/20
to Google Cloud SQL discuss
Hello, Siva

I was able to reproduce this issue using the monitoring API interface available on this documentation[1]. The region reported in the Response header for my CloudSQL Instance seem to be a broad region category, rather than specifically the region of the Instance. I would've recommended that the issue be reported on the issue tracker link[2] however, I observed a similar issue has already been reported on this link[3] and I can confirm that the issue has been forwarded to the API Engineers. They are reviewing the issue and you can be sure that updates would be posted on the issue link as soon as a fix or an update is available for the issue. 

Reply all
Reply to author
Forward
0 new messages