ceph-ansible/roles/ceph-grafana/templates/datasources-ceph-dashboard....

27 lines
861 B
Django/Jinja

apiVersion: 1
# list of datasources that should be deleted from the database
deleteDatasources:
- name: '{{ grafana_datasource }}'
orgId: 1
# list of datasources to insert/update depending
# what's available in the database
datasources:
# <string, required> name of the datasource. Required
- name: '{{ grafana_datasource }}'
# <string, required> datasource type. Required
type: 'prometheus'
# <string, required> access mode. proxy or direct (Server or Browser in the UI). Required
access: 'proxy'
# <int> org id. will default to orgId 1 if not specified
orgId: 1
# <string> url
url: 'http://{{ groups["grafana-server"][0] }}:9090'
# <bool> enable/disable basic auth
basicAuth: false
# <bool> mark as default datasource. Max one per org
isDefault: true
# <bool> allow users to edit datasources from the UI.
editable: false