Prometheus Client Library for Modern C++
Public Member Functions | List of all members
prometheus::Collectable Class Referenceabstract

Interface implemented by anything that can be used by Prometheus to collect metrics. More...

Inheritance diagram for prometheus::Collectable:
Inheritance graph
[legend]

Public Member Functions

virtual std::vector< MetricFamilyCollect () const =0
 Returns a list of metrics and their samples.
 

Detailed Description

Interface implemented by anything that can be used by Prometheus to collect metrics.

A Collectable has to be registered for collection. See Registry.