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

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