Skip to content
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

Closed
flaky-bot bot opened this issue Feb 19, 2020 · 7 comments
Closed
Assignees
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@flaky-bot
Copy link

flaky-bot bot commented Feb 19, 2020

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

@flaky-bot flaky-bot bot added buildcop: issue priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Feb 19, 2020
@flaky-bot
Copy link
Author

flaky-bot bot commented Feb 20, 2020

Test passed in build 3e2ebaf (Build Status, Sponge)! Closing this issue.

@flaky-bot flaky-bot bot closed this as completed Feb 20, 2020
@flaky-bot
Copy link
Author

flaky-bot bot commented Feb 20, 2020

Test passed in build 3e2ebaf (Build Status, Sponge)! Closing this issue.

@flaky-bot flaky-bot bot reopened this Apr 7, 2020
@flaky-bot
Copy link
Author

flaky-bot bot commented Apr 7, 2020

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
buildURL: Build Status, Sponge
status: failed

@tmatsuo
Copy link
Contributor

tmatsuo commented Apr 8, 2020

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.">

@tmatsuo
Copy link
Contributor

tmatsuo commented Apr 8, 2020

There are more than 400 leaked metric descriptors.

I'll delete them manually tonight.

@tmatsuo
Copy link
Contributor

tmatsuo commented Apr 8, 2020

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))

@tmatsuo
Copy link
Contributor

tmatsuo commented Apr 8, 2020

Deleted all 494 metric descriptors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

2 participants