Skip to content

Commit

Permalink
fix slo_current_burn_rate_ratio slo
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinBisson committed Sep 16, 2024
1 parent 392496f commit 74a8cee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed

- Update `MimirHPAReachedMaxReplicas` opsrecipe link
- Fix aggregation rule of the `slo:current_burn_rate:ratio` slo.

## [4.15.1] - 2024-09-16

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,21 @@ spec:
- name: slos.grafana-cloud.recording
rules:
# Let's not send any of the slo:sli_error:ratio_ratexxx metrics but the slo:sli_error:ratio_rate5m rule to Grafana Cloud as it's not useful for the SLOs dashboard.
- expr: sum(slo:current_burn_rate:ratio) by (cluster_id, cluster_type, customer, installation, pipeline, provider, region, slo, service)
- expr: sum(
label_replace(
label_replace(
slo:current_burn_rate:ratio,
"slo",
"$1",
"sloth_id",
"(.*)"
),
"service",
"$1",
"sloth_service",
"(.*)"
)
) by (cluster_id, cluster_type, customer, installation, pipeline, provider, region, slo, service)
record: aggregation:slo:current_burn_rate:ratio
- expr: |-
sum(
Expand Down

0 comments on commit 74a8cee

Please sign in to comment.