Skip to content

Commit

Permalink
version 1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RiskyAdventure committed Nov 21, 2024
1 parent 253c66b commit 7a1324d
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 82 deletions.
83 changes: 37 additions & 46 deletions artifacts/grafana-dashboards/eks/infrastructure/kcm.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"__inputs": [
{
"name": "DS_PROMETHEUS",
"label": "prometheus",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
],
"__inputs": [],
"__elements": {},
"__requires": [
{
Expand Down Expand Up @@ -86,7 +77,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "${datasource}"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -169,12 +160,12 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "topk(5, rate(workqueue_queue_duration_seconds_sum{job=\"$job\"}[5m]) / rate(workqueue_queue_duration_seconds_count{job=\"$job\"}[5m]))",
"expr": "topk(5, rate(workqueue_queue_duration_seconds_sum{job=\"$job\"}[$__rate_interval]) / rate(workqueue_queue_duration_seconds_count{job=\"$job\"}[$__rate_interval]))",
"instant": false,
"interval": "5m",
"interval": "1m",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
Expand All @@ -187,7 +178,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -271,13 +262,13 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "topk(5, rate(workqueue_work_duration_seconds_sum{job=\"$job\"}[5m]) / rate(workqueue_work_duration_seconds_count{job=\"$job\"}[5m])) > 0",
"expr": "topk(5, rate(workqueue_work_duration_seconds_sum{job=\"$job\"}[$__rate_interval]) / rate(workqueue_work_duration_seconds_count{job=\"$job\"}[$__rate_interval])) > 0",
"hide": false,
"instant": false,
"interval": "5m",
"interval": "1m",
"legendFormat": "{{name}}",
"range": true,
"refId": "B"
Expand All @@ -290,7 +281,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -319,7 +310,6 @@
}
},
"mappings": [],
"noValue": "No Value",
"thresholds": {
"mode": "absolute",
"steps": [
Expand Down Expand Up @@ -374,12 +364,12 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "topk(5, sum_over_time(workqueue_depth{job=\"$job\"}[5m])) > 0",
"expr": "topk(5, sum_over_time(workqueue_depth{job=\"$job\"}[$__rate_interval])) > 0",
"instant": false,
"interval": "5m",
"interval": "1m",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
Expand All @@ -405,7 +395,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"description": "Length of Time in Queue",
"fieldConfig": {
Expand Down Expand Up @@ -491,12 +481,12 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "rate(workqueue_queue_duration_seconds_sum{job=\"$job\"}[5m]) / rate(workqueue_queue_duration_seconds_count{job=\"$job\"}[5m]) > 0",
"expr": "rate(workqueue_queue_duration_seconds_sum{job=\"$job\"}[$__rate_interval]) / rate(workqueue_queue_duration_seconds_count{job=\"$job\"}[$__rate_interval]) > 0",
"instant": false,
"interval": "5m",
"interval": "1m",
"legendFormat": "{{name}}",
"range": true,
"refId": "A"
Expand All @@ -509,7 +499,7 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -597,11 +587,12 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum_over_time(workqueue_depth{job=\"$job\"}[5m]) > 1 ",
"expr": "sum_over_time(workqueue_depth{job=\"$job\"}[$__rate_interval]) > 1 ",
"instant": false,
"interval": "1m",
"legendFormat": "__auto",
"range": true,
"refId": "A"
Expand All @@ -613,9 +604,8 @@
},
{
"datasource": {
"default": false,
"type": "datasource",
"uid": "-- Mixed --"
"type": "prometheus",
"uid": "$datasource"
},
"fieldConfig": {
"defaults": {
Expand Down Expand Up @@ -702,12 +692,13 @@
{
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"editorMode": "code",
"expr": "sum(increase(workqueue_adds_total{job=\"$job\"}[5m]) > 1) by (name)",
"interval": "5m",
"legendFormat": "{{cluster}} {{instance}} {{name}}",
"expr": "sum(increase(workqueue_adds_total{job=\"$job\"}[$__rate_interval]) > 1) by (name)",
"instant": false,
"interval": "$__rate_interval",
"legendFormat": "__auto",
"range": true,
"refId": "A"
}
Expand All @@ -717,7 +708,7 @@
"type": "timeseries"
}
],
"refresh": "5s",
"refresh": "5m",
"schemaVersion": 39,
"tags": [
"RiskyAdventure"
Expand All @@ -727,8 +718,8 @@
{
"current": {
"selected": false,
"text": "prometheus",
"value": "be3cycu4o9340e"
"text": "default",
"value": "default"
},
"hide": 0,
"includeAll": false,
Expand All @@ -747,11 +738,11 @@
"current": {},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
"uid": "$datasource"
},
"definition": "label_values(job)",
"hide": 0,
"includeAll": true,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
Expand All @@ -761,10 +752,10 @@
"query": "label_values(job)",
"refId": "PrometheusVariableQueryEditor-VariableQuery"
},
"refresh": 2,
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"sort": 1,
"sort": 0,
"type": "query"
}
]
Expand All @@ -780,7 +771,7 @@
},
"timezone": "utc",
"title": "EKS Controller Manager",
"uid": "8675309",
"version": 5,
"uid": "86753092",
"version": 3,
"weekStart": ""
}
Loading

0 comments on commit 7a1324d

Please sign in to comment.