diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2021-07-29 17:00:20 +0200 |
commit | b232b894c3cbe087c8d504e91637dcf62199eed1 (patch) | |
tree | ea72a7d1a7f63c6425ee46785e1cec924351b2c3 /roles/grafana/templates/datasources-default.yml.j2 | |
parent | 22126073344e60c405d086df37b64da0c6d3c086 (diff) | |
download | infrastructure-b232b894c3cbe087c8d504e91637dcf62199eed1.tar.gz |
Bump to third revision of homelab
Diffstat (limited to 'roles/grafana/templates/datasources-default.yml.j2')
-rw-r--r-- | roles/grafana/templates/datasources-default.yml.j2 | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/roles/grafana/templates/datasources-default.yml.j2 b/roles/grafana/templates/datasources-default.yml.j2 new file mode 100644 index 0000000..690487f --- /dev/null +++ b/roles/grafana/templates/datasources-default.yml.j2 @@ -0,0 +1,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 %} |