Skip to content

Commit

Permalink
feat: provision redis plugin and redis datasource config
Browse files Browse the repository at this point in the history
  • Loading branch information
mashb1t committed Mar 5, 2022
1 parent 1858293 commit 02af830
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/grafana.env.dist
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Grafana options
GF_SECURITY_ADMIN_USER=admin
GF_SECURITY_ADMIN_PASSWORD=admin
GF_INSTALL_PLUGINS=
GF_INSTALL_PLUGINS=redis-app
2 changes: 2 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ services:
image: grafana/grafana:8.4.1
depends_on:
- influxdb
links:
- redis
env_file: config/grafana.env
ports:
- '3000:3000'
Expand Down
29 changes: 29 additions & 0 deletions grafana/provisioning/datasources/redis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# config file version
apiVersion: 1

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

# list of datasources to insert/update depending
# whats available in the database
datasources:
# <string, required> name of the datasource. Required
- name: Redis
# <string, required> datasource type. Required
type: redis-datasource
# <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: redis://redis:6379
version: 1
jsonData:
client: standalone
poolSize: 5
timeout: 10
pingInterval: 0
pipelineWindow: 0
editable: false

0 comments on commit 02af830

Please sign in to comment.