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

Is there an option to populate metrics on startup? #290

Open
NickLarsenNZ opened this issue Aug 23, 2023 · 2 comments
Open

Is there an option to populate metrics on startup? #290

NickLarsenNZ opened this issue Aug 23, 2023 · 2 comments

Comments

@NickLarsenNZ
Copy link

When I start prometheus_exporter for delayed job, I don't see metrics until a job has run.
So after deploying a new version of the app, we have no metrics for a while.

Is there, or could there in future be an option to get current metrics on startup?
I expect this might be difficult/impossible since the metrics are probably populated on a function call, but thought I would ask just in case.

@NickLarsenNZ NickLarsenNZ changed the title Is there an option to populate metrics? Is there an option to populate metrics on startup? Aug 23, 2023
@NickLarsenNZ
Copy link
Author

NickLarsenNZ commented Aug 31, 2023

For example, the vertical dotted line is where the container came up. But it took many hours (until the job ran) to get a metric to appear. Ant it lasted until a new version of the app was deployed and then we had to wait for more metrics to appear.

It makes for rather patchy graphs when we are releasing many times per day but job schedules are fixed to certain times of the day.

image

@benoittgt
Copy link

You could trigger an event but which value do you want? 0?

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

No branches or pull requests

2 participants