-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
fix: incorrect compactor matcher in loki-deletion dashboard mixin #12567
Conversation
@MichelHollands could you take a look? |
@QuentinBisson it's not clear to me why this is broken in the first place? |
@cstyan I think you're right about the job but the container=compactor will definitely not work in ssd mode https://github.com/grafana/loki/pull/12567/files#diff-2e671957ef0b084f5abd5911a3ca6b92bc59b07dc8412477b13b2abac9fe1342L69 I took the matcher from
|
oh fun, I didn't notice at first that we had different label selectors in panels of the same dashboard, lets use the same matcher as the retention dashboard which you have now |
@@ -61,15 +61,15 @@ local utils = import 'mixin-utils/utils.libsonnet'; | |||
) | |||
.addPanel( | |||
$.newQueryPanel('Lines Deleted / Sec') + | |||
g.queryPanel('sum(rate(loki_compactor_deleted_lines{' + $._config.per_cluster_label + '=~"$cluster",job=~"$namespace/%s"}[$__rate_interval])) by (user)' % compactor_matcher, '{{user}}'), | |||
g.queryPanel('sum(rate(loki_compactor_deleted_lines{' + $._config.per_cluster_label + '=~"$cluster",' + compactor_matcher + '}[$__rate_interval])) by (user)', '{{user}}'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this now needs a namespace label selector since we're not selecting on job=~"$namespace/%s"
anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cstyan this should be okay now :)
Signed-off-by: QuentinBisson <quentin@giantswarm.io>
7321729
to
b89ad76
Compare
@QuentinBisson thanks :) |
What this PR does / why we need it:
This PR fixes the loki-deletion dashboard compactor matcher for the SSD mixins
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist
CONTRIBUTING.md
guide (required)docs/sources/setup/upgrade/_index.md
production/helm/loki/Chart.yaml
and updateproduction/helm/loki/CHANGELOG.md
andproduction/helm/loki/README.md
. Example PRdeprecated-config.yaml
anddeleted-config.yaml
files respectively in thetools/deprecated-config-checker
directory. Example PR