diff --git a/src/exporter.py b/src/exporter.py index 26f4abe..5a30844 100644 --- a/src/exporter.py +++ b/src/exporter.py @@ -279,14 +279,15 @@ def track_task_event(self, event): if counter_name == event["type"]: counter.labels(**_labels).inc() + logger.debug( + "Incremented metric='{}' labels='{}'", counter._name, labels + ) elif ( event["type"] != "task-sent" ): # task-sent is sent by various hosts (webservers, task creators etc.) which cause label cardinality # pylint: disable=line-too-long # increase unaffected counters by zero in order to make them visible counter.labels(**_labels).inc(0) - logger.debug("Incremented metric='{}' labels='{}'", counter._name, labels) - # observe task runtime if event["type"] == "task-succeeded": self.celery_task_runtime.labels(**labels).observe(task.runtime)