Skip to content

Commit 06d6a10

Browse files
authored
Update Plugin and panels configuration (#44)
* Update plugins configuration * Add images to Application plug-in * Minor fixes * Add data source provisioning
1 parent 94c3696 commit 06d6a10

File tree

10 files changed

+44
-17
lines changed

10 files changed

+44
-17
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
LICENSE
88
yarn.lock
99
.github
10+
Dockerfile
11+
.dockerignore
1012

1113
# Folders
1214
node_modules

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ services:
2121
- GF_INSTALL_PLUGINS=redis-app
2222
volumes:
2323
- ./provisioning/plugins:/etc/grafana/provisioning/plugins
24+
- ./provisioning/datasources:/etc/grafana/provisioning/datasources
2425
# Uncomment to preserve Grafana configuration
2526
# - ./data:/var/lib/grafana

docker-compose/dev.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,9 @@ services:
2727
# - GF_LOG_LEVEL=debug
2828
volumes:
2929
# Redis Data Source should be cloned and built
30-
- ../grafana-redis-datasource/dist:/var/lib/grafana/plugins/redis-datasource
31-
- ./dist:/var/lib/grafana/plugins/redis-app
32-
- ./provisioning/plugins:/etc/grafana/provisioning/plugins
30+
- ../../grafana-redis-datasource/dist:/var/lib/grafana/plugins/redis-datasource
31+
- ../dist:/var/lib/grafana/plugins/redis-app
32+
- ../provisioning/datasources:/etc/grafana/provisioning/datasources
33+
- ../provisioning/plugins:/etc/grafana/provisioning/plugins
3334
# Uncomment to preserve Grafana configuration
3435
# - ./data:/var/lib/grafana
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: 1
2+
3+
datasources:
4+
- name: Redis
5+
type: redis-datasource
6+
access: proxy
7+
orgId: 1
8+
isDefault: true
9+
version: 1
10+
url: redis://host.docker.internal:6379
11+
jsonData:
12+
poolSize: 5
13+
timeout: 10
14+
pingInterval: 0
15+
pipelineWindow: 0
16+
editable: true

src/dashboards/redis-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"type": "panel",
3636
"id": "redis-latency-panel",
3737
"name": "Redis Latency",
38-
"version": "%VERSION%"
38+
"version": "1.1.0"
3939
},
4040
{
4141
"type": "panel",

src/plugin.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,25 @@
8181
"name": "Redis Application",
8282
"path": "img/redis-app.png"
8383
},
84+
{
85+
"name": "Redis CLI Dashboard",
86+
"path": "img/redis-cli-dashboard.png"
87+
},
88+
{
89+
"name": "RedisGears Dashboard",
90+
"path": "img/redis-gears-dashboard.png"
91+
},
8492
{
8593
"name": "Redis CLI Panel",
8694
"path": "img/redis-cli-panel.png"
95+
},
96+
{
97+
"name": "Redis Latency Panel",
98+
"path": "img/redis-latency-panel-graph.png"
99+
},
100+
{
101+
"name": "Max Memory Keys Panel",
102+
"path": "img/redis-keys-panel.png"
87103
}
88104
],
89105
"updated": "%TODAY%",

src/redis-cli-panel/plugin.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99
"logos": {
1010
"large": "img/logo.svg",
1111
"small": "img/logo.svg"
12-
},
13-
"screenshots": [],
14-
"updated": "%TODAY%",
15-
"version": "%VERSION%"
12+
}
1613
},
1714
"name": "Redis CLI",
1815
"type": "panel"

src/redis-gears-panel/plugin.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"logos": {
1010
"large": "img/logo.svg",
1111
"small": "img/logo.svg"
12-
},
13-
"updated": "%TODAY%",
14-
"version": "%VERSION%"
12+
}
1513
},
1614
"name": "RedisGears",
1715
"type": "panel"

src/redis-keys-panel/plugin.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"logos": {
1010
"large": "img/logo.svg",
1111
"small": "img/logo.svg"
12-
},
13-
"updated": "%TODAY%",
14-
"version": "%VERSION%"
12+
}
1513
},
1614
"name": "Redis Max Memory Keys",
1715
"type": "panel"

src/redis-latency-panel/plugin.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@
99
"logos": {
1010
"large": "img/logo.svg",
1111
"small": "img/logo.svg"
12-
},
13-
"updated": "%TODAY%",
14-
"version": "%VERSION%"
12+
}
1513
},
1614
"name": "Redis Latency",
1715
"type": "panel"

0 commit comments

Comments
 (0)