prom 0.1.0
Client-independent C++23 Prometheus/OpenMetrics metric abstraction
Loading...
Searching...
No Matches
Public Attributes | List of all members
prom::CounterSpec Struct Reference

Declarative description of a counter, for Registry::counter / Counter::Counter. More...

#include <counter.hpp>

Collaboration diagram for prom::CounterSpec:
Collaboration graph
[legend]

Public Attributes

std::string_view name {}
 
std::string_view help {}
 
Labels labels {}
 
Unit unit {}
 
comms::DisplayInfo display {}
 

Detailed Description

Declarative description of a counter, for Registry::counter / Counter::Counter.

Use designated initializers: CounterSpec{.name = "http_requests_total", .help = "..."}.

Member Data Documentation

◆ display

comms::DisplayInfo prom::CounterSpec::display {}

◆ help

std::string_view prom::CounterSpec::help {}

◆ labels

Labels prom::CounterSpec::labels {}

◆ name

std::string_view prom::CounterSpec::name {}

◆ unit

Unit prom::CounterSpec::unit {}

The documentation for this struct was generated from the following file: