From 99515681838493bdece10aeb64586b2756670b65 Mon Sep 17 00:00:00 2001 From: Solly Ross Date: Sat, 30 Jun 2018 21:28:55 -0400 Subject: [PATCH] [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. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 73ac7150..ca34e25e 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,11 @@ adapter talks to Prometheus and the main Kubernetes cluster: in-cluster config. - `--metrics-relist-interval=`: 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=`: This is the URL used to connect to Prometheus. It will eventually contain query parameters to configure the connection.