Skip to content

Commit

Permalink
mixin: last rr make range interval configurable (#7876)
Browse files Browse the repository at this point in the history
* chore: mixin last rr make range interval configurable

* chore: mixin last rr make range interval configurable fix
  • Loading branch information
jmichalek132 authored Apr 11, 2024
1 parent 90d5f75 commit 3fa89ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operations/mimir-mixin/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@
sum by (%(alert_aggregation_labels)s, deployment) (
label_replace(
label_replace(
sum by (%(alert_aggregation_labels)s, %(per_instance_label)s)(rate(container_cpu_usage_seconds_total[1m])),
sum by (%(alert_aggregation_labels)s, %(per_instance_label)s)(rate(container_cpu_usage_seconds_total[%(recording_rules_range_interval)s])),
"deployment", "$1", "%(per_instance_label)s", "(.*)-(?:([0-9]+)|([a-z0-9]+)-([a-z0-9]+))"
),
# The question mark in "(.*?)" is used to make it non-greedy, otherwise it
Expand Down

0 comments on commit 3fa89ec

Please sign in to comment.