[
{
"targets": [
{% for host in groups['node_exporter'] %}
{% if loop.last %}
"{{ hostvars[host]['ansible_host'] }}"
{% else %}
"{{ hostvars[host]['ansible_host'] }}",
{% endif %}
{% endfor %}
],
"labels": {
"host":"{{ hostvars[host]['ansible_host'] }}",
"service":"ks3_monitor_system",
"use":"icmp"
}
}
]