1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-29 17:36:38 +08:00

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>
This commit is contained in:
Andrew Chin
2017-03-28 23:32:21 -04:00
parent a8b56d3ad7
commit 7ebbe495cb

View File

@ -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)