Commit Graph

6 Commits

Author SHA1 Message Date
7291f00f48 feat(metricsserver): add Gatherer method
Add explicit Gatherer() method to improve API discoverability
and prevent users from accidentally using prometheus.DefaultGatherer
instead of the custom registry.

Changes:
- Add Gatherer() method returning prometheus.Gatherer interface
- Add NewWithDefaultGatherer() constructor for opt-in default usage
- Update package docs with usage examples
- Add tests for both gatherer modes
2025-10-12 16:13:19 -07:00
fac5b1f275 metrics: add tests and documentation 2025-06-06 19:24:30 -07:00
0996167865 modernize + gofumpt 2025-04-19 22:19:02 -07:00
3f1f4436df metrics: have Registry() return a Registry instead of Registerer
(so it can also be used as a Gatherer)
2023-08-06 12:34:56 -07:00
6b6b22092e metrics: allow server to return errors 2023-07-08 21:13:31 -07:00
a1e600e8ae metricsserver: add helper for exporting prom metrics
(also from the monitor code)
2023-07-08 11:45:01 -07:00