Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels