Skip to content

Commit

Permalink
Merge pull request #111 from qmhu/wo-update
Browse files Browse the repository at this point in the history
Update workload overview dashboard
  • Loading branch information
qmhu authored Mar 17, 2023
2 parents 6d573a4 + 23cb9e6 commit 25644e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
15 changes: 9 additions & 6 deletions integration/grafana/dashboards/workload-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"iteration": 1678953135490,
"iteration": 1679036195996,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -380,7 +380,7 @@
"exemplar": true,
"expr": "avg by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \nsum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"cpu\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))",
"interval": "",
"legendFormat": "__auto",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -470,7 +470,7 @@
"exemplar": true,
"expr": "(avg by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \nsum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"memory\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\")))/1024/1024/1024",
"interval": "",
"legendFormat": "__auto",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -555,8 +555,10 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \n(sum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"cpu\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))\n*\ncount by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n)",
"legendFormat": "__auto",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -642,8 +644,10 @@
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": true,
"expr": "(sum by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \n(sum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"memory\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))\n*\ncount by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n)\n)/1024/1024/1024",
"legendFormat": "__auto",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -696,7 +700,6 @@
"allValue": null,
"current": {
"selected": true,
"tags": [],
"text": [
"kube-system"
],
Expand Down
16 changes: 9 additions & 7 deletions integration/grafana/override_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4623,7 +4623,6 @@ dashboards:
"sort": 1,
"tagValuesQuery": "",
"tags": [],
"tagsQuery": "",
"type": "query",
"useTags": false
}
Expand Down Expand Up @@ -4668,7 +4667,7 @@ dashboards:
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"iteration": 1678953135490,
"iteration": 1679036195996,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -5023,7 +5022,7 @@ dashboards:
"exemplar": true,
"expr": "avg by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \nsum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"cpu\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))",
"interval": "",
"legendFormat": "__auto",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -5113,7 +5112,7 @@ dashboards:
"exemplar": true,
"expr": "(avg by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \nsum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"memory\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\")))/1024/1024/1024",
"interval": "",
"legendFormat": "__auto",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -5198,8 +5197,10 @@ dashboards:
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": true,
"expr": "sum by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \n(sum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"cpu\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))\n*\ncount by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"core\",resource=\"cpu\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n)",
"legendFormat": "__auto",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -5285,8 +5286,10 @@ dashboards:
"uid": "PBFA97CFB590B2093"
},
"editorMode": "code",
"exemplar": true,
"expr": "(sum by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n- \n(sum by (workload) (label_replace(crane_analysis_resource_recommendation{namespace=~\"$Namespace\",owner_kind=\"Deployment\",resource=\"memory\",owner_name=~\"$Workload\"}, \"workload\", \"$1\", \"owner_name\", \"(.*)\"))\n*\ncount by (workload) (label_replace(kube_pod_container_resource_requests{namespace=~\"$Namespace\",unit=\"byte\",resource=\"memory\",pod=~\"^$Workload-.*$\"}, \"workload\", \"$1\", \"pod\", \"(^$Workload)-.*$\"))\n)\n)/1024/1024/1024",
"legendFormat": "__auto",
"interval": "",
"legendFormat": "",
"range": true,
"refId": "A"
}
Expand Down Expand Up @@ -5339,7 +5342,6 @@ dashboards:
"allValue": null,
"current": {
"selected": true,
"tags": [],
"text": [
"kube-system"
],
Expand Down

0 comments on commit 25644e6

Please sign in to comment.