51 lines
1.7 KiB
YAML
51 lines
1.7 KiB
YAML
# Configuration file version
|
|
apiVersion: 1
|
|
|
|
# List of data sources to delete from the database.
|
|
deleteDatasources:
|
|
- name: graphite
|
|
orgId: 1
|
|
|
|
# List of data sources to insert/update depending on what's
|
|
# available in the database.
|
|
datasources:
|
|
# <string, required> Sets the name you use to refer to
|
|
# the data source in panels and queries.
|
|
- name: graphite
|
|
# <string, required> Sets the data source type.
|
|
type: graphite
|
|
# <string, required> Sets the access mode, either
|
|
# proxy or direct (Server or Browser in the UI).
|
|
# Some data sources are incompatible with any setting
|
|
# but proxy (Server).
|
|
access: proxy
|
|
# <int> Sets the organization id. Defaults to orgId 1.
|
|
orgId: 1
|
|
# <string> Sets a custom UID to reference this
|
|
# data source in other parts of the configuration.
|
|
# If not specified, Grafana generates one.
|
|
uid:
|
|
# <string> Sets the data source's URL, including the
|
|
# port.
|
|
url: http://graphite:80
|
|
# <Btring> Sets the database user, if necessary.
|
|
user:
|
|
# <string> Sets the database name, if necessary.
|
|
database:
|
|
# <bool> Enables basic authorization.
|
|
basicAuth: true
|
|
# <string> Sets the basic authorization username.
|
|
basicAuthUser: guest
|
|
# <bool> Enables credential headers.
|
|
withCredentials: false
|
|
# <bool> Toggles whether the data source is pre-selected
|
|
# for new panels. You can set only one default
|
|
# data source per organization.
|
|
isDefault: true
|
|
secureJsonData:
|
|
# <string> Sets the basic authorization password.
|
|
basicAuthPassword: guest
|
|
version: 1
|
|
# <bool> Allows users to edit data sources from the
|
|
# Grafana UI.
|
|
editable: true |