Merge pull request #2832 from hosseinsh/metrics-tags

fixing metrics: source is not dict
This commit is contained in:
Hossein Shafagh 2019-07-18 17:03:25 -07:00 committed by GitHub
commit 3beaedc2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ def sync_source(source):
log_data["message"] = "Done syncing source" log_data["message"] = "Done syncing source"
current_app.logger.debug(log_data) 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())) red.set(f'{function}.last_success', int(time.time()))