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

End-to-end tests for the prometheus-cpp backend: drive prom metrics, then assert on the text the prometheus-cpp registry would scrape. More...

#include <prom/prometheus_cpp/adapter.hpp>
#include <prom/registry.hpp>
#include <gtest/gtest.h>
#include <prometheus/registry.h>
#include <prometheus/text_serializer.h>
#include <memory>
#include <string>
Include dependency graph for test_prometheus_cpp.cpp:

Functions

 TEST (PrometheusCpp, BackendName)
 
 TEST (PrometheusCpp, CounterIncrements)
 
 TEST (PrometheusCpp, GaugeSetAndLabels)
 
 TEST (PrometheusCpp, HistogramObserves)
 
 TEST (PrometheusCpp, SummaryObserves)
 
 TEST (PrometheusCpp, StateSetExposesOneSeriesPerState)
 
 TEST (PrometheusCpp, InfoExposesLabelsAtValueOne)
 

Detailed Description

End-to-end tests for the prometheus-cpp backend: drive prom metrics, then assert on the text the prometheus-cpp registry would scrape.

Function Documentation

◆ TEST() [1/7]

TEST ( PrometheusCpp  ,
BackendName   
)

◆ TEST() [2/7]

TEST ( PrometheusCpp  ,
CounterIncrements   
)

◆ TEST() [3/7]

TEST ( PrometheusCpp  ,
GaugeSetAndLabels   
)

◆ TEST() [4/7]

TEST ( PrometheusCpp  ,
HistogramObserves   
)

◆ TEST() [5/7]

TEST ( PrometheusCpp  ,
InfoExposesLabelsAtValueOne   
)

◆ TEST() [6/7]

TEST ( PrometheusCpp  ,
StateSetExposesOneSeriesPerState   
)

◆ TEST() [7/7]

TEST ( PrometheusCpp  ,
SummaryObserves   
)