Automate bootstrapping of Prometheus in the development environment

This commit is contained in:
Shane McDonald
2022-08-26 16:52:35 -04:00
parent 691d9d7dc4
commit 66529d0f70
6 changed files with 30 additions and 57 deletions

View File

@@ -0,0 +1,20 @@
#jinja2: lstrip_blocks: True
---
global:
scrape_interval: 15s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
scrape_configs:
- job_name: 'awx'
static_configs:
- targets:
# metrics are broadcast to all nodes in the cluster,
# so no need to track nodes individually.
- awx1:8013
metrics_path: /api/v2/metrics
scrape_interval: 5s
scheme: http
params:
format: ['txt']
basic_auth:
username: admin
password: {{ admin_password }}