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

Report gRPC status codes as labels in request duration metrics #7144

Merged
merged 2 commits into from
Jan 17, 2024

Conversation

duricanikolic
Copy link
Contributor

@duricanikolic duricanikolic commented Jan 16, 2024

What this PR does

This PR does the following things:

  • Sets dskit's server.Config.ReportGRPCCodesInInstrumentationLabel to true, making ingester report gRPC status codes as status_code labels in the ``cortex_request_duration_seconds` metric by default.
  • Report gRPC status codes as status_code lables in cortex_ingester_client_request_duration_seconds metric by default.
  • Deprecates the ingester.client.report-grpc-codes-in-instrumentation-label-enabled CLI flag, and sets its default value to true. This CLI flag will be removed in Mimir 2.14.0, but the default behaviour of Mimir will be as the CLI flag were set to true.

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].
  • about-versioning.md updated with experimental features.

@duricanikolic duricanikolic force-pushed the yuri/grpc-errors branch 4 times, most recently from 34f767e to 3eecf06 Compare January 17, 2024 00:43
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
@duricanikolic duricanikolic marked this pull request as ready for review January 17, 2024 06:26
@duricanikolic duricanikolic requested review from a team as code owners January 17, 2024 06:26
pkg/ingester/client/client.go Outdated Show resolved Hide resolved
pkg/ingester/client/client.go Outdated Show resolved Hide resolved
@pracucci pracucci self-requested a review January 17, 2024 09:51
CHANGELOG.md Outdated Show resolved Hide resolved
pkg/mimir/modules.go Outdated Show resolved Hide resolved
pkg/ingester/client/client.go Outdated Show resolved Hide resolved
Signed-off-by: Yuri Nikolic <durica.nikolic@grafana.com>
Copy link
Collaborator

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@duricanikolic duricanikolic merged commit a0f2856 into main Jan 17, 2024
28 checks passed
@duricanikolic duricanikolic deleted the yuri/grpc-errors branch January 17, 2024 12:10
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.

3 participants