aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/templates/datasources-default.yml.j2
blob: 1414ff27a3d5464600c996429520862f0bd355a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# 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 %}
remember that computers suck.