diff --git a/src/telemetry/Manager.h b/src/telemetry/Manager.h index c235e74a43..a060d23271 100644 --- a/src/telemetry/Manager.h +++ b/src/telemetry/Manager.h @@ -341,6 +341,13 @@ public: */ std::string GetClusterJson() const; + /** + * @return The pointer to the prometheus-cpp registry used by the telemetry + * manager. This is public so that third parties (such as broker) can add + * elements to it directly. + */ + std::shared_ptr GetRegistry() const { return prometheus_registry; } + protected: template static auto WithLabelNames(Span xs, F continuation) {