From 36ebba64916e87391bf5f1ad73f51b88bed799b1 Mon Sep 17 00:00:00 2001 From: Hossein Shafagh Date: Thu, 18 Jul 2019 15:16:01 -0700 Subject: [PATCH] source is not dict --- lemur/common/celery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/common/celery.py b/lemur/common/celery.py index 67780957..b701a9eb 100644 --- a/lemur/common/celery.py +++ b/lemur/common/celery.py @@ -343,7 +343,7 @@ def sync_source(source): log_data["message"] = "Done syncing source" current_app.logger.debug(log_data) - metrics.send(f"{function}.success", 'counter', 1, metric_tags=source) + metrics.send(f"{function}.success", 'counter', 1, metric_tags={"source": source}) red.set(f'{function}.last_success', int(time.time()))