From 04eef831f227c041ea8b0b28dd01b455e8686bae Mon Sep 17 00:00:00 2001 From: Phil Winder Date: Thu, 9 Nov 2017 11:42:17 +0000 Subject: [PATCH] Improve naming of metrics. --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index d07799f..610833b 100644 --- a/app.py +++ b/app.py @@ -7,13 +7,13 @@ app = Flask(__name__) # A counter to count the total number of HTTP requests -REQUESTS = Counter('http_requests_total', 'Total HTTP Requests (count)', ['method', 'endpoint']) +REQUESTS = Counter('http_request_total', 'Total HTTP Requests (count)', ['method', 'endpoint']) # A gauge (i.e. goes up and down) to monitor the total number of in progress requests -IN_PROGRESS = Gauge('http_requests_inprogress', 'Number of in progress HTTP requests') +IN_PROGRESS = Gauge('http_request_inprogress', 'Number of in progress HTTP requests') # A histogram to measure the latency of the HTTP requests -TIMINGS = Histogram('http_requests_latency_seconds', 'HTTP request latency (seconds)') +TIMINGS = Histogram('http_request_duration_seconds', 'HTTP request latency (seconds)') # Standard Flask route stuff.