Prometheus Client Library for Modern C++
|
Interface implemented by anything that can be used by Prometheus to collect metrics. More...
#include <collectable.h>
Public Member Functions | |
virtual std::vector< MetricFamily > | Collect () const =0 |
Returns a list of metrics and their samples. | |
Interface implemented by anything that can be used by Prometheus to collect metrics.
A Collectable has to be registered for collection. See Registry.
|
pure virtual |
Returns a list of metrics and their samples.
Implemented in prometheus::Family< T >, and prometheus::Registry.