# <bool> mark as default datasource. Max one per org
# <bool> mark as default datasource. Max one per org
is_default:
is_default:
# <string> json data
# <map> fields that will be converted to json and stored in json_data
json_data:'{"graphiteVersion":"0.9"}'
json_data:
# <string> json object of data that will be encrypted in UI.
graphiteVersion:"1.1"
secure_json_fields:''
tlsAuth:true
# <int> including this value garantees that instance with old configs cannot
tlsAuthWithCACert:true
# overwrite your last change.
# <string> json object of data that will be encrypted.
secure_json_data:
tlsCACert:"..."
tlsClientCert:"..."
tlsClientKey:"..."
version:1
version:1
# <bool> allow users to edit datasources from the UI.
# <bool> allow users to edit datasources from the UI.
editable:true
editable:false
```
```
#### Json data
Since all datasources dont have the same configuration settings we only have the most common ones as fields. The rest should be stored as a json blob in the `json_data` field. Here are the most common settings that the core datasources use.
| Name | Type | Datasource |Description |
| ----| ---- | ---- | --- |
| tlsAuth | boolean | *All* | Enable TLS authentication using client cert configured in secure json data |
| tlsAuthWithCACert | boolean | *All* | Enable TLS authtication using CA cert |
| graphiteVersion | string | Graphite | Graphite version |
| timeInterval | string | Elastic, Influxdb & Prometheus | Lowest interval/step value that should be used for this data source |
| esVersion | string | Elastic | Elasticsearch version |
| timeField | string | Elastic | Which field that should be used as timestamp |
| interval | string | Elastic | Index date time format |
Secure json data is a map of settings that will be encrypted with [secret key](/installation/configuration/#secret-key) from the grafana config. The purpose of this is only to hide content from the users of the application. This should be used for storing TLS Cert and password that Grafana will append to request on the server side. All these settings are optional.
| Name | Type | Datasource | Description |
| ----| ---- | ---- | --- |
| tlsCACert | string | *All* |CA cert for out going requests |