Skip to content

Commit 4fcae50

Browse files
author
Phil Winder
committed
Add 's' to metrics that are plurals.
1 parent c2b11df commit 4fcae50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
app = Flask(__name__)
88

99
# A counter to count the total number of HTTP requests
10-
REQUESTS = Counter('http_request_total', 'Total HTTP Requests (count)', ['method', 'endpoint', 'status_code'])
10+
REQUESTS = Counter('http_requests_total', 'Total HTTP Requests (count)', ['method', 'endpoint', 'status_code'])
1111

1212
# A gauge (i.e. goes up and down) to monitor the total number of in progress requests
13-
IN_PROGRESS = Gauge('http_request_inprogress', 'Number of in progress HTTP requests')
13+
IN_PROGRESS = Gauge('http_requests_inprogress', 'Number of in progress HTTP requests')
1414

1515
# A histogram to measure the latency of the HTTP requests
1616
TIMINGS = Histogram('http_request_duration_seconds', 'HTTP request latency (seconds)')

0 commit comments

Comments
 (0)