blob: 690487f6a49c43e12dd2ab0da3426fab2a9786a5 (
plain) (
tree)
|
|
{% 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 %}
|