Loading...
Searching...
No Matches
collectable.h
#pragma once
#include <vector>
#include "prometheus/detail/core_export.h"
namespace prometheus {
struct MetricFamily;
}
namespace prometheus {
class PROMETHEUS_CPP_CORE_EXPORT Collectable {
public:
virtual ~Collectable() = default;
virtual std::vector<MetricFamily> Collect() const = 0;
};
} // namespace prometheus
prometheus::Collectable
Interface implemented by anything that can be used by Prometheus to collect metrics.
Definition collectable.h:17
prometheus::Collectable::Collect
virtual std::vector< MetricFamily > Collect() const =0
Returns a list of metrics and their samples.