Skip to content

Commit

Permalink
Wait only one step extra before scraping
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <rsevilla@redhat.com>
  • Loading branch information
rsevilla87 committed Nov 18, 2020
1 parent 692e828 commit a2c53f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kube-burner.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,8 @@ func steps(uuid string, p *prometheus.Prometheus, prometheusStep time.Duration)
}
// If prometheus is enabled query metrics from the start of the first job to the end of the last one
if p != nil {
log.Infof("Waiting %v extra before scraping prometheus metrics", prometheusStep*4)
time.Sleep(prometheusStep * 4)
log.Infof("Waiting %v extra before scraping prometheus metrics", prometheusStep)
time.Sleep(prometheusStep)
if err := p.ScrapeMetrics(start, time.Now().UTC(), indexer); err != nil {
log.Error(err)
}
Expand Down

0 comments on commit a2c53f0

Please sign in to comment.