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