Container Process
The /detail/:cluster/container/:containerName/process endpoint of the Dashium API provides statistics about processes in a specific Docker container.
Use this route to obtain information about the processes running within the container.
Endpointβ
- Path:
/detail/:cluster/container/:containerName/process - Method:
GET - Parameters:
:cluster(Docker cluster identifier):containerName(Docker container name)
Responseβ
The response includes detailed information about the processes running within the specified Docker container.
Response Exampleβ
{
"Processes": [
["PID", "TTY", "TIME", "CMD"],
["1234", "?", "00:00:05", "/usr/bin/app"],
["5678", "?", "00:00:02", "/usr/bin/server"]
]
}
Exampleβ
fetch('http://your-api-url/detail/your-cluster/container/your-container/process')
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));