Skip to content

Commit

Permalink
Merge pull request #25883 from smarterclayton/leader_changes_47
Browse files Browse the repository at this point in the history
test: Calculate leader elections over individual metrics
  • Loading branch information
smarterclayton committed Feb 11, 2021
2 parents a664439 + d95ce88 commit 98a759f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/extended/etcd/leader_changes.go
Expand Up @@ -24,7 +24,7 @@ var _ = g.Describe("[sig-etcd] etcd", func() {
testDuration := exutil.DurationSinceStartInSeconds().String()

g.By("Examining the number of etcd leadership changes over the run")
result, _, err := prometheus.Query(context.Background(), fmt.Sprintf("increase(max(max by (pod,job) (etcd_server_leader_changes_seen_total))[%s:1s])", testDuration), time.Now())
result, _, err := prometheus.Query(context.Background(), fmt.Sprintf("max(max by (pod,job) (increase(etcd_server_leader_changes_seen_total[%s])))", testDuration), time.Now())
o.Expect(err).ToNot(o.HaveOccurred())
leaderChanges := result.(model.Vector)[0].Value
if leaderChanges != 0 {
Expand Down

0 comments on commit 98a759f

Please sign in to comment.