mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-22 09:27:46 +02:00
feat(alerts): add container health alerts with log excerpt on notifications (#2225)
Add a new "ContainerHealth" alert type that fires when a Docker container's health check reports unhealthy, and resolves when it recovers. This mirrors the existing Status (up/down) alert pattern: an alert can be armed per system and honors the "min minutes" delay before firing. When the alert fires, the notification (email and any configured webhook, including Discord via shoutrrr) includes a log excerpt fetched live from the agent for up to 2 of the unhealthy containers, prioritizing lines containing "error" or "fatal" (falling back to the log tail if none match), capped to keep the message well under Discord's size limit. --------- Co-authored-by: hank <hank@henrygd.me>
This commit is contained in:
@@ -424,6 +424,14 @@ msgstr "Conflitti"
|
||||
msgid "Connection is down"
|
||||
msgstr "La connessione è interrotta"
|
||||
|
||||
#: src/lib/alerts.ts
|
||||
msgid "Container"
|
||||
msgstr "Container"
|
||||
|
||||
#: src/lib/alerts.ts
|
||||
msgid "Container Health"
|
||||
msgstr "Stato del container"
|
||||
|
||||
#: src/components/routes/system.tsx
|
||||
msgid "Containers"
|
||||
msgstr "Container"
|
||||
@@ -1749,6 +1757,10 @@ msgstr "Si attiva quando la media di carico di 15 minuti supera una soglia"
|
||||
msgid "Triggers when 5 minute load average exceeds a threshold"
|
||||
msgstr "Si attiva quando la media di carico di 5 minuti supera una soglia"
|
||||
|
||||
#: src/lib/alerts.ts
|
||||
msgid "Triggers when a Docker container's health check reports unhealthy"
|
||||
msgstr "Si attiva quando il controllo di integrità (health check) di un container Docker restituisce uno stato non sano"
|
||||
|
||||
#: src/lib/alerts.ts
|
||||
msgid "Triggers when any sensor exceeds a threshold"
|
||||
msgstr "Attiva quando un sensore supera una soglia"
|
||||
@@ -1795,6 +1807,10 @@ msgstr "Attiva quando l'utilizzo di un disco supera una soglia"
|
||||
msgid "Type"
|
||||
msgstr "Tipo"
|
||||
|
||||
#: src/lib/alerts.ts
|
||||
msgid "Unhealthy"
|
||||
msgstr "Non sano"
|
||||
|
||||
#: src/components/systemd-table/systemd-table.tsx
|
||||
msgid "Unit file"
|
||||
msgstr "File unit"
|
||||
|
||||
Reference in New Issue
Block a user