Merge pull request #83 from DirectXMan12/docs/relist-interval-advice

[docs] Advice on relist interval
This commit is contained in:
Solly Ross 2018-06-30 21:32:36 -04:00 committed by GitHub
commit 414af01f58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.