From 32e25a043a60df7399317982e2d5b75d27ded601 Mon Sep 17 00:00:00 2001 From: Antoni Zawodny Date: Wed, 22 Apr 2020 10:54:05 +0200 Subject: [PATCH] Change query function to rate for etcd_network_client_grpc_sent_bytes_total metric --- .../manifests/dashboards/master-dashboard.dashboard.py | 2 +- .../pkg/prometheus/manifests/dashboards/master-dashboard.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.dashboard.py b/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.dashboard.py index a03e760b18..4d6993215c 100755 --- a/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.dashboard.py +++ b/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.dashboard.py @@ -103,7 +103,7 @@ def api_call_latency(title, verb, scope, threshold): d.simple_graph("etcd leader", "etcd_server_is_leader", legend="{{instance}}"), d.simple_graph( "etcd bytes sent", - "irate(etcd_network_client_grpc_sent_bytes_total[1m])", + "rate(etcd_network_client_grpc_sent_bytes_total[1m])", yAxes=g.single_y_axis(format=g.BYTES_PER_SEC_FORMAT), legend="{{instance}}", ), diff --git a/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.json b/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.json index 46f9eb65bd..6af2ae570c 100644 --- a/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.json +++ b/clusterloader2/pkg/prometheus/manifests/dashboards/master-dashboard.json @@ -1192,7 +1192,7 @@ "targets": [ { "datasource": "", - "expr": "irate(etcd_network_client_grpc_sent_bytes_total[1m])", + "expr": "rate(etcd_network_client_grpc_sent_bytes_total[1m])", "format": "time_series", "instant": false, "interval": "5s",