Register A Collector with this Collector Registory
Unregister A Collector with this CollectorRegistry
Write out the text version 0.0.4 of the given MetricFamilySamples contained in the CollectorRegistry.
Write out the text version 0.0.4 of the given MetricFamilySamples contained in the CollectorRegistry.
See http://prometheus.io/docs/instrumenting/exposition_formats/ for the output format specification
A CollectorRegistry is a registry of Collectors.
It represents the concurrently shared state which holds the information of the metrics in question.
On Creation
Due to how prometheus scraping occurs, only one CollectorRegistry is generally useful per application. There are generally 2 approaches.
1. Create your own registry. Register Metrics with it. Expose that. Advantages: Full Control Of the Code 2. Use the global defaultRegistry Advantages: Easier Interop with Java libraries that may not give an option for interaction with arbitrary CollectorRegistries.