From 033db44f1c4e1a009625811f64d03a2b1ceec28c Mon Sep 17 00:00:00 2001 From: Will Szumski Date: Fri, 11 Feb 2022 18:26:41 +0000 Subject: Adds prometheus_scrape_interval Grafana requires the scrape interval to be set to be able to compute $__rate_interval. The default is 15s which does not match the kolla default of 60s. The symptom of not setting this is that you will see "no data" when zooming graphs that use rate queries. This occurs as the interval will be set to a period shorter than the scrape interval. The recommendation is that you use a common scrape interval for all jobs. See: - https://grafana.com/blog/2020/09/28/new-in-grafana-7.2-__rate_interval-for-prometheus-rate-queries-that-just-work/ - https://stackoverflow.com/questions/66369969/set-scrape-interval-in-provisioned-prometheus-data-source-in-grafana Change-Id: I7e5c1e20c7b66b64cbd333f669ef8d8da60daaa8 --- .../reference/logging-and-monitoring/prometheus-guide.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') diff --git a/doc/source/reference/logging-and-monitoring/prometheus-guide.rst b/doc/source/reference/logging-and-monitoring/prometheus-guide.rst index aa15b5201..3d67bb92b 100644 --- a/doc/source/reference/logging-and-monitoring/prometheus-guide.rst +++ b/doc/source/reference/logging-and-monitoring/prometheus-guide.rst @@ -45,6 +45,20 @@ and data retention size to 30 gigabytes: prometheus_cmdline_extras: "--query.timeout=1m --storage.tsdb.retention.size=30GB" +Configuration options +~~~~~~~~~~~~~~~~~~~~~ + +.. list-table:: Configuration options + :widths: 25 25 75 + :header-rows: 1 + + * - Option + - Default + - Description + * - prometheus_scrape_interval + - 60s + - Default scape interval for all jobs + Extending prometheus.cfg ~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.2.3