Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Fix settings interference while initializing #24 #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion speedweb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
FROM grafana/grafana
MAINTAINER Pedro César de Azevedo <[email protected]>

COPY conf/grafana.db /var/lib/grafana/grafana.db
COPY conf/home.json /usr/share/grafana/public/dashboards/home.json
COPY provisioning/ /etc/grafana/provisioning

ENV GF_SERVER_ROOT_URL http://localhost
ENV GF_SECURITY_ADMIN_PASSWORD admin
Expand Down
Binary file removed speedweb/conf/grafana.db
Binary file not shown.
50 changes: 50 additions & 0 deletions speedweb/provisioning/datasources/datasource.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# config file version
apiVersion: 1

# list of datasources that should be deleted from the database
deleteDatasources:
- name: InfluxDB
orgId: 1

# list of datasources to insert/update depending
# whats available in the database
datasources:
# <string, required> name of the datasource. Required
- name: InfluxDB
# <string, required> datasource type. Required
type: influxdb
# <string, required> access mode. direct or proxy. Required
access: proxy
# <int> org id. will default to orgId 1 if not specified
orgId: 1
# <string> url
url: http://db:8086
# <string> database password, if used
password:
# <string> database user, if used
user:
# <string> database name, if used
database: speedtest
# <bool> enable/disable basic auth
basicAuth: false
# <string> basic auth username
basicAuthUser:
# <string> basic auth password
basicAuthPassword:
# <bool> enable/disable with credentials headers
withCredentials:
# <bool> mark as default datasource. Max one per org
isDefault: true
# <map> fields that will be converted to json and stored in json_data
jsonData:
graphiteVersion: "1.1"
tlsAuth: false
tlsAuthWithCACert: false
# <string> json object of data that will be encrypted.
secureJsonData:
tlsCACert: ""
tlsClientCert: ""
tlsClientKey: ""
version: 1
# <bool> allow users to edit datasources from the UI.
editable: true