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

Proper way of reporting a custom metric counter (such as a request counter) #11095

Open
f0o opened this issue Oct 27, 2022 · 2 comments
Open
Labels
api: monitoring Issues related to the Cloud Monitoring API. type: question Request for information or clarification. Not an issue.

Comments

@f0o
Copy link

f0o commented Oct 27, 2022

I'm having a hard time wrapping my head on how to report a custom request counter (or any counter) using monitoring_v3.

The examples show how I report a single gauge-like value; How am I supposed to report/increment a counter-like metric? Do I need to keep track of the counter across all threads myself?

This would be so much easier if OpenTelemetry's trace & metrics would work with GCP and not just either-or...

Helpful for any pointers

@product-auto-label product-auto-label bot added the api: monitoring Issues related to the Cloud Monitoring API. label Oct 27, 2022
@atulep atulep added the type: question Request for information or clarification. Not an issue. label Dec 6, 2022
@parthea
Copy link
Contributor

parthea commented Apr 18, 2023

I'm going to transfer this issue to the google-cloud-python repository as we are preparing to move the code for google-cloud-monitoring to that repository in the next 1-2 weeks.

@parthea parthea transferred this issue from googleapis/python-monitoring Apr 18, 2023
@ntindle
Copy link

ntindle commented Nov 22, 2023

+1 here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: monitoring Issues related to the Cloud Monitoring API. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

4 participants