Skip to content

Commit

Permalink
Merge pull request kubernetes#1185 from tosi3k/prometheus-etcd-rate
Browse files Browse the repository at this point in the history
Change query function to rate for etcd_network_client_grpc_sent_bytes_total metric
  • Loading branch information
k8s-ci-robot committed Apr 24, 2020
2 parents efa233a + 32e25a0 commit 6a9fefa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}}",
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 6a9fefa

Please sign in to comment.