This repository was archived by the owner on Mar 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 8
8
- ANSIBLE=2.2.3 PROMETHEUS=2.0.0
9
9
- ANSIBLE=2.3.2 PROMETHEUS=1.8.2
10
10
- ANSIBLE=2.3.2 PROMETHEUS=2.0.0
11
- - ANSIBLE=2.4.1 PROMETHEUS=1.8.2
12
- - ANSIBLE=2.4.1 PROMETHEUS=2.0.0
11
+ - ANSIBLE=2.4.2 PROMETHEUS=1.8.2
12
+ - ANSIBLE=2.4.2 PROMETHEUS=2.0.0
13
13
install :
14
14
- pip install ansible==${ANSIBLE} ansible-lint>=3.4.15 molecule==1.25.0 docker git-semver testinfra>=1.7.0
15
15
script :
Original file line number Diff line number Diff line change @@ -20,17 +20,14 @@ alerting:
20
20
21
21
scrape_configs:
22
22
- job_name: "prometheus"
23
- scrape_interval: "5s"
24
23
scheme: http
25
24
metrics_path: {{ "/" + prometheus_web_external_url.split('/')[-1] }}/metrics
26
25
{# metrics_path: /{{ prometheus_web_external_url.split('/')[3:]|join('/') }}metrics #}
27
26
static_configs:
28
27
- targets:
29
- - 'localhost:9090'
28
+ - "{{ ansible_fqdn | default(ansible_host) | default( 'localhost') }} :9090"
30
29
31
30
- job_name: "node"
32
- scrape_interval: 30s
33
- scrape_timeout: 10s
34
31
metrics_path: /metrics
35
32
file_sd_configs:
36
33
- files:
You can’t perform that action at this time.
0 commit comments