Skip to content

Commit

Permalink
Test a fix for prom rules floating point inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
etsauer committed Sep 11, 2024
1 parent 7af7094 commit 9028b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _test/prometheus/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ tests:
exp_samples: []

# Tests for Change Failure Rate - Current interval in charts/pelorus/templates/dashboard-sdp-byapp.yaml
- expr: avg(avg_over_time(sdp:change_failure_rate:by_app{app=~".*/group/.*"} [5m]))
- expr: round(avg(avg_over_time(sdp:change_failure_rate:by_app{app=~".*/group/.*"} [5m])), .001)
eval_time: 1m
exp_samples:
- labels: '{}'
value: 0.5555555555555556
value: 0.556
- expr: avg(avg_over_time(sdp:change_failure_rate:by_app{app=~".*/subgroup/.*"} [5m]))
eval_time: 1m
exp_samples:
Expand Down

0 comments on commit 9028b88

Please sign in to comment.