Replies: 1 comment
-
|
Prometheus uses a pull-based model where it periodically scrapes metrics from targets, so what you should configure is Prometheus's scrape interval. The TTL (Time-To-Live) in the exporter is designed to prevent expensive queries from being executed too frequently. It's essentially a cache duration for query results. Typically, TTL should be aligned with your Prometheus scrape interval. However, for particularly slow queries, you probably don't want them running every 10-15 seconds — instead, set their TTL to a few minutes to reduce load on your database. Scrape interval: How often Prometheus pulls metrics (e.g., 15s) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
The way to configure the time interval is to use the ttl?
In case I want a custom query to run every 15 min do I need to configure the ttl to 900?
Beta Was this translation helpful? Give feedback.
All reactions