Fix crash from bad instantiation of histogram

This commit is contained in:
Grant Limberg 2023-05-03 15:07:30 -07:00
parent 3b7883f7bf
commit ac9a006835
No known key found for this signature in database
GPG key ID: 8F2F97D3BE8D7735

View file

@ -178,7 +178,7 @@ namespace ZeroTier {
// PeerMetrics // PeerMetrics
prometheus::CustomFamily<prometheus::Histogram<uint64_t>> peer_latency prometheus::CustomFamily<prometheus::Histogram<uint64_t>> peer_latency
{ "zt_peer_latency", "peer latency (ms)", {{}}}; { "zt_peer_latency", "peer latency (ms)", {}};
prometheus::simpleapi::gauge_family_t peer_path_count prometheus::simpleapi::gauge_family_t peer_path_count
{ "zt_peer_path_count", "number of paths to peer" }; { "zt_peer_path_count", "number of paths to peer" };
prometheus::simpleapi::counter_family_t peer_incoming_packets prometheus::simpleapi::counter_family_t peer_incoming_packets