Skip to content

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

Open
@f0o

Description

@f0o

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: monitoringIssues related to the Cloud Monitoring API.type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions