From 7125440dc3ddd502a2db11c12629c0493f471a2c Mon Sep 17 00:00:00 2001 From: muXxer Date: Thu, 7 Mar 2024 17:51:07 +0100 Subject: [PATCH] Fix typo --- components/prometheus/metrics_tangle.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/prometheus/metrics_tangle.go b/components/prometheus/metrics_tangle.go index 0eead2c34..7f3506e8d 100644 --- a/components/prometheus/metrics_tangle.go +++ b/components/prometheus/metrics_tangle.go @@ -11,7 +11,7 @@ const ( strongTipsCount = "strong_tips_count" weakTipsCount = "weak_tips_count" - bookeBlocksTotal = "booked_blocks_total" + bookedBlocksTotal = "booked_blocks_total" missingBlocksCount = "missing_blocks_total" acceptedBlocksCount = "accepted_blocks_count" ) @@ -35,12 +35,12 @@ var TangleMetrics = collector.NewCollection(tangleNamespace, return float64(count), nil }), )), - collector.WithMetric(collector.NewMetric(bookeBlocksTotal, + collector.WithMetric(collector.NewMetric(bookedBlocksTotal, collector.WithType(collector.Counter), collector.WithHelp("Total number of blocks booked."), collector.WithInitFunc(func() { deps.Protocol.Events.Engine.Booker.BlockBooked.Hook(func(_ *blocks.Block) { - deps.Collector.Increment(tangleNamespace, bookeBlocksTotal) + deps.Collector.Increment(tangleNamespace, bookedBlocksTotal) }, event.WithWorkerPool(Component.WorkerPool)) }), )),