Skip to content

Commit

Permalink
Regenerate KKP dashboards from release/v2.21 branch (#157)
Browse files Browse the repository at this point in the history
Signed-off-by: Marvin Beckers <[email protected]>
  • Loading branch information
embik authored Mar 29, 2023
1 parent 6aa2aa6 commit d81b6d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions dashboards/kkp-kubernetes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ data:
"steppedLine": false,
"targets": [
{
"expr": "avg by (node_name) (sum by (node_name) (irate(node_cpu_seconds_total{job=\"node-exporter\", mode!=\"idle\", node_name=~\"$nodes\"}[2m]) * 100))",
"expr": "avg by (node_name) (100 - (irate(node_cpu_seconds_total{job=\"node-exporter\", mode=\"idle\", node_name=~\"$nodes\"}[2m]) * 100))",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "{{ node_name }}",
Expand Down Expand Up @@ -165,7 +165,7 @@ data:
"tableColumn": "",
"targets": [
{
"expr": "avg (sum by (node_name) (irate(node_cpu_seconds_total{job=\"node-exporter\", mode!=\"idle\", node_name=~\"$nodes\"}[2m]) * 100))",
"expr": "avg (100 - (irate(node_cpu_seconds_total{job=\"node-exporter\", mode=\"idle\", node_name=~\"$nodes\"}[2m]) * 100))",
"format": "time_series",
"intervalFactor": 2,
"refId": "A"
Expand Down Expand Up @@ -2273,7 +2273,7 @@ data:
"refId": "B"
},
{
"expr": "sum (kube_pod_container_resource_limits_memory_bytes{job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\"})",
"expr": "sum (kube_pod_container_resource_limits{resource=\"memory\", job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Limit",
Expand Down Expand Up @@ -2376,7 +2376,7 @@ data:
"refId": "B"
},
{
"expr": "sum by(container) (kube_pod_container_resource_limits_memory_bytes{job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\", container=~\"$container\"})",
"expr": "sum by(container) (kube_pod_container_resource_limits{resource=\"memory\", job=\"kube-state-metrics\", namespace=\"$namespace\", pod=\"$pod\", container=~\"$container\"})",
"format": "time_series",
"intervalFactor": 2,
"legendFormat": "Limit: {{ container }}",
Expand Down
2 changes: 1 addition & 1 deletion hack/generate-kkp-dashboards.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

KKP_REPO_DIR="${KKP_REPO_DIR:-}"
KKP_REPO_URL="${KKP_REPO_URL:-https://github.com/kubermatic/kubermatic.git}"
KKP_REPO_TAG="${KKP_REPO_TAG:-weekly-2021-33}"
KKP_REPO_TAG="${KKP_REPO_TAG:-release/v2.21}"

TMP_REPO_DIR="${TMP_REPO_DIR:-/tmp/kubermatic-sources}"
TMP_DASHBOARD_DIR="${TMP_DASHBOARD_DIR:-/tmp/kkp-dashboards}"
Expand Down

0 comments on commit d81b6d1

Please sign in to comment.