-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Metric name "_info" suffix gets trimmed #982
Comments
The relevant code is here...
@fstab, do you remember the specifics around why we sanitize the name? |
@fstab The code change was introduced as part of metric name collision work. Do you remember the specifics? |
We do have the same issue: Beans:
Rule:
returned metrics:
The deleted metrics works but the created metric is trimmed. |
Thanks for reporting this. The reason is that the
Unfortunately I think |
@fstab @iagotomas I will need to investigate the change after the pending release. The @doxsch Your issue is similar, but not easily solved since the metric is a counter, but the suffix |
@fstab @zeitlinger Looking at the OpenMetrics specification...
Given the specifier SHOULD, the code to sanitize the name is overly strict...
The I feel we need to investigate if removing the restriction in Thoughts? |
This isn't easy, because there are many corner cases. For example, if a user registers a Gauge named |
@doxsch can you create a new issue around the |
So, we just discussed this in the Prometheus Java community call, and we decided that we should support |
We have also encountered this issue and it has broken some of our Grafana dashboards. From our point of view, this is an incompatible change as it still worked with version 0.17.2. We cannot change the dashboards as otherwise the historical data would also be gone. |
@offermannu We are discussing possible changes. For your rules, what metric names and types ( |
Hi,
trying to implement a ruleset for some service, running jmx_exporter 1.0.1 as standalone I'm facing a weird issue which I'm not sure I understand.
I have the following rule for which the "_info" suffix in the name gets dropped. If I employ another suffix or add additional characters to the suffix "_info" it remains.
Resulting metric name:
jvm_runtime{runtime="OpenJDK_Runtime_Environment",vendor="Amazon.com_Inc.",version="17.0.7+7-LTS"} 1.0
Why does "_info" get removed from the name?
The text was updated successfully, but these errors were encountered: