LogIt++
Header-only, macro-first C++ logging library
Loading...
Searching...
No Matches
logit::PrometheusTextFormatConfig Struct Reference

Configuration for Prometheus text exposition format output. More...

#include <PrometheusTextFormatConfig.hpp>

Public Attributes

bool include_help = true
 Emit HELP lines.
 
bool include_type = true
 Emit TYPE lines.
 
bool include_timestamp = false
 Emit sample timestamps.
 
std::string metric_prefix = "logit_"
 Prefix applied to built-in metric names.
 
std::vector< PrometheusLabel > const_labels
 Labels added to every sample.
 
bool include_logger_label = true
 Add logger label to built-in metrics.
 
std::string logger_label_name = "logger"
 Name of logger label.
 
bool include_instance_label = false
 Add instance label to built-in metrics.
 
std::string instance_label_name = "instance"
 Name of instance label.
 
std::string instance_label_value
 Value of instance label.
 
bool include_build_info = true
 Emit logit_build_info metric.
 

Detailed Description

Configuration for Prometheus text exposition format output.

Definition at line 45 of file PrometheusTextFormatConfig.hpp.

Member Data Documentation

◆ const_labels

std::vector<PrometheusLabel> logit::PrometheusTextFormatConfig::const_labels

Labels added to every sample.

Definition at line 50 of file PrometheusTextFormatConfig.hpp.

◆ include_build_info

bool logit::PrometheusTextFormatConfig::include_build_info = true

Emit logit_build_info metric.

Definition at line 56 of file PrometheusTextFormatConfig.hpp.

◆ include_help

bool logit::PrometheusTextFormatConfig::include_help = true

Emit HELP lines.

Definition at line 46 of file PrometheusTextFormatConfig.hpp.

◆ include_instance_label

bool logit::PrometheusTextFormatConfig::include_instance_label = false

Add instance label to built-in metrics.

Definition at line 53 of file PrometheusTextFormatConfig.hpp.

◆ include_logger_label

bool logit::PrometheusTextFormatConfig::include_logger_label = true

Add logger label to built-in metrics.

Definition at line 51 of file PrometheusTextFormatConfig.hpp.

◆ include_timestamp

bool logit::PrometheusTextFormatConfig::include_timestamp = false

Emit sample timestamps.

Definition at line 48 of file PrometheusTextFormatConfig.hpp.

◆ include_type

bool logit::PrometheusTextFormatConfig::include_type = true

Emit TYPE lines.

Definition at line 47 of file PrometheusTextFormatConfig.hpp.

◆ instance_label_name

std::string logit::PrometheusTextFormatConfig::instance_label_name = "instance"

Name of instance label.

Definition at line 54 of file PrometheusTextFormatConfig.hpp.

◆ instance_label_value

std::string logit::PrometheusTextFormatConfig::instance_label_value

Value of instance label.

Definition at line 55 of file PrometheusTextFormatConfig.hpp.

◆ logger_label_name

std::string logit::PrometheusTextFormatConfig::logger_label_name = "logger"

Name of logger label.

Definition at line 52 of file PrometheusTextFormatConfig.hpp.

◆ metric_prefix

std::string logit::PrometheusTextFormatConfig::metric_prefix = "logit_"

Prefix applied to built-in metric names.

Definition at line 49 of file PrometheusTextFormatConfig.hpp.


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