mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-07 04:53:44 +02:00
Further collapse tcp & udp into metric labels for zt_data
This commit is contained in:
parent
dc2ab00564
commit
96ab0bab43
2 changed files with 7 additions and 10 deletions
|
@ -157,18 +157,16 @@ namespace ZeroTier {
|
||||||
{ packet_errors.Add({{"error_type", "internal_server_error"}, {"direction", "tx"}}) };
|
{ packet_errors.Add({{"error_type", "internal_server_error"}, {"direction", "tx"}}) };
|
||||||
|
|
||||||
// Data Sent/Received Metrics
|
// Data Sent/Received Metrics
|
||||||
prometheus::simpleapi::counter_family_t udp
|
prometheus::simpleapi::counter_family_t data
|
||||||
{ "zt_udp_data", "number of bytes ZeroTier has transmitted or received via UDP" };
|
{ "zt_data", "number of bytes ZeroTier has transmitted or received via UDP" };
|
||||||
prometheus::simpleapi::counter_metric_t udp_recv
|
prometheus::simpleapi::counter_metric_t udp_recv
|
||||||
{ udp.Add({{"direction","rx"}}) };
|
{ data.Add({{"protocol","udp"},{"direction","rx"}}) };
|
||||||
prometheus::simpleapi::counter_metric_t udp_send
|
prometheus::simpleapi::counter_metric_t udp_send
|
||||||
{ udp.Add({{"direction","tx"}}) };
|
{ data.Add({{"protocol","udp"},{"direction","tx"}}) };
|
||||||
prometheus::simpleapi::counter_family_t tcp
|
|
||||||
{ "zt_tcp_data", "number of bytes ZeroTier has transmitted or received via TCP" };
|
|
||||||
prometheus::simpleapi::counter_metric_t tcp_send
|
prometheus::simpleapi::counter_metric_t tcp_send
|
||||||
{ tcp.Add({{"direction", "tx"}}) };
|
{ data.Add({{"protocol","tcp"},{"direction", "tx"}}) };
|
||||||
prometheus::simpleapi::counter_metric_t tcp_recv
|
prometheus::simpleapi::counter_metric_t tcp_recv
|
||||||
{ tcp.Add({{"direction", "rx"}}) };
|
{ data.Add({{"protocol","tcp"},{"direction", "rx"}}) };
|
||||||
|
|
||||||
// Network Metrics
|
// Network Metrics
|
||||||
prometheus::simpleapi::gauge_metric_t network_num_joined
|
prometheus::simpleapi::gauge_metric_t network_num_joined
|
||||||
|
|
|
@ -96,10 +96,9 @@ namespace ZeroTier {
|
||||||
extern prometheus::simpleapi::counter_metric_t pkt_error_internal_server_error_out;
|
extern prometheus::simpleapi::counter_metric_t pkt_error_internal_server_error_out;
|
||||||
|
|
||||||
// Data Sent/Received Metrics
|
// Data Sent/Received Metrics
|
||||||
extern prometheus::simpleapi::counter_family_t udp;
|
extern prometheus::simpleapi::counter_family_t data;
|
||||||
extern prometheus::simpleapi::counter_metric_t udp_send;
|
extern prometheus::simpleapi::counter_metric_t udp_send;
|
||||||
extern prometheus::simpleapi::counter_metric_t udp_recv;
|
extern prometheus::simpleapi::counter_metric_t udp_recv;
|
||||||
extern prometheus::simpleapi::counter_family_t tcp;
|
|
||||||
extern prometheus::simpleapi::counter_metric_t tcp_send;
|
extern prometheus::simpleapi::counter_metric_t tcp_send;
|
||||||
extern prometheus::simpleapi::counter_metric_t tcp_recv;
|
extern prometheus::simpleapi::counter_metric_t tcp_recv;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue