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
21
tcp-proxy/Metrics.hpp
Normal file
21
tcp-proxy/Metrics.hpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#ifndef _TCP_PROXY_METRICS_H_
|
||||
#define _TCP_PROXY_METRICS_H_
|
||||
|
||||
#include "../node/Metrics.hpp"
|
||||
|
||||
namespace ZeroTier {
|
||||
namespace Metrics {
|
||||
extern prometheus::simpleapi::counter_metric_t udp_open_failed;
|
||||
|
||||
extern prometheus::simpleapi::counter_metric_t tcp_opened;
|
||||
extern prometheus::simpleapi::counter_metric_t tcp_closed;
|
||||
|
||||
extern prometheus::simpleapi::counter_metric_t tcp_bytes_in;
|
||||
extern prometheus::simpleapi::counter_metric_t tcp_bytes_out;
|
||||
|
||||
extern prometheus::simpleapi::counter_metric_t udp_bytes_in;
|
||||
extern prometheus::simpleapi::counter_metric_t udp_bytes_out;
|
||||
}
|
||||
}
|
||||
|
||||
#endif // _TCP_PROXY_METRICS_H_
|
Loading…
Add table
Add a link
Reference in a new issue