Skip to content

Commit d8d2a1e

Browse files
author
Rudolf Vriend
committed
add status label back to api_requests_total
1 parent a678397 commit d8d2a1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

watcher/watcher.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ def _start_response_wrapper(status, headers, exc_info=None):
234234
status_code = 'none'
235235

236236
labels.append("status:{0}".format(status_code))
237+
detail_labels.append("status:{0}".format(status_code))
237238

238239
self.metric_client.timing('api_requests_duration_seconds', time.time() - start, tags=labels)
239240
self.metric_client.increment('api_requests_total', tags=detail_labels)

0 commit comments

Comments
 (0)