Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only append prometheus client to slice when it has a metrics profile #617

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

rsevilla87
Copy link
Member

@rsevilla87 rsevilla87 commented Apr 12, 2024

Type of change

  • Refactor
  • New feature
  • Bug fix
  • Optimization
  • Documentation Update

Description

We were appending a PrometheusClient to the clients slice in all cases even when that prometheus client was going to be used to scrape alerts, the clients in this slice are used to scrape metrics and no other client there should be added.

Related Tickets & Documents

Copy link
Collaborator

@vishnuchalla vishnuchalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@josecastillolema
Copy link
Contributor

LGTM

Grabbing the web-burner-node-density workload as an example:

  • Time before the fix: 140 min
  • Time after the fix: 125 min

@rsevilla87 rsevilla87 merged commit 469f962 into kube-burner:main Apr 15, 2024
6 checks passed
@rsevilla87 rsevilla87 deleted the issue-616 branch April 15, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Unnecessary scraping at the end of the run
3 participants