Skip to content

Commit c1db47e

Browse files
authored
docs fix for provisioning (#1916)
1 parent 3a2356f commit c1db47e

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

docs/sources/configuration/provisioning.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@ apiVersion: 1
2424
datasources:
2525
- name: Zabbix
2626
type: alexanderzobnin-zabbix-datasource
27-
access: proxy
2827
url: http://localhost/zabbix/api_jsonrpc.php
29-
isDefault: true
3028
jsonData:
3129
# Zabbix API credentials
3230
username: zabbix
33-
password: zabbix
3431
# Trends options
3532
trends: true
3633
trendsFrom: '7d'
@@ -54,13 +51,28 @@ datasources:
5451
disableDataAlignment: false
5552
# Use value mapping from Zabbix
5653
useZabbixValueMapping: true
54+
secureJsonData:
55+
password: zabbix
5756
version: 1
5857
editable: false
5958

6059
- name: MySQL Zabbix
6160
type: mysql
6261
url: localhost:3306
63-
database: zabbix
6462
user: grafana
65-
password: password
63+
jsonData:
64+
database: zabbix
65+
secureJsonData:
66+
password: password
67+
68+
- name: PostgreSQL Zabbix
69+
type: grafana-postgresql-datasource
70+
url: localhost:5432
71+
user: grafana
72+
jsonData:
73+
database: zabbix
74+
secureJsonData:
75+
password: password
6676
```
77+
78+
For detailed provisioning configuration for mysql / postgres in direct db connection mode, refer [mysql plugin documentation](https://grafana.com/docs/grafana/latest/datasources/mysql/#provision-the-data-source) / [postgresql plugin documentation](https://grafana.com/docs/grafana/latest/datasources/postgres/#provision-the-data-source).

0 commit comments

Comments
 (0)