Closed aaaaahaaaaa closed 11 months ago
Iirc, if the metric has the form workload.googleapis.com/foo/bar
, the UI will render foo as the category. Can you try that?
So the name of the metric would include the /
?
That doesn't work, OpenTelemetry raises the following exception:
Exception: Expected ASCII string of maximum length 63 characters but got foo/bar.
That was fixed in https://github.com/open-telemetry/opentelemetry-python/pull/3442. Can you try a newer version of OpenTelemetry API/SDK?
@aaaaahaaaaa is this still an issue for you?
@aabmass Sorry for the late feedback, this one slipped through the cracks.
It works, the prefix before the /
appears as the category. Thank you :)
For the record, the name of metric in the UI still appears as the full string with the prefix. So category
-> category/metric
.
Based on the example here, the name of the counter (
request_counter
) ends up being both used for the name of the metric (workload.googleapis.com/request_counter
) and the name of theActive metric category
under Cloud Monitoring. The result is:Is there a way a define the category in such a way that the results would:
And therefore group multiple custom metrics under the same category?