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

scrape interval option would be useful #19

Open
aelnaggar opened this issue Jan 13, 2021 · 3 comments
Open

scrape interval option would be useful #19

aelnaggar opened this issue Jan 13, 2021 · 3 comments

Comments

@aelnaggar
Copy link

along with scrape timeout, scrape interval would be nice if you want to probe specific metrics endpoints, like script exporters and so on

@warmans
Copy link
Owner

warmans commented Jan 13, 2021

Hi, If I remember correctly the targets are just loaded each time the exporter's metrics page is loaded (i.e. it acts like kind of like a reverse proxy). So there isn't really a concept of a re-scaping interval.

@aelnaggar
Copy link
Author

Hi @warmans thanks for the replay and the clarification.. I just had a use case where this could be useful. in some case exporters(in my case script exporter) are also working with /probe to execute something and return metrics back.. so in this case scraping interval would really nice to have

@warmans
Copy link
Owner

warmans commented Jan 15, 2021

I'm not sure I understand. Do you mean something like a rate limiter to stop it calling targets too often? the problem is currently it doesn't store any data. It just goes through each target and then merges all the results into a single metrics page.

The code is quite simple - I'd be happy to look over a MR if you could submit one.

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

No branches or pull requests

2 participants