forked from ccfos/huatuo
63 lines
2.3 KiB
YAML
63 lines
2.3 KiB
YAML
# https://grafana.com/docs/grafana/latest/datasources/elasticsearch/
|
|
|
|
apiVersion: 1
|
|
|
|
# List of data sources to delete from the database.
|
|
deleteDatasources:
|
|
- name: huatuo-bamai-es
|
|
|
|
# Mark provisioned data sources for deletion if they are no longer in a provisioning file.
|
|
# It takes no effect if data sources are already listed in the deleteDatasources section.
|
|
prune: true
|
|
|
|
# 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: huatuo-bamai-es
|
|
# <string, required> Sets the data source type.
|
|
type: elasticsearch
|
|
# <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: huatuo-bamai-es
|
|
# <string> Sets the data source's URL, including the
|
|
# port.
|
|
url: http://localhost:9200
|
|
# <string> Sets the database user, if necessary.
|
|
user: elastic
|
|
# <string> Sets the database name, if necessary.
|
|
database:
|
|
# <bool> Enables credential headers.
|
|
withCredentials:
|
|
# <bool> Toggles whether the data source is pre-selected
|
|
# for new panels. You can set only one default
|
|
# data source per organization.
|
|
isDefault:
|
|
# <map> Fields to convert to JSON and store in jsonData.
|
|
jsonData:
|
|
index: 'huatuo_bamai*'
|
|
timeField: 'uploaded_time'
|
|
# <map> Fields to encrypt before storing in jsonData.
|
|
secureJsonData:
|
|
# <string> Defines the CA cert, client cert, and
|
|
# client key for encrypted authentication.
|
|
tlsCACert: '...'
|
|
tlsClientCert: '...'
|
|
tlsClientKey: '...'
|
|
# <string> Sets the database password, if necessary.
|
|
password: huatuo-bamai
|
|
# <int> Sets the version. Used to compare versions when
|
|
# updating. Ignored when creating a new data source.
|
|
version: 1
|
|
# <bool> Allows users to edit data sources from the
|
|
# Grafana UI.
|
|
editable: false |