Skip to content

Commit

Permalink
Merge pull request RedHatInsights#1326 from RedHatInsights/itservice-…
Browse files Browse the repository at this point in the history
…metrics-inc

Increment status count metric
  • Loading branch information
alechenninger authored Nov 21, 2024
2 parents 966edb5 + ff32aa0 commit 205971a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rbac/management/principal/it_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 205971a

Please sign in to comment.