From 2bf235f41301875251f676e97de99dd7a0ea6d3c Mon Sep 17 00:00:00 2001 From: Alec Henninger Date: Thu, 21 Nov 2024 11:50:43 -0500 Subject: [PATCH] Increment status count metric --- rbac/management/principal/it_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rbac/management/principal/it_service.py b/rbac/management/principal/it_service.py index 31871fde8..ace0160d9 100644 --- a/rbac/management/principal/it_service.py +++ b/rbac/management/principal/it_service.py @@ -133,7 +133,7 @@ def request_service_accounts(self, bearer_token: str, client_ids: Optional[list[ # Save the metrics for the successful call. Successful does not mean that we received an OK response, # but that we were able to reach IT's SSO instead and get a response from them. - it_request_status_count.labels(method=requests.get.__name__.upper(), status=response.status_code) + it_request_status_count.labels(method="GET", status=response.status_code).inc() if not status.is_success(response.status_code): LOGGER.error(