begin adding some metrics to tcp-proxy
This commit is contained in:
parent
0fb9d43998
commit
342657e629
4 changed files with 67 additions and 6 deletions
24
tcp-proxy/Metrics.cpp
Normal file
24
tcp-proxy/Metrics.cpp
Normal file
|
@ -0,0 +1,24 @@
|
|||
#include <prometheus/simpleapi.h>
|
||||
|
||||
|
||||
namespace ZeroTier {
|
||||
namespace Metrics {
|
||||
prometheus::simpleapi::counter_metric_t udp_open_failed
|
||||
{"udp_open_failed", "UDP open failed"};
|
||||
|
||||
prometheus::simpleapi::counter_metric_t tcp_opened
|
||||
{"tcp_opened", "TCP opened"};
|
||||
prometheus::simpleapi::counter_metric_t tcp_closed
|
||||
{"tcp_closed", "TCP closed"};
|
||||
|
||||
prometheus::simpleapi::counter_metric_t tcp_bytes_in
|
||||
{"tcp_byes_in", "TCP bytes in"};
|
||||
prometheus::simpleapi::counter_metric_t tcp_bytes_out
|
||||
{"tcp_byes_out", "TCP bytes out"};
|
||||
|
||||
prometheus::simpleapi::counter_metric_t udp_bytes_in
|
||||
{"udp_bytes_in", "UDP bytes in"};
|
||||
prometheus::simpleapi::counter_metric_t udp_bytes_out
|
||||
{"udp_bytes_out", "UDP bytes out"};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue