M3-3: Container Diagnostics
Description
Create diagnose_container_issues tool for automated container problem diagnosis.
Endpoint
POST /api/v1/tools/diagnose_container_issues
Parameters
-
container_name
(string): Container to diagnose
Response Structure (from PRD)
{
"container": "gitlab",
"state": {
"status": "running",
"started_at": "2025-08-18T08:00:00Z",
"exit_code": null,
"oom_killed": false
},
"restart_history": [
{
"timestamp": "2025-08-18T07:55:00Z",
"exit_code": 137,
"reason": "OOMKilled"
}
],
"health_check": {
"configured": true,
"last_result": "unhealthy",
"failing_since": "2025-08-18T09:00:00Z",
"consecutive_failures": 3
},
"resource_constraints": {
"cpu_limit": "2.0",
"memory_limit_mb": 4096
},
"network_config": {
"mode": "bridge",
"networks": ["br0"]
}
}
Estimated Effort
1.5 days