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

The configuration a Scope applies to every metric created through it. More...

#include <scope.hpp>

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

Public Attributes

std::string prefix {}
 Prepended to every metric name (e.g. "foo_").
 
Labels const_labels {}
 Merged into every metric's constant labels; a metric's own labels win on a name collision.
 
comms::DisplayInfo display {}
 Default display metadata; per-metric display fields override these.
 

Detailed Description

The configuration a Scope applies to every metric created through it.

Member Data Documentation

◆ const_labels

Labels prom::ScopeConfig::const_labels {}

Merged into every metric's constant labels; a metric's own labels win on a name collision.

◆ display

comms::DisplayInfo prom::ScopeConfig::display {}

Default display metadata; per-metric display fields override these.

◆ prefix

std::string prom::ScopeConfig::prefix {}

Prepended to every metric name (e.g. "foo_").


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