Skip to main content

DataSource

Properties

PropertyTypeAttributesDescription
namestringRequiredThe data source name.
typestringRequiredThe data source plugin type, for example prometheus.
uidstringRequired, IdentifierThe stable Grafana data source UID.
accessstringThe access mode. Grafana commonly uses proxy.
basicAuthboolWhether basic authentication is enabled.
basicAuthUserstringThe basic authentication user name.
databasestringThe database name.
isDefaultboolWhether this is the default data source.
jsonDataJsonstringA JSON object containing plugin-specific non-secret configuration.
secureJsonDataJsonstringWrite-only, SensitiveA JSON object containing plugin-specific secret configuration.
urlstringThe data source URL.
userstringThe user name.
withCredentialsboolWhether credentials are sent with cross-site requests.