|
|
|
|
@ -49,8 +49,14 @@ scrape_configs:
|
|
|
|
|
metrics_path: '/metrics'
|
|
|
|
|
static_configs:
|
|
|
|
|
- targets: [
|
|
|
|
|
{% for host in server_group_names_all | difference(['dev-awx-01','dev-prometheus-01','dev-maria-01']) | default([]) %}
|
|
|
|
|
{% for host in server_group_names_all | default([]) %}
|
|
|
|
|
{% if
|
|
|
|
|
(hostvars[host].traefik_enabled is defined
|
|
|
|
|
and hostvars[host].traefik_enabled)
|
|
|
|
|
or (hostvars[host].traefik_enabled is not defined)
|
|
|
|
|
%}
|
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_service }}',
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
]
|
|
|
|
|
labels:
|
|
|
|
|
@ -222,7 +228,13 @@ scrape_configs:
|
|
|
|
|
static_configs:
|
|
|
|
|
- targets: [
|
|
|
|
|
{% for host in server_group_names_all | default([]) %}
|
|
|
|
|
{% if
|
|
|
|
|
(hostvars[host].node_exporter_enabled is defined
|
|
|
|
|
and hostvars[host].node_exporter_enabled)
|
|
|
|
|
or (hostvars[host].node_exporter_enabled is not defined)
|
|
|
|
|
%}
|
|
|
|
|
'{{ host }}.{{ domain }}:{{ monitor_port_system }}',
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endfor %}
|
|
|
|
|
]
|
|
|
|
|
labels:
|
|
|
|
|
|