Skip to main content

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));