Skip to content

Commit

Permalink
Add pod variable to controller-runtime dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
timebertt committed Aug 23, 2023
1 parent bfb3dc5 commit b47bf70
Showing 1 changed file with 68 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",controller=~\"$controller\"}[$__range])) by (controller)",
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__range])) by (controller)",
"format": "time_series",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -208,7 +208,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(controller_runtime_max_concurrent_reconciles{job=\"$job\",controller=~\"$controller\"}) by (controller)",
"expr": "sum(controller_runtime_max_concurrent_reconciles{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}) by (controller)",
"format": "table",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -293,7 +293,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(controller_runtime_reconcile_time_seconds_sum{job=\"$job\",controller=~\"$controller\"}[$__range])) by (controller)",
"expr": "sum(rate(controller_runtime_reconcile_time_seconds_sum{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__range])) by (controller)",
"format": "time_series",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -411,7 +411,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",controller=~\"$controller\"}[$__rate_interval])) by (controller)",
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__rate_interval])) by (controller)",
"interval": "",
"legendFormat": "{{controller}}",
"range": true,
Expand Down Expand Up @@ -565,7 +565,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",controller=~\"$controller\"}[$__rate_interval])) by (result)",
"expr": "sum(rate(controller_runtime_reconcile_total{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__rate_interval])) by (result)",
"interval": "",
"legendFormat": "{{result}}",
"range": true,
Expand Down Expand Up @@ -663,7 +663,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(rate(controller_runtime_reconcile_errors_total{job=\"$job\",controller=~\"$controller\"}[$__rate_interval])) by (controller)",
"expr": "sum(rate(controller_runtime_reconcile_errors_total{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__rate_interval])) by (controller)",
"interval": "",
"legendFormat": "{{controller}}",
"range": true,
Expand Down Expand Up @@ -756,7 +756,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "histogram_quantile($percentile/100, sum(rate(controller_runtime_reconcile_time_seconds_bucket{job=\"$job\",controller=~\"$controller\"}[$__rate_interval])) by (controller,le))",
"expr": "histogram_quantile($percentile/100, sum(rate(controller_runtime_reconcile_time_seconds_bucket{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}[$__rate_interval])) by (controller,le))",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -863,7 +863,7 @@
},
"editorMode": "code",
"exemplar": true,
"expr": "sum(controller_runtime_active_workers{job=\"$job\",controller=~\"$controller\"}) by (controller)",
"expr": "sum(controller_runtime_active_workers{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}) by (controller)",
"interval": "",
"legendFormat": "{{controller}}",
"range": true,
Expand Down Expand Up @@ -969,7 +969,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(controller_runtime_max_concurrent_reconciles{job=\"$job\",controller=~\"$controller\"}) by (controller)",
"expr": "sum(controller_runtime_max_concurrent_reconciles{job=\"$job\",pod=~\"$pod\",controller=~\"$controller\"}) by (controller)",
"format": "table",
"hide": false,
"instant": true,
Expand Down Expand Up @@ -1079,7 +1079,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(workqueue_unfinished_work_seconds{job=\"$job\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"expr": "sum(rate(workqueue_unfinished_work_seconds{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1174,7 +1174,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "max(workqueue_longest_running_processor_seconds{job=\"$job\",name=~\"$controller\"}) by (name)",
"expr": "max(workqueue_longest_running_processor_seconds{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}) by (name)",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1215,6 +1215,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -1248,7 +1250,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
},
Expand Down Expand Up @@ -1283,7 +1286,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(workqueue_adds_total{job=\"$job\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"expr": "sum(rate(workqueue_adds_total{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"format": "time_series",
"instant": false,
"interval": "",
Expand All @@ -1307,6 +1310,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -1340,7 +1345,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
},
Expand Down Expand Up @@ -1375,7 +1381,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(rate(workqueue_retries_total{job=\"$job\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"expr": "sum(rate(workqueue_retries_total{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}[$__rate_interval])) by (name)",
"format": "time_series",
"instant": false,
"interval": "",
Expand All @@ -1399,6 +1405,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -1432,7 +1440,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
},
Expand Down Expand Up @@ -1467,7 +1476,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "histogram_quantile($percentile/100, sum(rate(workqueue_queue_duration_seconds_bucket{job=\"$job\",name=~\"$controller\"}[$__rate_interval])) by (name,le))",
"expr": "histogram_quantile($percentile/100, sum(rate(workqueue_queue_duration_seconds_bucket{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}[$__rate_interval])) by (name,le))",
"format": "time_series",
"instant": false,
"interval": "",
Expand All @@ -1491,6 +1500,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -1524,7 +1535,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
},
Expand Down Expand Up @@ -1559,7 +1571,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "histogram_quantile($percentile/100, sum(rate(workqueue_work_duration_seconds_bucket{job=\"$job\",name=~\"$controller\"}[$__rate_interval])) by (name,le))",
"expr": "histogram_quantile($percentile/100, sum(rate(workqueue_work_duration_seconds_bucket{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}[$__rate_interval])) by (name,le))",
"format": "time_series",
"instant": false,
"interval": "",
Expand All @@ -1583,6 +1595,8 @@
"mode": "palette-classic"
},
"custom": {
"axisCenteredZero": false,
"axisColorMode": "text",
"axisLabel": "",
"axisPlacement": "auto",
"barAlignment": 0,
Expand Down Expand Up @@ -1616,7 +1630,8 @@
"mode": "absolute",
"steps": [
{
"color": "green"
"color": "green",
"value": null
}
]
},
Expand Down Expand Up @@ -1651,7 +1666,7 @@
},
"editorMode": "code",
"exemplar": false,
"expr": "sum(workqueue_depth{job=\"$job\",name=~\"$controller\"}) by (name)",
"expr": "sum(workqueue_depth{job=\"$job\",pod=~\"$pod\",name=~\"$controller\"}) by (name)",
"format": "time_series",
"instant": false,
"interval": "",
Expand Down Expand Up @@ -1749,6 +1764,38 @@
"sort": 1,
"type": "query"
},
{
"allFormat": "glob",
"allValue": ".*",
"current": {
"selected": true,
"text": [
"All"
],
"value": [
"$__all"
]
},
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"definition": "label_values(controller_runtime_reconcile_total{job=\"$job\"}, pod)",
"hide": 0,
"includeAll": true,
"multi": true,
"name": "pod",
"options": [],
"query": {
"query": "label_values(controller_runtime_reconcile_total{job=\"$job\"}, pod)",
"refId": "StandardVariableQuery"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"type": "query"
},
{
"current": {
"selected": false,
Expand Down

0 comments on commit b47bf70

Please sign in to comment.