You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When following metrics are harvested, leading colon is removed and rest of the colons are replaced with underscore.
Using feature flag pkg.translator.prometheus.NormalizeName I was expecting to retain the colons.
Prometheus allows these metrics to be harvested and does not changes the metric name. Check attached screenshot of Prometheus showing metrics with colon.
# HELP foobar with colon
# TYPE foobar counter
:foo::bar_total 7736
Describe the solution you'd like
Fix behavior of featureGate ** pkg.translator.prometheus.NormalizeName** to allow colons in metric names so that behavior is same as Prometheus client.
Describe alternatives you've considered
Add another featureGate to translator to allow colon in metric names.
pkg.translator.prometheus.AllowColonInMetricNames
Additional context
No response
The text was updated successfully, but these errors were encountered:
The metric name specifies the general feature of a system that is measured (e.g. http_requests_total - the total number of HTTP requests received). It may contain ASCII letters and digits, as well as underscores and colons. It must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*
Is your feature request related to a problem? Please describe.
When following metrics are harvested, leading colon is removed and rest of the colons are replaced with underscore.
Using feature flag pkg.translator.prometheus.NormalizeName I was expecting to retain the colons.
Prometheus allows these metrics to be harvested and does not changes the metric name. Check attached screenshot of Prometheus showing metrics with colon.
Describe the solution you'd like
Fix behavior of featureGate ** pkg.translator.prometheus.NormalizeName** to allow colons in metric names so that behavior is same as Prometheus client.
Describe alternatives you've considered
Add another featureGate to translator to allow colon in metric names.
pkg.translator.prometheus.AllowColonInMetricNames
Additional context
No response
The text was updated successfully, but these errors were encountered: