|
prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
|
Install the prometheus-cpp backend as the process default, record a few samples through prom's client-independent API, and print the scrape text a prometheus::Exposer would serve at /metrics.
More...
#include <prom/prom.hpp>#include <prom/prometheus_cpp/adapter.hpp>#include <prometheus/registry.h>#include <prometheus/text_serializer.h>#include <iostream>#include <memory>
Functions | |
| int | main () |
Install the prometheus-cpp backend as the process default, record a few samples through prom's client-independent API, and print the scrape text a prometheus::Exposer would serve at /metrics.
| int main | ( | ) |