-
Notifications
You must be signed in to change notification settings - Fork 804
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
allowing to keep invalid counter names (with no _total suffix) #653
Conversation
…ses when it is hard to straightaway move to the OpenMetrics format Signed-off-by: dnazaruk <[email protected]>
@fstab please, review |
Hi, I finally got back to this, and I have a few points:
Instead of starting the monitored application with metric_relabel_configs:
- source_labels: [__name__]
regex: '(.*)_total'
target_label: __name__
replacement: '${1}' Given the new issues this PR would introduce (result depends on the Prometheus version, and it is no longer possible to name a counter |
@fstab thank you for the possible workaround description! I guess, let's have this pull request closed then... |
Is there any way this can be reopened? |
There is no need to update the |
This is what we are doing for now, but that won’t work long-term. Spring Boot actuator 3.5.x for example already requires the 0.10.0 client library, and we have.a heavy dependency on Spring Boot. Also note that this isn’t just about a few Grafana dashboards: we use remote write to feed promscale and populate a Timescale database; and alerts to feed a ServiceNow ticket management system. That change breaks the entire ecosystem. |
I agree with @franck102. This should be reopened. Upgrading to 0.12 was required to get Jakarta servlet support (cf. #647), but this breaking change came in at the same time. Now, we're blocked -- we can't upgrade Jetty to v. 11 because that requires Jakarta not javax servlets, but upgrading this lib to work with the new Jetty version brings in this breaking change. What I don't understand is how the resource representation changes if the client keeps asking for Help in resolving this conundrum is much appreciated. |
@fstab , can you or one of the other maintainers of this project comment on my previous input? WDYT? |
Setting |
That sounds like it could still produce a breaking change, @fstab , if I have counters named |
No, I am talking about this PR here: If we merge this PR, then we'll get a property |
I agree that this PR may not be the right way to restore the old behaviour with respect to counter metric names. I could start working on a new PR that adds a Thank you |
I have noticed #791 which adds |
In some cases keeping broken counter names (with no _total suffix) will be really helpful. For example when old names are documented and are in use with a lot of dashboards being precreated for them. Or in case it is sugnificant not to loose connection to old data when counters are renamed.
Possibly this might be a grace option allowing some grace period (for a year or two) for the teams to move to the new names. For us this is quite an effort shared between several development teams. And we are afraid that OpenMetrics format might change too because it is still an RFC draft. When OpenMetrics are becoming an RFC this will be steady argument for us to move to this format.
Links to the discussions #640, #649