mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-05 03:53:44 +02:00
Disable peer metrics for central controllers
Can change in the future if needed, but given the traffic our controllers serve, that's going to be a *lot* of data
This commit is contained in:
parent
d2f4d47860
commit
ed9ffdb4f2
3 changed files with 5 additions and 1 deletions
|
@ -311,7 +311,7 @@ endif
|
||||||
ifeq ($(ZT_CONTROLLER),1)
|
ifeq ($(ZT_CONTROLLER),1)
|
||||||
override CXXFLAGS+=-Wall -Wno-deprecated -std=c++17 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
|
override CXXFLAGS+=-Wall -Wno-deprecated -std=c++17 -pthread $(INCLUDES) -DNDEBUG $(DEFS)
|
||||||
override LDLIBS+=-Lext/libpqxx-7.7.3/install/ubuntu22.04/lib -lpqxx -lpq ext/hiredis-1.0.2/lib/ubuntu22.04/libhiredis.a ext/redis-plus-plus-1.3.3/install/ubuntu22.04/lib/libredis++.a -lssl -lcrypto
|
override LDLIBS+=-Lext/libpqxx-7.7.3/install/ubuntu22.04/lib -lpqxx -lpq ext/hiredis-1.0.2/lib/ubuntu22.04/libhiredis.a ext/redis-plus-plus-1.3.3/install/ubuntu22.04/lib/libredis++.a -lssl -lcrypto
|
||||||
override DEFS+=-DZT_CONTROLLER_USE_LIBPQ
|
override DEFS+=-DZT_CONTROLLER_USE_LIBPQ -DZT_NO_PEER_METRICS
|
||||||
override INCLUDES+=-I/usr/include/postgresql -Iext/libpqxx-7.7.3/install/ubuntu22.04/include -Iext/hiredis-1.0.2/include/ -Iext/redis-plus-plus-1.3.3/install/ubuntu22.04/include/sw/
|
override INCLUDES+=-I/usr/include/postgresql -Iext/libpqxx-7.7.3/install/ubuntu22.04/include -Iext/hiredis-1.0.2/include/ -Iext/redis-plus-plus-1.3.3/install/ubuntu22.04/include/sw/
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -176,6 +176,7 @@ namespace ZeroTier {
|
||||||
prometheus::simpleapi::counter_family_t network_packets
|
prometheus::simpleapi::counter_family_t network_packets
|
||||||
{ "zt_network_packets", "number of incoming/outgoing packets per network" };
|
{ "zt_network_packets", "number of incoming/outgoing packets per network" };
|
||||||
|
|
||||||
|
#ifndef ZT_NO_PEER_METRICS
|
||||||
// PeerMetrics
|
// PeerMetrics
|
||||||
prometheus::CustomFamily<prometheus::Histogram<uint64_t>> &peer_latency =
|
prometheus::CustomFamily<prometheus::Histogram<uint64_t>> &peer_latency =
|
||||||
prometheus::Builder<prometheus::Histogram<uint64_t>>()
|
prometheus::Builder<prometheus::Histogram<uint64_t>>()
|
||||||
|
@ -189,6 +190,7 @@ namespace ZeroTier {
|
||||||
{ "zt_peer_packets", "number of packets to/from a peer" };
|
{ "zt_peer_packets", "number of packets to/from a peer" };
|
||||||
prometheus::simpleapi::counter_family_t peer_packet_errors
|
prometheus::simpleapi::counter_family_t peer_packet_errors
|
||||||
{ "zt_peer_packet_errors" , "number of incoming packet errors from a peer" };
|
{ "zt_peer_packet_errors" , "number of incoming packet errors from a peer" };
|
||||||
|
#endif
|
||||||
|
|
||||||
// General Controller Metrics
|
// General Controller Metrics
|
||||||
prometheus::simpleapi::gauge_metric_t network_count
|
prometheus::simpleapi::gauge_metric_t network_count
|
||||||
|
|
|
@ -107,11 +107,13 @@ namespace ZeroTier {
|
||||||
extern prometheus::simpleapi::gauge_family_t network_num_multicast_groups;
|
extern prometheus::simpleapi::gauge_family_t network_num_multicast_groups;
|
||||||
extern prometheus::simpleapi::counter_family_t network_packets;
|
extern prometheus::simpleapi::counter_family_t network_packets;
|
||||||
|
|
||||||
|
#ifndef ZT_NO_PEER_METRICS
|
||||||
// Peer Metrics
|
// Peer Metrics
|
||||||
extern prometheus::CustomFamily<prometheus::Histogram<uint64_t>> &peer_latency;
|
extern prometheus::CustomFamily<prometheus::Histogram<uint64_t>> &peer_latency;
|
||||||
extern prometheus::simpleapi::gauge_family_t peer_path_count;
|
extern prometheus::simpleapi::gauge_family_t peer_path_count;
|
||||||
extern prometheus::simpleapi::counter_family_t peer_packets;
|
extern prometheus::simpleapi::counter_family_t peer_packets;
|
||||||
extern prometheus::simpleapi::counter_family_t peer_packet_errors;
|
extern prometheus::simpleapi::counter_family_t peer_packet_errors;
|
||||||
|
#endif
|
||||||
|
|
||||||
// General Controller Metrics
|
// General Controller Metrics
|
||||||
extern prometheus::simpleapi::gauge_metric_t network_count;
|
extern prometheus::simpleapi::gauge_metric_t network_count;
|
||||||
|
|
Loading…
Add table
Reference in a new issue