mirror of
https://github.com/kubernetes-sigs/prometheus-adapter.git
synced 2026-04-05 17:27:51 +00:00
[docs] Advice on relist interval
This documents that the relist interval must be at least the Prometheus scrape interval, lest metrics fade in and out.
This commit is contained in:
parent
7b606a79fc
commit
9951568183
1 changed files with 5 additions and 1 deletions
|
|
@ -27,7 +27,11 @@ adapter talks to Prometheus and the main Kubernetes cluster:
|
|||
in-cluster config.
|
||||
|
||||
- `--metrics-relist-interval=<duration>`: This is the interval at which to
|
||||
update the cache of available metrics from Prometheus.
|
||||
update the cache of available metrics from Prometheus. Since the adapter
|
||||
only lists metrics during discovery that exist between the current time and
|
||||
the last discovery query, it's necessary to set your relist interval to
|
||||
*at least* your Prometheus scrape interval, otherwise your metrics will
|
||||
occaisonally disappear from the adapter.
|
||||
|
||||
- `--prometheus-url=<url>`: This is the URL used to connect to Prometheus.
|
||||
It will eventually contain query parameters to configure the connection.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue