Skip to content

Remove call to list and create metricdescriptors#286

Merged
lvaylet merged 1 commit into
google:masterfrom
realschwa:realschwa/remove_calls_to_metric_descriptors
Oct 29, 2022
Merged

Remove call to list and create metricdescriptors#286
lvaylet merged 1 commit into
google:masterfrom
realschwa:realschwa/remove_calls_to_metric_descriptors

Conversation

@realschwa
Copy link
Copy Markdown
Contributor

@realschwa realschwa commented Oct 28, 2022

There is no reason to call ListMetricDesriptors and CreateMetricDescriptors anymore.
CreateTimeSeries now handles creating and updating MetricDescriptors explicitly. Customers using this script have observed

ERROR - 429 Quota exceeded for quota metric 'Descriptor read requests' and limit 'Descriptor read requests per minute' of service 'monitoring.googleapis.com'

see: https://cloud.google.com/monitoring/custom-metrics/creating-metrics#auto-creation

@realschwa realschwa force-pushed the realschwa/remove_calls_to_metric_descriptors branch from a19e44d to c82a085 Compare October 28, 2022 15:40
@lvaylet lvaylet added bug Something isn't working p/cloud_monitoring Cloud Monitoring provider issue exporter labels Oct 28, 2022
@lvaylet lvaylet linked an issue Oct 29, 2022 that may be closed by this pull request
@lvaylet lvaylet merged commit 0a6a0fb into google:master Oct 29, 2022
lvaylet pushed a commit that referenced this pull request Nov 25, 2022
…toring exporter to prevent Quota Exceeded errors (#286)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working exporter p/cloud_monitoring Cloud Monitoring provider issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exporter of Cloud Monitoring failing by metrics read

2 participants