Skip to content

Move Prometheus metric interfaces into their own package

Patrick Steinhardt requested to merge pks-prometheus-metrics into master

The praefect package contains a set of interfaces for Prometheus metrics that are mainly to enable swapping out metrics in tests. While these interfaces are currently used in Praefect, only, they have a more general use and should thus be decoupled from Praefect's code base.

Move those interfaces into a new package "internal/prometheus/metrics" to make them accessible to other users outside of Praefect.


Another preparatory MR for !1914 (merged).

Merge request reports

Loading