Skip to content

Commit

Permalink
feat(dev): allow monitoring a valkey server on localhost (#4467)
Browse files Browse the repository at this point in the history
  • Loading branch information
romange authored Jan 18, 2025
1 parent 6f0072e commit 6265f52
Show file tree
Hide file tree
Showing 4 changed files with 1,620 additions and 23 deletions.
17 changes: 17 additions & 0 deletions tools/local/monitoring/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
version: '3.8'

# To run redis exporter, run: docker compose --profile redis up
# To run memcached and its exporter: docker compose --profile memcached up
#
# Note you may still need to disable/change scraping job configs
# in prometheus.yml
#
volumes:
prometheus_data:
grafana_data:
Expand Down Expand Up @@ -98,6 +104,17 @@ services:
depends_on:
- memcached

redis-exporter:
image: quay.io/oliver006/redis_exporter
profiles: [redis]
ports:
- 9121:9121
extra_hosts:
- "host.docker.internal:host-gateway"
restart: always
environment:
- REDIS_ADDR=host.docker.internal:6379

renderer:
image: grafana/grafana-image-renderer:latest
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@
"axisPlacement": "auto",
"barAlignment": 0,
"drawStyle": "line",
"fillOpacity": 0,
"fillOpacity": 22,
"gradientMode": "none",
"hideFrom": {
"legend": false,
Expand All @@ -342,11 +342,11 @@
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"showPoints": "never",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
"mode": "normal"
},
"thresholdsStyle": {
"mode": "off"
Expand All @@ -366,7 +366,8 @@
"value": 80
}
]
}
},
"unit": "short"
},
"overrides": []
},
Expand Down Expand Up @@ -399,7 +400,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "rate(dragonfly_commands_processed_total{namespace=\"$namespace\",pod=~\"$pod_name\"}[1m])",
"expr": "sum(rate(dragonfly_commands_total{namespace=\"$namespace\",pod=~\"$pod_name\"}[1m])) by (cmd)",
"format": "time_series",
"interval": "",
"intervalFactor": 2,
Expand Down Expand Up @@ -469,7 +470,8 @@
"value": 80
}
]
}
},
"unit": "bytes"
},
"overrides": []
},
Expand Down Expand Up @@ -897,13 +899,11 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -935,7 +935,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1018,13 +1019,11 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -1056,7 +1055,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1132,13 +1132,11 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -1169,7 +1167,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1246,13 +1245,11 @@
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -1283,7 +1280,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
},
{
"color": "red",
Expand Down Expand Up @@ -1629,6 +1627,6 @@
"timezone": "browser",
"title": "Dragonfly Dashboard",
"uid": "xDLNRKUWz",
"version": 5,
"version": 1,
"weekStart": ""
}
}
Loading

0 comments on commit 6265f52

Please sign in to comment.