# {{ cephadm_managed }}
deleteDatasources:
{% for host in hosts %}
  - name: 'Dashboard{{ loop.index }}'
    orgId: 1
{% endfor %}

  - name: 'Loki'
    orgId: 2

datasources:
{% for host in hosts %}
  - name: 'Dashboard{{ loop.index }}'
    type: 'prometheus'
    access: 'proxy'
    orgId: 1
    url: '{{ host }}'
    basicAuth: false
    isDefault: {{ 'true' if loop.first else 'false' }}
    editable: false
{% endfor %}

  - name: 'Loki'
    type: 'loki'
    access: 'proxy'
    orgId: 2
    url: '{{ loki_host }}'
    basicAuth: false
    isDefault: true
    editable: false
