-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Rename file descriptor metrics #412
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
Rename file descriptor metrics #412
Conversation
|
I initially implemented it like that due to the IMHO better hierarchical naming. Then there was some discussion regarding "Prometheus client implementation" conformance in #175 and #170. In the meantime I've seen different projects exposing Prometheus metrics not adhering to any Prometheus-proposed naming conventions I whonder if it's really worth it. In one comment I said that Micrometer is the system, not that one registry implementation for Prometheus. Anyways, I consider the metric names part of the API, so with whatever we go with should be stable before |
|
@mweirauch Thank you for sharing the background, and my apologies I didn't search to find the previous discussion before proposing the changes.
I think I agree, and maybe we are better off registering a filter when Prometheus registry implementation is used that renames the metrics that don't match what Micrometer otherwise prefers to call them. This seems more practical since other systems will likely have their own preferences.
I agree with this also. |
|
Agree with all of the above. And this is a good idea:
|
(Hopefully) makes it more clear that the `open` and `max` part of the metric refers to file descriptors. This may also help querying these metrics since their prefix is now the same.
7ad950a to
6169b27
Compare
Where Prometheus has an opinion about the metric name it receives for a specific metric and it differs from Micrometer's generic preferred naming, the `PrometheusMetricRenameFilter` will convert the metric name. This allows Micrometer to use its preferred metric name but cater to Prometheus where it expects something specific, without affecting other registries.
3939d34 to
87a6ac4
Compare
|
@jkschneider I have added a |
|
Must admit, I like the renaming proposal to
Let's say we "don't export it" (officially) and we stick to the (re-proposed) hierarchical name? Adding to that, I don't see any big overlaps in metric naming e.g. between Micrometer, Dropwizard and Prometheus-Java. These are heterogenous per-se. |
|
I also like the renaming of While it is nice to have metrics remain the same between languages (go and java apps for example), they truly diverge very quickly (tracking coroutines versus threads for example). Keeping them the same is only helpful if the metric names are non-intuitive to begin with ( |
|
I think we'll leave the rename filter off by default to hopefully lessen the surprise, but document its presence for those that care to follow the Prometheus "standard" names. Glad it exists now, great idea! Accepted rename to |
(Hopefully) makes it more clear that the
openandmaxpart of the metric refers to file descriptors. This may also help querying these metrics since their prefix is now the same.The
FileDescriptorMetricsare also never being used, but I will send a separate pull request for that.