begin adding some metrics to tcp-proxy

This commit is contained in:
Grant Limberg 2024-05-06 19:11:45 -07:00
parent 0fb9d43998
commit 342657e629
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735
4 changed files with 67 additions and 6 deletions

21
tcp-proxy/Metrics.hpp Normal file
View 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_