AlexanderThaller / prometheus_exporter

Helper libary to export prometheus metrics using tiny_http and rust-prometheus.
MIT License
28 stars 10 forks source link

Make it possible to configure metrics registry #14

Closed AlexanderThaller closed 2 years ago

AlexanderThaller commented 3 years ago

It would be nice to be able to use a different registry than the global one. For that the code needs to be extended to have a registry field that can be something like Option. In the None case the global one would be used. Maybe that would also allow different prometheus crate versions to be used. Probably not tho as the different versions would lead to different types for the Registry.

AlexanderThaller commented 2 years ago

Fixed by #26