Skip to content

Commit

Permalink
Add metric for chunks currently being trasnferred
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman committed Sep 20, 2024
1 parent bb8294c commit 8e9ba42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ protected Ratio getRatio() {
});
allMetrics.put("registeredExecutorsSize",
(Gauge<Integer>) () -> blockManager.getRegisteredExecutorsSize());
allMetrics.put("chunksBeingTransferred",
(Gauge<Long>) () -> streamManager.chunksBeingTransferred());
allMetrics.put("numActiveConnections", activeConnections);
allMetrics.put("numCaughtExceptions", caughtExceptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,7 @@ abstract class YarnShuffleServiceSuite extends SparkFunSuite with Matchers {
"blockTransferMessageRate",
"blockTransferRateBytes",
"blockTransferAvgSize_1min",
"chunksBeingTransferred",
"numActiveConnections",
"numCaughtExceptions",
"numRegisteredConnections",
Expand Down

0 comments on commit 8e9ba42

Please sign in to comment.