feat: Docker container checks
A Docker monitor asks the Docker Engine API for a container's state: up while it runs and its health check, if any, is not unhealthy; exited, paused or missing containers are reported as such. The API is reached over the checker host's Unix socket, allowed only on checkers that may see private networks, or over plain TCP through the network guard. The README lists all check types and notification services and explains mounting the socket. Closes #97 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
f14b760069
commit
8a988df724
12 files changed
+1474
-1202
No files matched your search
@@ -495,6 +495,7 @@ type MonitorForm struct {
|
||||
Broker BrokerForm
|
||||
Proto ProtocolForm
|
||||
Game GameForm
|
||||
DockerHost string
|
||||
// Types are the check types to offer.
|
||||
Types []string
|
||||
}
|
||||
@@ -692,6 +693,10 @@ templ MonitorEditor(p Page, me Me, f MonitorForm) {
|
||||
</label>
|
||||
@numberField(i18n.T(ctx, "monitors.game_min_free_slots"), "config.min_free_slots", f.Game.MinFreeSlots, 0, 10000, i18n.T(ctx, "monitors.game_min_free_slots_hint"))
|
||||
}
|
||||
@typeFields("docker", f.Type) {
|
||||
<p class="mb-4 text-xs text-muted">{ i18n.T(ctx, "monitors.docker_hint") }</p>
|
||||
@valueField(i18n.T(ctx, "monitors.docker_host"), "config.host", f.DockerHost, "unix:///var/run/docker.sock", false)
|
||||
}
|
||||
@typeFields("alertmanager", f.Type) {
|
||||
<p class="mb-4 text-xs text-muted">
|
||||
{ i18n.T(ctx, "monitors.alertmanager_hint") }
|
||||
|
||||
Reference in new issue
Block a user