Read Docker container metrics
get/api/v1/metrics/docker
Response
OK
Example response
{
"data": [
{
"container_id": "09e88f793869982fdb86e0ac183a4487a8bcf763179c9bbf2f8d6e25492f23bc",
"container_name": "optimistic_jang",
"status": "running",
"health": {
"healthy": true,
"source": "state_based_health_check",
"message": "Based on container state"
},
"running": true,
"base_image": "nginx:latest",
"exposed_ports": [
{
"port": "80",
"protocol": "tcp"
}
],
"started_at": 1701167445,
"stats": {
"memory_usage": 4706304,
"memory_limit": 16101339136,
"memory_percent": 0.03,
"network_rx_bytes": 8030,
"network_tx_bytes": 126,
"block_read_bytes": 3580000,
"block_write_bytes": 3140000,
"pids": 7
}
}
],
"errors": [
{
"metric": [
"cpu.temperature"
]
}
]
}