Skip to content

Commit

Permalink
Fix "queue length" panel on Ruler dashboard (#8006)
Browse files Browse the repository at this point in the history
* Fix "queue length" panel on Ruler dashboard

* Add changelog entry

* Regenerate files
  • Loading branch information
charleskorn authored Apr 30, 2024
1 parent 6af4273 commit 37e2aa1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
* [ENHANCEMENT] Alerts: exclude `529` and `598` status codes from failure codes in `MimirRequestsError`. #7889
* [BUGFIX] Dashboards: Fix regular expression for matching read-path gRPC ingester methods to include querying of exemplars, label-related queries, or active series queries. #7676
* [BUGFIX] Dashboards: Fix user id abbreviations and column heads for Top Tenants dashboard. #7724
* [BUGFIX] Dashboards: fix incorrect query used for "queue length" panel on "Ruler" dashboard. #8006

### Jsonnet

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29143,7 +29143,7 @@ data:
"span": 4,
"targets": [
{
"expr": "sum by(user) (rate(cortex_prometheus_notifications_queue_length{cluster=~\"$cluster\", job=~\"($namespace)/((ruler|cortex|mimir|mimir-backend.*))\"}[$__rate_interval]))\n /\nsum by(user) (rate(cortex_prometheus_notifications_queue_capacity{cluster=~\"$cluster\", job=~\"($namespace)/((ruler|cortex|mimir|mimir-backend.*))\"}[$__rate_interval])) > 0\n",
"expr": "sum by(user) (cortex_prometheus_notifications_queue_length{cluster=~\"$cluster\", job=~\"($namespace)/((ruler|cortex|mimir|mimir-backend.*))\"})\n /\nsum by(user) (cortex_prometheus_notifications_queue_capacity{cluster=~\"$cluster\", job=~\"($namespace)/((ruler|cortex|mimir|mimir-backend.*))\"}) > 0\n",
"format": "time_series",
"legendFormat": "{{ user }}",
"legendLink": null
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions operations/mimir-mixin/dashboards/ruler.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ local filename = 'mimir-ruler.json';
.addPanel(
$.timeseriesPanel('Queue length') +
$.queryPanel(|||
sum by(user) (rate(cortex_prometheus_notifications_queue_length{%s}[$__rate_interval]))
sum by(user) (cortex_prometheus_notifications_queue_length{%s})
/
sum by(user) (rate(cortex_prometheus_notifications_queue_capacity{%s}[$__rate_interval])) > 0
sum by(user) (cortex_prometheus_notifications_queue_capacity{%s}) > 0
||| % [$.jobMatcher($._config.job_names.ruler), $.jobMatcher($._config.job_names.ruler)], '{{ user }}')
{ fieldConfig+: { defaults+: { unit: 'percentunit', min: 0, max: 1 } } },
)
Expand Down

0 comments on commit 37e2aa1

Please sign in to comment.