Skip to content

Commit

Permalink
fix metric
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
Ben Ye committed Jul 12, 2022
1 parent 81c7d03 commit 3e69541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/rule_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ func TestStatelessRulerAlertStateRestore(t *testing.T) {
testutil.Ok(t, e2e.StartAndWaitReady(rulers[1]))

// Wait for 4 rule evaluation iterations to make sure the alert state is restored.
testutil.Ok(t, rulers[1].WaitSumMetricsWithOptions(e2e.GreaterOrEqual(4), []string{"prometheus_rule_group_duration_seconds"}, e2e.WaitMissingMetrics()))
testutil.Ok(t, rulers[1].WaitSumMetricsWithOptions(e2e.GreaterOrEqual(4), []string{"prometheus_rule_group_duration_seconds_count"}, e2e.WaitMissingMetrics()))

// Wait until the alert is firing on the second ruler.
err = runutil.Repeat(time.Second*1, ctx.Done(), func() error {
Expand Down

0 comments on commit 3e69541

Please sign in to comment.