BlockManagerSource — Metrics Source for BlockManager
BlockManagerSource
is the metrics source of a BlockManager.
BlockManagerSource
is registered under the name BlockManager (when SparkContext
is created).
Name | Type | Description |
---|---|---|
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
|
long |
Requests |
You can access the BlockManagerSource
metrics using the web UI’s port (as spark.ui.port configuration property).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
$ http --follow http://localhost:4040/metrics/json \ | jq '.gauges | keys | .[] | select(test(".driver.BlockManager"; "g"))' "local-1528725411625.driver.BlockManager.disk.diskSpaceUsed_MB" "local-1528725411625.driver.BlockManager.memory.maxMem_MB" "local-1528725411625.driver.BlockManager.memory.maxOffHeapMem_MB" "local-1528725411625.driver.BlockManager.memory.maxOnHeapMem_MB" "local-1528725411625.driver.BlockManager.memory.memUsed_MB" "local-1528725411625.driver.BlockManager.memory.offHeapMemUsed_MB" "local-1528725411625.driver.BlockManager.memory.onHeapMemUsed_MB" "local-1528725411625.driver.BlockManager.memory.remainingMem_MB" "local-1528725411625.driver.BlockManager.memory.remainingOffHeapMem_MB" "local-1528725411625.driver.BlockManager.memory.remainingOnHeapMem_MB" |
BlockManagerSource
takes a BlockManager when created.