Skip to content

Commit 3b59de7

Browse files
authored
explain cache and set scrape interval back to 60 secs (#1103)
1 parent 5cd1c15 commit 3b59de7

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

site/content/docs/integrations/prometheus-v2.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ Activating this integration is simple.
2626
2. We directly create an endpoint for you and provide its URL and the required Bearer token.
2727
![Prometheus integration step 2](/docs/images/integrations/prometheus_v2_step2.png)
2828

29-
3. Create a new job in your Prometheus `prometheus.yml` config and set up a scraping interval. The scrape interval should be above 2 seconds. Add the URL (divided into `metrics_path`, `scheme` and `target`) and `bearer_token`.
29+
3. Create a new job in your Prometheus `prometheus.yml` config and set up a scraping interval. The scrape interval should be above 60 seconds. Add the URL (divided into `metrics_path`, `scheme` and `target`) and `bearer_token`.
3030
Here is an example
3131

3232
```yaml
3333
# prometheus.yml
3434
- job_name: 'checkly'
35-
scrape_interval: 20s
35+
scrape_interval: 60s
3636
metrics_path: '/accounts/993adb-8ac6-3432-9e80-cb43437bf263/v2/prometheus/metrics'
3737
bearer_token: 'lSAYpOoLtdAa7ajasoNNS234'
3838
scheme: https
@@ -43,7 +43,10 @@ Here is an example
4343
Now restart Prometheus and you should see metrics coming in.
4444
4545
{{< warning >}}
46-
The Prometheus metrics endpoint has a rate limit of 50 requests per minute. We recommend using a scrape interval equal or above 2 seconds.
46+
The Prometheus metrics endpoint has a rate limit of 50 requests per minute.
47+
The responses from this endpoint are cached during 60 seconds.
48+
Any request made to this endpoint within 60 seconds of the initial request will receive the cached response.
49+
We recommend using a scrape interval of 60 seconds.
4750
{{</ warning >}}
4851
4952
## Check Metrics

0 commit comments

Comments
 (0)