'Use of Prometheus scrape_timeout
In the prometheus configuration I have a job with these specs:
- job_name: name_of_my_job
scrape_interval: 5m
scrape_timeout: 30s
metrics_path: /metrics
scheme: http
The script that creates the metrics takes 3 minutes to finish, but from prometheus I don't see the metrics. What is the operation of the scrape_timeout variable?
Solution 1:[1]
Every 5 minutes (scrape_interval) Prometheus will get the metrics from the given URL. It will try 30 seconds (scrape_timeout) to get the metrics if it can't scrape in this time it will time out.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | DisappointedByUnaccountableMod |