-
Notifications
You must be signed in to change notification settings - Fork 805
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
CollectorRegistry should be just another type of MultiCollector #903
Comments
This is a great point, thanks for bringing this up. I agree having Only caveat is that Registry would not override Anyway, still valueble to have |
|
Notice CollectorRegistry effectively is just yet another type (subclass) of MultiCollector.
It has same responsibility - to produce MetricsSnapshots, just method is named scrape() instead of collect().
Even the filtering api needs to match between one and another (see that ScrapeRequest leaked down into MultiCollector). Also it aggregates list of
prometheusNames
, its just not exposed.I dont think this is coincidence...
With this change one could use registry at intermediate levels to compose simple collectors (like gauges, etc) to bigger collectors. And in the end composite of composites could be used as source for http metrics server.
marcin
The text was updated successfully, but these errors were encountered: