Parameter |
Choices/Defaults |
Comments |
access
|
|
The access mode for this datasource.
|
basic_auth_password
|
|
The datasource basic auth password, when basic auth is yes .
|
basic_auth_user
|
|
The datasource basic auth user.
Setting this option with basic_auth_password will enable basic auth.
|
database
|
|
Name of the database for the datasource.
This options is required when the ds_type is influxdb , elasticsearch (index name), mysql or postgres .
|
ds_type
required |
Choices:
- graphite
- prometheus
- elasticsearch
- influxdb
- opentsdb
- mysql
- postgres
- alexanderzobnin-zabbix-datasource
|
The type of the datasource.
|
es_version
|
|
Elasticsearch version (for ds_type = elasticsearch only)
Version 56 is for elasticsearch 5.6+ where tou can specify the max_concurrent_shard_requests option.
|
grafana_api_key
|
|
The Grafana API key.
If set, grafana_user and grafana_password will be ignored.
|
grafana_password
|
Default:
"admin"
|
The Grafana API password.
|
grafana_url
required |
|
The Grafana URL.
|
grafana_user
|
Default:
"admin"
|
The Grafana API user.
|
interval
|
Choices:
- Hourly
- Daily
- Weekly
- Monthly
- Yearly
|
For elasticsearch ds_type , this is the index pattern used.
|
is_default
bool |
|
Make this datasource the default one.
|
max_concurrent_shard_requests
|
Default:
256
|
Starting with elasticsearch 5.6, you can specify the max concurrent shard per requests.
|
name
required |
|
The name of the datasource.
|
org_id
|
Default:
1
|
Grafana Organisation ID in which the datasource should be created.
Not used when grafana_api_key is set, because the grafana_api_key only belong to one organisation.
|
password
|
|
The datasource password
|
sslmode
|
Choices:
- disable
- require
- verify-ca
- verify-full
|
SSL mode for postgres datasoure type.
|
state
|
Choices:
- absent
present ←
|
Status of the datasource
|
time_field
|
Default:
"timestamp"
|
Name of the time field in elasticsearch ds.
For example @timestamp
|
time_interval
|
|
Minimum group by interval for influxdb or elasticsearch datasources.
for example >10s
|
tls_ca_cert
|
|
The TLS CA certificate for self signed certificates.
Only used when tls_client_cert and tls_client_key are set.
|
tls_client_cert
|
|
The client TLS certificate.
If tls_client_cert and tls_client_key are set, this will enable TLS authentication.
Starts with ----- BEGIN CERTIFICATE -----
|
tls_client_key
|
|
The client TLS private key
Starts with ----- BEGIN RSA PRIVATE KEY -----
|
tls_skip_verify
bool
(added in 2.6) |
|
Skip the TLS datasource certificate verification.
|
trends
bool
(added in 2.6) |
|
Use trends or not for zabbix datasource type
|
tsdb_resolution
|
Choices:
- millisecond
second ←
|
The opentsdb time resolution.
|
tsdb_version
|
|
The opentsdb version.
Use 1 for <=2.1, 2 for ==2.2, 3 for ==2.3.
|
url
required |
|
The URL of the datasource.
|
user
|
|
The datasource login user for influxdb datasources.
|
validate_certs
bool |
|
Whether to validate the Grafana certificate.
|
with_credentials
bool |
|
Whether credentials such as cookies or auth headers should be sent with cross-site requests.
|