Manage Grafana v2.0 data sources
2016.3.0 新版功能.
grafana:
grafana_timeout: 3
grafana_token: qwertyuiop
grafana_url: 'https://url.com'
Ensure influxdb data source is present:
grafana_datasource.present:
- name: influxdb
- type: influxdb
- url: http://localhost:8086
- access: proxy
- basic_auth: true
- basic_auth_user: myuser
- basic_auth_password: mypass
- is_default: true
salt.states.grafana_datasource.
absent
(name, profile='grafana')¶Ensure that a data source is present.
salt.states.grafana_datasource.
present
(name, type, url, access='proxy', user='', password='', database='', basic_auth=False, basic_auth_user='', basic_auth_password='', is_default=False, json_data=None, profile='grafana')¶Ensure that a data source is present.