Interface implemented by anything that can be used by Prometheus to collect metrics.
A Collectable has to be registered for collection. See Registry.
Definition at line 17 of file sources/includes/prometheus/collectable.h.

Public Member Functions | |
| virtual | ~Collectable ()=default |
| virtual std::vector< MetricFamily > | Collect () const =0 |
| Returns a list of metrics and their samples. More... | |
| virtual | ~Collectable ()=default |
| virtual std::vector< MetricFamily > | Collect () const =0 |
| Returns a list of metrics and their samples. More... | |
|
virtualdefault |
|
virtualdefault |
|
pure virtual |
Returns a list of metrics and their samples.
Implemented in prometheus::Family< T >, prometheus::Family< T >, prometheus::Registry, and prometheus::Registry.
|
pure virtual |
Returns a list of metrics and their samples.
Implemented in prometheus::Family< T >, prometheus::Family< T >, prometheus::Registry, and prometheus::Registry.