diff options
author | Kurkó Mihály <kurkomisi@users.noreply.github.com> | 2018-11-09 17:20:51 +0800 |
---|---|---|
committer | Martin Holst Swende <martin@swende.se> | 2018-11-09 17:20:51 +0800 |
commit | f574c4e74b12d275d24b209aac8dd98ed9b9bb52 (patch) | |
tree | 5635b4f3532a9dd9b356b8bfea41ba1d63f49905 /p2p | |
parent | 870efeef01ad45f1e06bbe4479e5afa9986f3518 (diff) | |
download | dexon-f574c4e74b12d275d24b209aac8dd98ed9b9bb52.tar.gz dexon-f574c4e74b12d275d24b209aac8dd98ed9b9bb52.tar.zst dexon-f574c4e74b12d275d24b209aac8dd98ed9b9bb52.zip |
metrics, p2p: add ephemeral registry (#18067)
* metrics, p2p: add ephemeral registry
* metrics: fix linter issue
Diffstat (limited to 'p2p')
-rw-r--r-- | p2p/metrics.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/metrics.go b/p2p/metrics.go index d7873f39a..8df82bb07 100644 --- a/p2p/metrics.go +++ b/p2p/metrics.go @@ -47,8 +47,8 @@ var ( egressConnectMeter = metrics.NewRegisteredMeter(MetricsOutboundConnects, nil) // Meter counting the egress connections egressTrafficMeter = metrics.NewRegisteredMeter(MetricsOutboundTraffic, nil) // Meter metering the cumulative egress traffic - PeerIngressRegistry = metrics.NewPrefixedChildRegistry(metrics.DefaultRegistry, MetricsInboundTraffic+"/") // Registry containing the peer ingress - PeerEgressRegistry = metrics.NewPrefixedChildRegistry(metrics.DefaultRegistry, MetricsOutboundTraffic+"/") // Registry containing the peer egress + PeerIngressRegistry = metrics.NewPrefixedChildRegistry(metrics.EphemeralRegistry, MetricsInboundTraffic+"/") // Registry containing the peer ingress + PeerEgressRegistry = metrics.NewPrefixedChildRegistry(metrics.EphemeralRegistry, MetricsOutboundTraffic+"/") // Registry containing the peer egress meteredPeerFeed event.Feed // Event feed for peer metrics meteredPeerCount int32 // Actually stored peer connection count |