google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

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

Open f0o opened this issue 3 years ago • 2 comments

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

f0o avatar Oct 27 '22 12:10 f0o

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 avatar Apr 18 '23 14:04 parthea

+1 here

ntindle avatar Nov 22 '23 20:11 ntindle