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

Add native histogram support to mimir-mixin #7152

Closed
wants to merge 12 commits into from

Conversation

krajorama
Copy link
Contributor

@krajorama krajorama commented Jan 17, 2024

What this PR does

Recording rules, alerts, dashboards.

Using the new panel functions added in jsonnet-libs.
Also for the latency percentile panel, switch away from using recorded values as normal values work fine (we use normal values in the per pod latency panel anyway).

Which issue(s) this PR fixes or relates to

Fixes #7154
Related to #4173
Depends on grafana/jsonnet-libs#1121

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.

Recording rules, alerts, dashboards.

Signed-off-by: György Krajcsovits <[email protected]>
@krajorama krajorama requested a review from a team as a code owner January 17, 2024 14:30
@krajorama krajorama marked this pull request as draft January 17, 2024 14:30
Same as for QPS panel.

Signed-off-by: György Krajcsovits <[email protected]>
Otherwise yaxes is changed from "reqps" to "short" in the generated
dashboard.

Signed-off-by: György Krajcsovits <[email protected]>
@@ -99,24 +99,24 @@ local filename = 'mimir-writes.json';
.addPanelIf(
$._config.gateway_enabled,
$.panel('Requests / sec') +
$.statPanel('sum(rate(cortex_request_duration_seconds_count{%s, route=~"%s"}[$__rate_interval]))' % [$.jobMatcher($._config.job_names.gateway), $.queries.write_http_routes_regex], format='reqps')
$.statPanel('sum(%s)' % utils.nativeClassicHistogramCountRate($.queries.gateway.writeRequestsPerSecondMetric, $.queries.gateway.writeRequestsPerSecondSelector), format='reqps')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note to reviewers: start here.

@krajorama
Copy link
Contributor Author

superseded by #7455

@krajorama krajorama closed this Feb 26, 2024
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.

Allow using native histogram version of latency metrics in Mimir
1 participant