Skip to content

Commit

Permalink
refactor(metrics): rename error_rate -> success_rate (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
stehessel authored Aug 17, 2023
1 parent 46a6e74 commit b50f4a2
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 @@ -400,7 +400,7 @@ spec:
(central:incoming_requests:total:rate10m > 0),
0, 1
)
record: central:error_rate10m
record: central:success_rate10m
# This is a time series of 0s (down) and 1s (up).
# Success rate above 65% is floored to 1.
Expand All @@ -413,7 +413,7 @@ spec:
# reference in dashboards.
- expr: |
sum by (namespace, rhacs_instance_id) (
floor (central:error_rate10m + 0.35)
floor (central:success_rate10m + 0.35)
)
or on (namespace, rhacs_instance_id) central:sli:pod_ready
record: central:sli:error_rate
Expand Down

0 comments on commit b50f4a2

Please sign in to comment.