Skip to content

Commit

Permalink
Send source to librato
Browse files Browse the repository at this point in the history
Include `APP_METRICS_LIBRATO_SOURCE` in every request when submiting
metrics to librato
  • Loading branch information
doubleo2 committed Jun 26, 2014
1 parent 45c8167 commit 3097237
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app_metrics/tasks.py
Expand Up @@ -179,4 +179,5 @@ def redis_gauge_task(slug, current_value, **kwargs):
def librato_metric_task(name, num, **kwargs):
api = librato.connect(settings.APP_METRICS_LIBRATO_USER,
settings.APP_METRICS_LIBRATO_TOKEN)
api.submit(name, num, **kwargs)
source = settings.APP_METRICS_LIBRATO_SOURCE
api.submit(name, num, source=source, **kwargs)

0 comments on commit 3097237

Please sign in to comment.