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).
$ 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.