-
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
Cannot add custom versions of existing system metrics #155
Comments
I'd argue this is correct behaviour in this case. Exporting the same metric name with different semantics and labels will cause confusion for downstream users, so you should prefix your metrics to separate them. |
@beorn7 probably can you give the most elaborate answer on this and how this might be affected/resolved by his planned changed to client_golang. Part of that includes switching the default HTTP handler instrumentation to histograms. So you might want to use histograms instead of summaries right away. |
@msiebuhr I'm working on a |
https://github.com/msiebuhr/lumbermill/blob/prometheus/http.go#L51 That's where you need 'UninstrumentedHandler`. |
I'm writing a proxy that ingests Heroku router/runtime metrics logs and converts it to prometheus-ingestable metrics. (See my fork of lumbermill.)
I thought it'd be nice to output metrics in the same form as the ones used elsewhere in Prometheus, ex
http_request_size_bytes
with the relevant upstreamjob
,instance
andendpoint
tags. (Though ideally I'd like to include HTTP Method and response code).Trying to register a handler for this:
Conflicts with the existing handler for the very same data:
I've tried unregistering the existing SummaryVec, but to no avail:
Detects that a handler with a different set of labels has been there previously, and more or less gives me the same panic as above.
The text was updated successfully, but these errors were encountered: