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

AWS API caching #37

Open
ivanovv opened this issue Jan 12, 2022 · 2 comments
Open

AWS API caching #37

ivanovv opened this issue Jan 12, 2022 · 2 comments

Comments

@ivanovv
Copy link

ivanovv commented Jan 12, 2022

Given that it is adviced to keep scrapping interval equal to or less than 2 minutes (more details here https://stackoverflow.com/questions/70124042/prometheus-scrape-interval-1d/70129957) is there a way to add caching to the results of API call?

I don't want to send API requests every two monutes if I know that my backup script runs every 4 hours.

@ribbybibby
Copy link
Owner

I'm not going to implement caching in the exporter.

You could maybe experiment with putting a caching proxy (something like nginx) in front of the exporter to cache the response?

@ivanovv
Copy link
Author

ivanovv commented Jan 14, 2022

Ah, that's really unfortunate.

I really like how it is implemented fort example here https://github.com/free/sql_exporter

Given that AWS API is paid it only makes sense to reduce charges as much as possible. Though I'm not sure if there is a really high number of requests and maybe I should run it first to see the monetary impact.

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