google-cloud-python
google-cloud-python copied to clipboard
Proper way of reporting a custom metric counter (such as a request counter)
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
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.
+1 here