mirror of
https://github.com/tendermint/tendermint.git
synced 2026-03-27 20:15:21 +00:00
noop metrics
This commit is contained in:
@@ -155,6 +155,8 @@ func PrometheusMetrics(namespace string, labelsAndValues ...string) *Metrics {
|
||||
func NopMetrics() *Metrics {
|
||||
return &Metrics{
|
||||
Peers: discard.NewGauge(),
|
||||
PeersStored: discard.NewGauge(),
|
||||
PeersInactivated: discard.NewGauge(),
|
||||
PeerReceiveBytesTotal: discard.NewCounter(),
|
||||
PeerSendBytesTotal: discard.NewCounter(),
|
||||
PeerPendingSendBytes: discard.NewGauge(),
|
||||
|
||||
Reference in New Issue
Block a user