summaryrefslogtreecommitdiffstats
path: root/tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2022-09-02 19:38:49 +0200
committerAlan Rominger <arominge@redhat.com>2022-09-02 19:38:49 +0200
commitccbc8ce7de8d81ad034c1616bf63beb411eb96d9 (patch)
treea84126a7aad9aeef73fe5f688d64ac3a5cd24132 /tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2
parentMerge pull request #12803 from matburt/fix_cleanup_schedules (diff)
downloadawx-ccbc8ce7de8d81ad034c1616bf63beb411eb96d9.tar.xz
awx-ccbc8ce7de8d81ad034c1616bf63beb411eb96d9.zip
Make the metrics default sampling interval 5s
Diffstat (limited to 'tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2')
-rw-r--r--tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2 b/tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2
index 7e1f5e4b02..22953c8627 100644
--- a/tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2
+++ b/tools/docker-compose/ansible/roles/sources/templates/prometheus.yml.j2
@@ -1,7 +1,7 @@
#jinja2: lstrip_blocks: True
---
global:
- scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
+ scrape_interval: {{ scrape_interval }} # Set the scrape interval to something faster. Default is every 1 minute.
scrape_configs:
- job_name: 'awx'
@@ -11,7 +11,7 @@ scrape_configs:
# so no need to track nodes individually.
- awx1:8013
metrics_path: /api/v2/metrics
- scrape_interval: 5s
+ scrape_interval: {{ scrape_interval }}
scheme: http
params:
format: ['txt']