From 22ac14611006a0eb9c6248b7fec938d80ff2d97b Mon Sep 17 00:00:00 2001 From: lagertonne Date: Mon, 23 Dec 2024 14:36:08 +0100 Subject: [PATCH] metrics: Make labels more speakable --- core/core/metrics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/core/metrics.py b/core/core/metrics.py index 16a826d..083bda2 100644 --- a/core/core/metrics.py +++ b/core/core/metrics.py @@ -6,7 +6,7 @@ from inventory.models import Item class ItemCountCollector(object): def collect(self): - counter = CounterMetricFamily("item_count", "Current number of items", labels=['event', 'state']) + counter = CounterMetricFamily("item_count", "Current number of items", labels=['event', 'returned_state']) yield counter