-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monitoring.api.v3.api-client.custom_metric_test: test_custom_metric failed #2938
Comments
Test passed in build 3e2ebaf (Build Status, Sponge)! Closing this issue. |
Test passed in build 3e2ebaf (Build Status, Sponge)! Closing this issue. |
Looks like this issue is flaky. 😟 I'm going to leave this open and stop commenting. A human should fix and close this. commit: 5b5599f |
The error: googleapiclient.errors.HttpError: <HttpError 429 when requesting https://monitoring.googleapis.com/v3/projects/python-docs-samples-tests/metricDescriptors?alt=json returned "Your metric descriptor quota has been exhausted."> |
There are more than 400 leaked metric descriptors. I'll delete them manually tonight. |
Deleting them with the following code: import os
from google.cloud import monitoring_v3
PROJECT_ID = os.environ['GOOGLE_CLOUD_PROJECT']
client = monitoring_v3.MetricServiceClient()
project_name = client.project_path(PROJECT_ID)
for descriptor in client.list_metric_descriptors(project_name):
if 'my_metric' in descriptor.name:
client.delete_metric_descriptor(descriptor.name)
print("{} is deleted".format(descriptor.name)) |
Deleted all 494 metric descriptors. |
monitoring.api.v3.api-client.custom_metric_test: test_custom_metric failed
buildID: 6c0760b
buildURL: https://source.cloud.google.com/results/invocations/c2e0bb48-570a-4841-813c-7a121c273a90
status: failed
The text was updated successfully, but these errors were encountered: