Add metrics for view/task time

This commit is contained in:
Raphael Michel
2017-03-25 21:38:42 +01:00
parent f2378168c1
commit 4514bd7e53
7 changed files with 25 additions and 10 deletions

View File

@@ -210,5 +210,9 @@ Provided metrics
"""
http_view_requests = Counter("http_view_requests", "Total number of HTTP requests made.",
["status_code", "method", "url_name"])
http_view_times = Histogram("http_view_times", "Return time of views.",
["status_code", "method", "url_name"])
celery_task_runs = Counter("celery_task_runs", "Total calls to a celery task",
["task_name", "status"])
celery_task_times = Histogram("celery_task_times", "Call time of a celery task",
["task_name"])