@cryptotaxi247 / kubo / commits / 7ebbe495c

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 <achin@eminence32.net>

Andrew Chin committed Mar 28, 2017 at 23:32 UTC 7ebbe495cbf84ee2cabdcde29e60f98fe46d8719
1 file changed +1 -1
exchange/bitswap/wantmanager.go
+1 -1
@@ -36,7 +36,7 @@ type WantManager struct {
36
37 func NewWantManager(ctx context.Context, network bsnet.BitSwapNetwork) *WantManager {
38 ctx, cancel := context.WithCancel(ctx)
39 - wantlistGauge := metrics.NewCtx(ctx, "wanlist_total",
39 + wantlistGauge := metrics.NewCtx(ctx, "wantlist_total",
40 "Number of items in wantlist.").Gauge()
41 sentHistogram := metrics.NewCtx(ctx, "sent_all_blocks_bytes", "Histogram of blocks sent by"+
42 " this bitswap").Histogram(metricsBuckets)