From 7ebbe495cbf84ee2cabdcde29e60f98fe46d8719 Mon Sep 17 00:00:00 2001 From: Andrew Chin Date: Tue, 28 Mar 2017 23:32:21 -0400 Subject: [PATCH] Fix wanlist typo in prometheus metric name This will be a breaking change for anyone who is currently monitoring the `ipfs_bitswap_wanlist_total` prometheus stat License: MIT Signed-off-by: Andrew Chin --- exchange/bitswap/wantmanager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchange/bitswap/wantmanager.go b/exchange/bitswap/wantmanager.go index 5017d653220..68f14f49321 100644 --- a/exchange/bitswap/wantmanager.go +++ b/exchange/bitswap/wantmanager.go @@ -36,7 +36,7 @@ type WantManager struct { func NewWantManager(ctx context.Context, network bsnet.BitSwapNetwork) *WantManager { ctx, cancel := context.WithCancel(ctx) - wantlistGauge := metrics.NewCtx(ctx, "wanlist_total", + wantlistGauge := metrics.NewCtx(ctx, "wantlist_total", "Number of items in wantlist.").Gauge() sentHistogram := metrics.NewCtx(ctx, "sent_all_blocks_bytes", "Histogram of blocks sent by"+ " this bitswap").Histogram(metricsBuckets)