Skip to content
Discussion options

You must be logged in to vote

Hey Xiangyu,

Yes, exactly. Setting up min_interval (either globally or per collector configuration, it's up you) makes sql_exporter cache the last successful scraped result for a given interval, which in turn protects queried endpoints from excessive usage.

A new option introduced recently through a dependency is rate limiting. This requires a separate configuration file and details can be found in the Miscellaneous section of the readme.

The key difference is that with the default Prometheus/sql_exporter settings of 1m/5m, you risk scraping duplicate data points. However, enabling rate limiting on sql_exporter will trigger an HTTP 429 response, preventing any data from being stored on th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@XiangyuZhang-G
Comment options

@burningalchemist
Comment options

Answer selected by burningalchemist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants