Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable reporting gRPC codes as labels in cortex and ingester_client request duration metrics #6561

Closed
wants to merge 5 commits into from

Conversation

duricanikolic
Copy link
Contributor

@duricanikolic duricanikolic commented Nov 4, 2023

What this PR does

This PR does the following changes:

  • updates vendored dskit to revision b3823cb.
  • enables reporting gRPC codes as values of the status_code label in cortex_request_duration_seconds metrics. Before this PR, all gRPC codes were reported as "error".
  • enables reporting gRPC codes as values of the status_code label in cortex_ingester_client_request_duration_seconds metrics. Before this PR, all gRPC codes were reported as "error".
  • Updates all Mimir dashboards to allow reporting gRPC codes as status_codes (In order to achieve this, the pattern for recognizing valid status codes should be changed from [a-z]+ to [a-zA-Z]+, since gRPC status codes contain upper cases letters too, e.g., OK, FailedPrecondition, Canceled, etc.).

Note: The biggest change introduced by this PR is that successful status_code labels of cortex_request_duration_seconds and cortex_ingester_client_request_duration_seconds metrics have changed from respectively success and 2xx to OK.

Which issue(s) this PR fixes or relates to

Part of #6008

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@duricanikolic duricanikolic force-pushed the yuri/handling-errors-new branch 3 times, most recently from 44c42b7 to c7dc5b5 Compare November 4, 2023 12:52
@duricanikolic duricanikolic force-pushed the yuri/handling-errors-new branch from c7dc5b5 to 6647195 Compare November 4, 2023 14:18
@duricanikolic duricanikolic force-pushed the yuri/handling-errors-new branch from 603f696 to bee61b0 Compare November 4, 2023 15:12
@duricanikolic duricanikolic marked this pull request as ready for review November 4, 2023 18:06
@duricanikolic duricanikolic requested review from grafanabot and a team as code owners November 4, 2023 18:06
@duricanikolic duricanikolic self-assigned this Nov 4, 2023
@duricanikolic duricanikolic marked this pull request as draft November 4, 2023 19:25
@duricanikolic duricanikolic requested review from pstibrany and removed request for pstibrany November 6, 2023 09:08
@duricanikolic duricanikolic deleted the yuri/handling-errors-new branch November 6, 2023 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant