prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Functions
prometheus_backend.cpp File Reference

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>
Include dependency graph for prometheus_backend.cpp:

Functions

int main ()
 

Detailed Description

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.

Function Documentation

◆ main()

int main ( )