Skip to content

Commit

Permalink
Change TCP metrics prefix to network_tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Sep 29, 2023
1 parent e7c72ff commit 0efe78a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions grafana_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@
"uid": "ebcc7fad-20b5-44f0-a8ab-7ba2195ef2c0"
},
"editorMode": "code",
"expr": "quantile(0.1, rate(concurrency_net_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"expr": "quantile(0.1, rate(network_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"hide": false,
"legendFormat": "total, 10th percentile",
"range": true,
Expand All @@ -364,7 +364,7 @@
"uid": "ebcc7fad-20b5-44f0-a8ab-7ba2195ef2c0"
},
"editorMode": "code",
"expr": "quantile(0.5, rate(concurrency_net_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"expr": "quantile(0.5, rate(network_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"hide": false,
"legendFormat": "total, 50th percentile",
"range": true,
Expand All @@ -376,7 +376,7 @@
"uid": "ebcc7fad-20b5-44f0-a8ab-7ba2195ef2c0"
},
"editorMode": "code",
"expr": "quantile(0.9, rate(concurrency_net_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"expr": "quantile(0.9, rate(network_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"hide": false,
"legendFormat": "total, 90th percentile",
"range": true,
Expand All @@ -388,7 +388,7 @@
"uid": "ebcc7fad-20b5-44f0-a8ab-7ba2195ef2c0"
},
"editorMode": "code",
"expr": "quantile(1., rate(concurrency_net_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"expr": "quantile(1., rate(network_tcp_sent_bytes{test_id=\"$test_id\"}[1m]))",
"hide": false,
"legendFormat": "total, max",
"range": true,
Expand Down Expand Up @@ -1527,7 +1527,7 @@
"uid": "ebcc7fad-20b5-44f0-a8ab-7ba2195ef2c0"
},
"editorMode": "code",
"expr": "sum(rate(concurrency_net_tcp_established{test_id=\"$test_id\",direction=\"inbound\"}[1m]))",
"expr": "sum(rate(network_tcp_established{test_id=\"$test_id\",direction=\"inbound\"}[1m]))",
"legendFormat": "new inbound",
"range": true,
"refId": "A"
Expand Down
2 changes: 1 addition & 1 deletion node/actors/network/src/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ enum Direction {

/// Metrics reported for TCP connections.
#[derive(Debug, Metrics)]
#[metrics(prefix = "concurrency_net_tcp")]
#[metrics(prefix = "network_tcp")]
struct TcpMetrics {
/// Total bytes sent over all TCP connections.
#[metrics(unit = Unit::Bytes)]
Expand Down

0 comments on commit 0efe78a

Please sign in to comment.