-
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
Consider optional disabling of metric sorting #483
Comments
@beorn7, after looking at the code, you would like to add a option to the Registry to avoid this call : client_golang/prometheus/registry.go Line 533 in f30f428
If this is the case, can I work one this or can you give me some hint? |
Yeah, the implementation of this will be straight forward, obviously. The devil is in the detail of how to design the interface. I'm currently considering a separate r := registry.New(registry.Opts{DisableSorting: true, PedanticChecks: true}) That would avoid a combinatorial explosion of constructors (we already have I would like to postpone work on this particular issue until the grand design of this is done (and then it will be trivial to do). I'm currently working on something like a design doc for v0.10 to put it up for discussion. |
With extremely large exposition (example: kube-state-metrics on a large cluster will expose hundreds of MiB of metrics data), sorting of metrics becomes a quite significant computational burden. As metrics sorting is not required for valid expositions, a registry could provide an option to not sort after gathering metrics.
The text was updated successfully, but these errors were encountered: