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

Add counter warmup option #315

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

ahobson
Copy link

@ahobson ahobson commented Apr 11, 2024

Inspired by smart-prometheus-client, add an option to return 0 on first scrape.

As mentioned on that page, it can help with with problem of missing metrics

@SamSaffron
Copy link
Member

SamSaffron commented May 30, 2024

I follow the idea here, but I am just not sure about this implementation, wouldn't the consumer simply be able to warm up the counters to whatever value they wanted?

Isn't the point to deliberately export a 0 on boot... counters in themselves should work fine if they start at 77 go to 33 and do not go to 0...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants