metrics: Make labels more speakable
All checks were successful
/ test (push) Successful in 2m40s
/ deploy (push) Successful in 4m35s

This commit is contained in:
lagertonne 2024-12-23 14:36:08 +01:00
parent 2886d887f5
commit 22ac146110

View file

@ -6,7 +6,7 @@ from inventory.models import Item
class ItemCountCollector(object): class ItemCountCollector(object):
def collect(self): 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 yield counter