-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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: cluster_id label override in mixins #12570
fix: cluster_id label override in mixins #12570
Conversation
8b55e43
to
7b47792
Compare
@MichelHollands could you take a look? |
577f488
to
7c39caa
Compare
7c39caa
to
9b9ceb2
Compare
for: 5m | ||
labels: | ||
severity: warning | ||
- name: loki_alerts |
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.
Extra spaces are added when regenerating
@@ -63,7 +63,7 @@ | |||
"steppedLine": false, | |||
"targets": [ | |||
{ | |||
"expr": "sum(go_goroutines{cluster=\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"})", | |||
"expr": "sum(go_goroutines{cluster=~\"$cluster\", namespace=\"$namespace\", pod=~\"$deployment.*\", pod=~\"$pod\"})", |
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.
Replacing all cluster=\"$cluster\"
with cluster=~\"$cluster\"
to be the same on all clusters
9b9ceb2
to
7764cd2
Compare
'cluster="$cluster", ', | ||
$._config.per_cluster_label + '=~"$cluster", ' | ||
), | ||
'cluster_job_route', |
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 relabel the recording rules
0cf2ff2
to
0dd0dbd
Compare
Signed-off-by: QuentinBisson <[email protected]>
3796595
to
0d14a14
Compare
5812d70
to
7c98704
Compare
Signed-off-by: QuentinBisson <[email protected]>
e5769dc
to
1d92e27
Compare
Closing as this got too complicated for no reason |
What this PR does / why we need it:
Follow up of #12567
This PR fixes the compilation of mixins when
per_cluster_label
is used. Without this, a lot of the existing cluster labels are not changedThis PR also adds the multi-cluster to canaries
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