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

Public Member Functions | |
| std::string | to_statsd_format (bool datadog_format=false) const |
| Convert to StatsD format. | |
Public Attributes | |
| std::string | name |
| metric_type | type |
| double | value |
| double | sample_rate = 1.0 |
| std::unordered_map< std::string, std::string > | tags |
StatsD-specific metric representation.
Definition at line 194 of file metric_exporters.h.
|
inline |
Convert to StatsD format.
Definition at line 204 of file metric_exporters.h.
References kcenon::monitoring::counter, kcenon::monitoring::gauge, kcenon::monitoring::histogram, name, sample_rate, kcenon::monitoring::summary, tags, kcenon::monitoring::timer, type, and value.
Referenced by TEST_F().

| std::string kcenon::monitoring::statsd_metric_data::name |
Definition at line 195 of file metric_exporters.h.
Referenced by TEST_F(), and to_statsd_format().
| double kcenon::monitoring::statsd_metric_data::sample_rate = 1.0 |
Definition at line 198 of file metric_exporters.h.
Referenced by TEST_F(), and to_statsd_format().
| std::unordered_map<std::string, std::string> kcenon::monitoring::statsd_metric_data::tags |
Definition at line 199 of file metric_exporters.h.
Referenced by TEST_F(), and to_statsd_format().
| metric_type kcenon::monitoring::statsd_metric_data::type |
Definition at line 196 of file metric_exporters.h.
Referenced by TEST_F(), and to_statsd_format().
| double kcenon::monitoring::statsd_metric_data::value |
Definition at line 197 of file metric_exporters.h.
Referenced by TEST_F(), and to_statsd_format().