aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/templates/datasources-default.yml.j2
blob: 690487f6a49c43e12dd2ab0da3426fab2a9786a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% import 'macros.j2' as macros with context %}

# datasources for grafana
# managed by Ansible

apiVersion: 1

datasources:
{% call(h) macros.loop_valid_hosts("servers") %}
  - name: {{ h.ansible_host }}-prometheus
    type: prometheus
    url: http://{{ h.ip.in }}:9090
  - name: {{ h.ansible_host }}-loki
    type: prometheus

{% endcall %}
remember that computers suck.