Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redis usage metrics to sidekiq dashboard #2599

Merged
merged 1 commit into from
Sep 26, 2024
Merged
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
250 changes: 240 additions & 10 deletions charts/monitoring-config/dashboards/sidekiq-queues.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,21 @@
"editable": true,
"fiscalYearStartMonth": 0,
"graphTooltip": 1,
"id": 2775,
"links": [],
"liveNow": false,
"panels": [
{
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 8,
"title": "Sidekiq",
"type": "row"
},
{
"datasource": {
"type": "prometheus",
Expand All @@ -48,6 +60,7 @@
"axisLabel": "jobs",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 10,
"gradientMode": "none",
Expand Down Expand Up @@ -91,10 +104,9 @@
"h": 8,
"w": 24,
"x": 0,
"y": 0
"y": 1
},
"id": 2,
"links": [],
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -146,6 +158,7 @@
"axisPlacement": "auto",
"axisSoftMin": 0,
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -189,10 +202,9 @@
"h": 8,
"w": 24,
"x": 0,
"y": 8
"y": 9
},
"id": 4,
"links": [],
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -243,6 +255,7 @@
"axisLabel": "hours : minutes : seconds",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
Expand Down Expand Up @@ -286,10 +299,9 @@
"h": 8,
"w": 24,
"x": 0,
"y": 16
"y": 17
},
"id": 3,
"links": [],
"options": {
"legend": {
"calcs": [],
Expand Down Expand Up @@ -319,13 +331,231 @@
}
],
"title": "Age of oldest job in queue",
"transformations": [],
"transparent": true,
"type": "timeseries"
},
{
"collapsed": false,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 25
},
"id": 7,
"panels": [],
"title": "Redis",
"type": "row"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 26
},
"id": 6,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"disableTextWrap": false,
"editorMode": "code",
"expr": "global:redis:memory_usage_percentage{pod=~\"$app-redis-.*\"}",
"fullMetaSearch": false,
"includeNullMetadata": true,
"instant": false,
"legendFormat": "{{pod}}",
"range": true,
"refId": "A",
"useBackend": false
}
],
"title": "Memory Usage",
"transparent": true,
"type": "timeseries"
},
{
"datasource": {
"default": true,
"type": "prometheus",
"uid": "prometheus"
},
"fieldConfig": {
"defaults": {
"color": {
"mode": "palette-classic"
},
"custom": {
"axisBorderShow": false,
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
"barWidthFactor": 0.6,
"drawStyle": "line",
"fillOpacity": 0,
"gradientMode": "none",
"hideFrom": {
"legend": false,
"tooltip": false,
"viz": false
},
"insertNulls": false,
"lineInterpolation": "linear",
"lineWidth": 1,
"pointSize": 5,
"scaleDistribution": {
"type": "linear"
},
"showPoints": "auto",
"spanNulls": false,
"stacking": {
"group": "A",
"mode": "none"
},
"thresholdsStyle": {
"mode": "off"
}
},
"mappings": [],
"max": 100,
"min": 0,
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
},
"unit": "percent"
},
"overrides": []
},
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 34
},
"id": 5,
"options": {
"legend": {
"calcs": [],
"displayMode": "list",
"placement": "bottom",
"showLegend": true
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"targets": [
{
"datasource": {
"type": "prometheus",
"uid": "prometheus"
},
"editorMode": "code",
"expr": "100 - (kubelet_volume_stats_available_bytes{persistentvolumeclaim=~\"$app-redis.*\", namespace=\"$namespace\"} / kubelet_volume_stats_capacity_bytes{persistentvolumeclaim=~\"$app-redis.*\", namespace=\"$namespace\"} * 100)",
"instant": false,
"legendFormat": "{{persistentvolumeclaim}}",
"range": true,
"refId": "A"
}
],
"title": "Disk Usage",
"transparent": true,
"type": "timeseries"
}
],
"refresh": "",
"schemaVersion": 38,
"schemaVersion": 39,
"tags": [],
"templating": {
"list": [
Expand Down Expand Up @@ -358,7 +588,7 @@
{
"allValue": ".*",
"current": {
"selected": true,
"selected": false,
"text": "All",
"value": "$__all"
},
Expand Down Expand Up @@ -410,7 +640,7 @@
]
},
"timezone": "browser",
"title": "Sidekiq: queue length, max delay",
"title": "Sidekiq: queue length, max delay | Redis: memory usage, disk usage",
"uid": "sidekiq-queues",
"version": 2,
"weekStart": ""
Expand Down