Add Docker container health detector

Monitors for containers stuck in restart loops or unhealthy states:
- Critical: restart loop (≥3 restarts)
- Warning: restarting, exited abnormally, or unhealthy

Disabled by default in config.json.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 20:54:08 -06:00
parent b99ac96ffa
commit da6613ada3
2 changed files with 188 additions and 0 deletions

View File

@@ -52,6 +52,16 @@
"HOSTS": "8.8.8.8,google.com",
"TIMEOUT": "5"
}
},
{
"name": "docker",
"enabled": false,
"script": "detectors/docker.py",
"env": {
"CHECK_INTERVAL": "60",
"RESTART_THRESHOLD": "3",
"CONTAINERS": ""
}
}
]
}