Skip to content

Commit

Permalink
Merge pull request #137 from stackrox/refactor-sli-floor
Browse files Browse the repository at this point in the history
refactor(metrics): use prom bool comparison
  • Loading branch information
stehessel authored Aug 28, 2023
2 parents b50f4a2 + 26df6ca commit e8fce0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/prometheus/prometheus-rules.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -412,8 +412,8 @@ spec:
# We keep the `namespace` and `rhacs_instance_id` labels to be consistent with other SLI metrics and for
# reference in dashboards.
- expr: |
sum by (namespace, rhacs_instance_id) (
floor (central:success_rate10m + 0.35)
max by (namespace, rhacs_instance_id) (
central:success_rate10m > bool 0.65
)
or on (namespace, rhacs_instance_id) central:sli:pod_ready
record: central:sli:error_rate
Expand Down

0 comments on commit e8fce0c

Please sign in to comment.