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

#include <PrometheusHttpServerLogger.hpp>

Public Attributes

PrometheusTextFormatConfig format
 
std::string address = "0.0.0.0"
 
unsigned short port = 9090
 
std::string path = "/metrics"
 
std::string health_path = "/health"
 
bool enable_health_endpoint = true
 
std::function< void(std::vector< PrometheusMetricFamily > &)> on_collect
 
bool start_immediately = true
 

Detailed Description

Definition at line 40 of file PrometheusHttpServerLogger.hpp.

Member Data Documentation

◆ address

std::string logit::PrometheusHttpServerLogger::Config::address = "0.0.0.0"

Definition at line 42 of file PrometheusHttpServerLogger.hpp.

◆ enable_health_endpoint

bool logit::PrometheusHttpServerLogger::Config::enable_health_endpoint = true

Definition at line 46 of file PrometheusHttpServerLogger.hpp.

◆ format

PrometheusTextFormatConfig logit::PrometheusHttpServerLogger::Config::format

Definition at line 41 of file PrometheusHttpServerLogger.hpp.

◆ health_path

std::string logit::PrometheusHttpServerLogger::Config::health_path = "/health"

Definition at line 45 of file PrometheusHttpServerLogger.hpp.

◆ on_collect

std::function<void(std::vector<PrometheusMetricFamily>&)> logit::PrometheusHttpServerLogger::Config::on_collect

Definition at line 47 of file PrometheusHttpServerLogger.hpp.

◆ path

std::string logit::PrometheusHttpServerLogger::Config::path = "/metrics"

Definition at line 44 of file PrometheusHttpServerLogger.hpp.

◆ port

unsigned short logit::PrometheusHttpServerLogger::Config::port = 9090

Definition at line 43 of file PrometheusHttpServerLogger.hpp.

◆ start_immediately

bool logit::PrometheusHttpServerLogger::Config::start_immediately = true

Definition at line 48 of file PrometheusHttpServerLogger.hpp.


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