@@ -14,7 +14,7 @@ scrape_configs:
14
14
- job_name: node_judgehost
15
15
basic_auth:
16
16
username: "prometheus"
17
- password: "{{ groups[group_prefix+"judgehost"] [0] ['PROMETHEUS_PASS'] }}"
17
+ password: "{{ hostvars[ groups[group_prefix+"judgehost"] [0] ] ['PROMETHEUS_PASS'] }}"
18
18
tls_config:
19
19
insecure_skip_verify: true
20
20
scheme: https
@@ -41,7 +41,7 @@ scrape_configs:
41
41
- job_name: {{ group_prefix ~ 'db' }}
42
42
basic_auth:
43
43
username: "prometheus"
44
- password: "{{ groups[group_prefix+"domserver"] [0] ['PROMETHEUS_PASS'] }}"
44
+ password: "{{ hostvars[ groups[group_prefix+"domserver"] [0] ] ['PROMETHEUS_PASS'] }}"
45
45
tls_config:
46
46
insecure_skip_verify: true
47
47
scheme: https
@@ -53,7 +53,7 @@ scrape_configs:
53
53
- job_name: {{ group_prefix ~ 'node_domserver' }}
54
54
basic_auth:
55
55
username: "prometheus"
56
- password: "{{ groups[group_prefix+"domserver"] [0] ['PROMETHEUS_PASS'] }}"
56
+ password: "{{ hostvars[ groups[group_prefix+"domserver"] [0] ] ['PROMETHEUS_PASS'] }}"
57
57
tls_config:
58
58
insecure_skip_verify: true
59
59
scheme: https
@@ -65,7 +65,7 @@ scrape_configs:
65
65
- job_name: {{ group_prefix ~ 'web_nginx_domserver' }}
66
66
basic_auth:
67
67
username: "prometheus"
68
- password: "{{ groups[group_prefix+"domserver"] [0] ['PROMETHEUS_PASS'] }}"
68
+ password: "{{ hostvars[ groups[group_prefix+"domserver"] [0] ] ['PROMETHEUS_PASS'] }}"
69
69
tls_config:
70
70
insecure_skip_verify: true
71
71
scheme: https
@@ -77,7 +77,7 @@ scrape_configs:
77
77
- job_name: {{ group_prefix ~ 'web_fpm_domserver' }}
78
78
basic_auth:
79
79
username: "prometheus"
80
- password: "{{ groups[group_prefix+"domserver"] [0] ['PROMETHEUS_PASS'] }}"
80
+ password: "{{ hostvars[ groups[group_prefix+"domserver"] [0] ] ['PROMETHEUS_PASS'] }}"
81
81
tls_config:
82
82
insecure_skip_verify: true
83
83
scheme: https
0 commit comments