2018-12-06 02:59:47 +08:00
|
|
|
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
|
2019-07-11 05:15:45 +08:00
|
|
|
url: 'http://{{ grafana_server_addr | default(_current_monitor_address) }}:{{ prometheus_port }}'
|
2018-12-06 02:59:47 +08:00
|
|
|
# <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
|