From 4902887205795020f7267fe02664323c3576c5cf Mon Sep 17 00:00:00 2001 From: CarlosEDP Date: Tue, 5 Feb 2019 11:57:43 -0200 Subject: [PATCH] Update Grafana dashboard --- .../kubernetes-cluster-dashboard.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/grafana-dashboards/kubernetes-cluster-dashboard.json b/grafana-dashboards/kubernetes-cluster-dashboard.json index da58dbb..9f42016 100644 --- a/grafana-dashboards/kubernetes-cluster-dashboard.json +++ b/grafana-dashboards/kubernetes-cluster-dashboard.json @@ -16,7 +16,7 @@ "editable": true, "gnetId": 162, "graphTooltip": 1, - "id": 13, + "id": 7, "links": [], "panels": [ { @@ -1358,10 +1358,10 @@ "steppedLine": false, "targets": [ { - "expr": "topk(10,sum(rate(container_network_transmit_bytes_total{name=~\".+\"}[5m])) by (name))", + "expr": "topk(10,sum(rate(container_network_transmit_bytes_total{pod_name=~\".+\"}[5m])) by (pod_name))", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{ name }}", + "legendFormat": "{{ pod_name }}", "refId": "A", "step": 240 }, @@ -1383,7 +1383,7 @@ "tooltip": { "msResolution": true, "shared": true, - "sort": 1, + "sort": 2, "value_type": "cumulative" }, "transparent": false, @@ -1465,19 +1465,19 @@ "steppedLine": false, "targets": [ { - "expr": "topk(10,sum(rate(container_network_receive_bytes_total{name=~\".+\"}[5m])) by (name))", + "expr": "topk(10,sum(rate(container_network_receive_bytes_total{pod_name=~\".+\"}[5m])) by (pod_name))", "format": "time_series", "intervalFactor": 2, - "legendFormat": "{{name}}", + "legendFormat": "{{pod_name}}", "refId": "A", "step": 240 }, { - "expr": "- rate(container_network_transmit_bytes_total{name=~\".+\"}[$interval])", + "expr": "- rate(container_network_transmit_bytes_total{pod_name=~\".+\"}[$interval])", "format": "time_series", "hide": true, "intervalFactor": 2, - "legendFormat": "{{name}}", + "legendFormat": "{{pod_name}}", "refId": "B", "step": 10 } @@ -1490,7 +1490,7 @@ "tooltip": { "msResolution": true, "shared": true, - "sort": 1, + "sort": 2, "value_type": "cumulative" }, "transparent": false,