mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 20:48:21 +00:00
Add GetRegistry() method for retrieving access to prometheus-cpp registry
This commit is contained in:
parent
128bf3fe9f
commit
2267de21e6
1 changed files with 7 additions and 0 deletions
|
@ -341,6 +341,13 @@ public:
|
||||||
*/
|
*/
|
||||||
std::string GetClusterJson() const;
|
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<prometheus::Registry> GetRegistry() const { return prometheus_registry; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
template<class F>
|
template<class F>
|
||||||
static auto WithLabelNames(Span<const LabelView> xs, F continuation) {
|
static auto WithLabelNames(Span<const LabelView> xs, F continuation) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue