# managed by Ansible {% import 'macros.j2' as macros with context %} apiVersion: 1 datasources: {% call(h) macros.loop_valid_hosts("servers") %} - name: {{ h.inventory_hostname }}-prometheus type: prometheus url: http://{{ h.__ip.internal }}:9090 {% endcall %}