|
Monitoring System 0.1.0
System resource monitoring with pluggable collectors and alerting
|
Prometheus-specific metric representation. More...
#include <metric_exporters.h>

Public Member Functions | |
| std::string | to_prometheus_text () const |
| Convert to Prometheus text format. | |
Public Attributes | |
| std::string | name |
| metric_type | type |
| double | value |
| std::chrono::system_clock::time_point | timestamp |
| std::unordered_map< std::string, std::string > | labels |
| std::string | help_text |
Private Member Functions | |
| std::string | escape_label_value (const std::string &label_value) const |
Prometheus-specific metric representation.
Definition at line 122 of file metric_exporters.h.
|
inlineprivate |
Definition at line 180 of file metric_exporters.h.
Referenced by to_prometheus_text().

|
inline |
Convert to Prometheus text format.
Definition at line 133 of file metric_exporters.h.
References kcenon::monitoring::counter, escape_label_value(), kcenon::monitoring::gauge, help_text, kcenon::monitoring::histogram, labels, name, kcenon::monitoring::summary, kcenon::monitoring::timer, timestamp, type, and value.

| std::string kcenon::monitoring::prometheus_metric_data::help_text |
Definition at line 128 of file metric_exporters.h.
Referenced by to_prometheus_text().
| std::unordered_map<std::string, std::string> kcenon::monitoring::prometheus_metric_data::labels |
Definition at line 127 of file metric_exporters.h.
Referenced by to_prometheus_text().
| std::string kcenon::monitoring::prometheus_metric_data::name |
Definition at line 123 of file metric_exporters.h.
Referenced by to_prometheus_text().
| std::chrono::system_clock::time_point kcenon::monitoring::prometheus_metric_data::timestamp |
Definition at line 126 of file metric_exporters.h.
Referenced by to_prometheus_text().
| metric_type kcenon::monitoring::prometheus_metric_data::type |
Definition at line 124 of file metric_exporters.h.
Referenced by to_prometheus_text().
| double kcenon::monitoring::prometheus_metric_data::value |
Definition at line 125 of file metric_exporters.h.
Referenced by to_prometheus_text().