<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Abdaullah Bakry</title>
    <description>The latest articles on DEV Community by Abdaullah Bakry (@abdaullah_bakry_0b22a2e30).</description>
    <link>https://dev.to/abdaullah_bakry_0b22a2e30</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2178729%2F62b78f2b-2e4f-431a-b58d-e3024048d9fd.jpg</url>
      <title>DEV Community: Abdaullah Bakry</title>
      <link>https://dev.to/abdaullah_bakry_0b22a2e30</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/abdaullah_bakry_0b22a2e30"/>
    <language>en</language>
    <item>
      <title>How to get alerted when a Docker container crashes (5 free ways)</title>
      <dc:creator>Abdaullah Bakry</dc:creator>
      <pubDate>Mon, 23 Nov 2026 19:34:53 +0000</pubDate>
      <link>https://dev.to/abdaullah_bakry_0b22a2e30/how-to-get-alerted-when-a-docker-container-crashes-5-free-ways-2hh4</link>
      <guid>https://dev.to/abdaullah_bakry_0b22a2e30/how-to-get-alerted-when-a-docker-container-crashes-5-free-ways-2hh4</guid>
      <description>&lt;p&gt;A container dies at 2am. Docker restarts it, it dies again, and you find out at 9am from a user who says "the site is broken."&lt;/p&gt;

&lt;p&gt;Docker itself never tells you anything. &lt;code&gt;restart: unless-stopped&lt;/code&gt; keeps things limping along, but nobody gets a message. Here are five free ways to fix that, from "10 minutes, zero dependencies" to "a proper monitoring stack," with what each one is good and bad at.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Disclosure: option 5 is a tool I'm building. I've tried to be fair to all of them, and the comparison table at the end includes where mine falls short.&lt;/p&gt;
&lt;/blockquote&gt;




&lt;h2&gt;
  
  
  1. A small script that watches &lt;code&gt;docker events&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Docker already announces every crash on its event stream. You can see it yourself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker events --filter &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;container --filter &lt;span class="nv"&gt;event&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;die --filter &lt;span class="nv"&gt;event&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;oom
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run a container that exits with an error in another terminal and you'll see a &lt;code&gt;die&lt;/code&gt; event with its &lt;code&gt;exitCode&lt;/code&gt;. So the simplest alert is a script that reads that stream and posts to a chat webhook:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;#!/usr/bin/env bash&lt;/span&gt;
&lt;span class="c"&gt;# crash-alert.sh: send a Discord message when a container dies with an error or runs out of memory.&lt;/span&gt;
&lt;span class="c"&gt;# Needs: docker, jq, curl. For Slack, change {content:$m} to {text:$m}.&lt;/span&gt;
&lt;span class="nv"&gt;WEBHOOK&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://discord.com/api/webhooks/XXX/YYY"&lt;/span&gt;

docker events --filter &lt;span class="nv"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;container --filter &lt;span class="nv"&gt;event&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;die --filter &lt;span class="nv"&gt;event&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;oom --format &lt;span class="s1"&gt;'{{json .}}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; -r e&lt;span class="o"&gt;;&lt;/span&gt; &lt;span class="k"&gt;do&lt;/span&gt;
  &lt;span class="nv"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jq -r &lt;span class="s1"&gt;'.Actor.Attributes.name'&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s2"&gt;"$e"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nv"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jq -r &lt;span class="s1"&gt;'.Action'&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s2"&gt;"$e"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="nv"&gt;code&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;jq -r &lt;span class="s1"&gt;'.Actor.Attributes.exitCode // empty'&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s2"&gt;"$e"&lt;/span&gt;&lt;span class="o"&gt;)&lt;/span&gt;
  &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$action"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"die"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="o"&gt;[&lt;/span&gt; &lt;span class="s2"&gt;"$code"&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"0"&lt;/span&gt; &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;continue&lt;/span&gt;   &lt;span class="c"&gt;# clean exit, not a problem&lt;/span&gt;
  &lt;span class="nv"&gt;msg&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"Container $name on $(hostname): $action${code:+ (exit code $code)}"&lt;/span&gt;
  curl -s -H &lt;span class="s1"&gt;'Content-Type: application/json'&lt;/span&gt; \
       -d &lt;span class="s2"&gt;"$(jq -n --arg m "&lt;/span&gt;&lt;span class="nv"&gt;$msg&lt;/span&gt;&lt;span class="s2"&gt;" '{content:$m}')"&lt;/span&gt; &lt;span class="s2"&gt;"$WEBHOOK"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt;/dev/null
&lt;span class="k"&gt;done&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run it as a systemd service so it survives reboots:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight ini"&gt;&lt;code&gt;&lt;span class="c1"&gt;# /etc/systemd/system/crash-alert.service
&lt;/span&gt;&lt;span class="k"&gt;[Unit]&lt;/span&gt;
&lt;span class="na"&gt;Description&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nc"&gt;Docker&lt;/span&gt; &lt;span class="n"&gt;crash&lt;/span&gt; &lt;span class="n"&gt;alerts&lt;/span&gt;
&lt;span class="na"&gt;After&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;docker&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;service&lt;/span&gt;
&lt;span class="na"&gt;Requires&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;docker&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;service&lt;/span&gt;

&lt;span class="k"&gt;[Service]&lt;/span&gt;
&lt;span class="na"&gt;ExecStart&lt;/span&gt;&lt;span class="o"&gt;=/&lt;/span&gt;&lt;span class="n"&gt;usr&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;local&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;bin&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;crash&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;sh&lt;/span&gt;
&lt;span class="na"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;always&lt;/span&gt;

&lt;span class="k"&gt;[Install]&lt;/span&gt;
&lt;span class="na"&gt;WantedBy&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="n"&gt;multi&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;user&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;target&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; --now crash-alert
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Two gotchas I hit:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;docker stop&lt;/code&gt; and &lt;code&gt;docker restart&lt;/code&gt; also produce &lt;code&gt;die&lt;/code&gt; events.&lt;/strong&gt; If your app ignores SIGTERM, Docker kills it after 10 seconds and the exit code is 137, exactly like a real crash. Docker sends a &lt;code&gt;kill&lt;/code&gt; event first when &lt;em&gt;someone&lt;/em&gt; stopped the container, so you can subscribe to &lt;code&gt;kill&lt;/code&gt; too and skip a &lt;code&gt;die&lt;/code&gt; that comes right after one.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Crash loops spam you.&lt;/strong&gt; With a restart policy, a broken container can die every few seconds. Add a cooldown (for example, remember the last alert time per container in a file and skip anything within 10 minutes).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt; free, tiny, no new services, you understand every line.&lt;br&gt;
&lt;strong&gt;Not so good:&lt;/strong&gt; only crashes, not errors in the logs. A container that's up but throwing 500s on every request looks perfectly healthy to this script.&lt;/p&gt;


&lt;h2&gt;
  
  
  2. Uptime Kuma's "Docker Container" monitor
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://github.com/louislam/uptime-kuma" rel="noopener noreferrer"&gt;Uptime Kuma&lt;/a&gt; is a popular self-hosted uptime monitor, and it can watch containers directly through the Docker socket:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;docker run -d --restart=always -p 3001:3001 \
  -v uptime-kuma:/app/data \
  -v /var/run/docker.sock:/var/run/docker.sock:ro \
  --name uptime-kuma louislam/uptime-kuma:1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the UI, add a Docker host (socket &lt;code&gt;/var/run/docker.sock&lt;/code&gt;), then a monitor of type &lt;strong&gt;Docker Container&lt;/strong&gt; for each container you care about. Pick any of its many notification channels (Slack, Discord, Telegram, email, and dozens more).&lt;/p&gt;

&lt;p&gt;Add an &lt;strong&gt;HTTP monitor&lt;/strong&gt; for your public URL too. "Container is running" and "site actually works" are different questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt; nice UI, status pages, huge list of notification channels, you probably want it for uptime anyway.&lt;br&gt;
&lt;strong&gt;Not so good:&lt;/strong&gt; checks whether a container is running, on an interval. Short crash-restart cycles can slip between checks, and it doesn't look at logs, so it can't tell you &lt;em&gt;why&lt;/em&gt; something failed.&lt;/p&gt;


&lt;h2&gt;
  
  
  3. Prometheus + cAdvisor + Alertmanager
&lt;/h2&gt;

&lt;p&gt;The classic open-source stack. &lt;a href="https://github.com/google/cadvisor" rel="noopener noreferrer"&gt;cAdvisor&lt;/a&gt; exposes per-container metrics, Prometheus scrapes them, and Alertmanager sends the notifications.&lt;/p&gt;

&lt;p&gt;A common rule for "this container disappeared":&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;groups&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;containers&lt;/span&gt;
    &lt;span class="na"&gt;rules&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;alert&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ContainerDown&lt;/span&gt;
        &lt;span class="na"&gt;expr&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;time() - container_last_seen{name="api"} &amp;gt; 60&lt;/span&gt;
        &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;1m&lt;/span&gt;
        &lt;span class="na"&gt;annotations&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
          &lt;span class="na"&gt;summary&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Container {{ $labels.name }} hasn't been seen for over a minute"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can also alert on memory close to the limit (before the OOM kill), restart counts and CPU.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt; extremely powerful, the industry standard, great for metrics and trends, and Grafana dashboards on top look great.&lt;br&gt;
&lt;strong&gt;Not so good:&lt;/strong&gt; four moving parts to run, configure and keep updated on a small server. It's mostly about metrics, not about the error text that tells you what went wrong.&lt;/p&gt;


&lt;h2&gt;
  
  
  4. Loki + Grafana alerts on error lines
&lt;/h2&gt;

&lt;p&gt;If you want alerts on what your app &lt;em&gt;logs&lt;/em&gt;, not just on whether it's running, ship container logs to &lt;a href="https://grafana.com/oss/loki/" rel="noopener noreferrer"&gt;Grafana Loki&lt;/a&gt; (with the Loki Docker logging driver or Grafana Alloy) and create a Grafana alert rule on a LogQL query, for example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight prometheus"&gt;&lt;code&gt;&lt;span class="na"&gt;sum by (container) (count_over_time({container&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"api"&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|=&lt;/span&gt; &lt;span class="s2"&gt;"ERROR"&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="mi"&gt;5m&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt; catches errors in running containers (the case options 1 and 2 miss), you can search all your logs in one place, and it fits nicely with option 3.&lt;br&gt;
&lt;strong&gt;Not so good:&lt;/strong&gt; more setup and storage to manage, and the alert is "there were errors" plus a count. Someone still has to open the logs, find the right stack trace and work out what changed.&lt;/p&gt;


&lt;h2&gt;
  
  
  5. Hush (hosted, free during beta)
&lt;/h2&gt;

&lt;p&gt;This is the one I'm building, because options 1–4 still left me reading logs at 2am. &lt;a href="https://hushlogs.com" rel="noopener noreferrer"&gt;Hush&lt;/a&gt; is a small agent you install with one command, plus a hosted dashboard:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSL https://hushlogs.com/install &lt;span class="o"&gt;|&lt;/span&gt; sh -s -- --key YOUR_KEY
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The agent (Go, about 20 MB of memory) reads container logs and Docker events, keeps only errors and crashes, and &lt;strong&gt;groups repeats&lt;/strong&gt;, so a thousand identical errors become one alert with a count.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Secrets are removed on your server&lt;/strong&gt; before anything is sent, and there's a mode that sends no log text at all.&lt;/li&gt;
&lt;li&gt;It tracks deploys, restarts, crashes and OOM kills, so an alert can say &lt;em&gt;"likely trigger: deployed api (v2.2 → v2.3), 2 minutes before the first error"&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;An LLM writes a short cause and fix from the redacted lines. You can use your own OpenAI-compatible model (including Ollama) or switch AI off.&lt;/li&gt;
&lt;li&gt;Alerts go to Slack, Teams, Discord, Telegram, email or a webhook.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Good:&lt;/strong&gt; catches crashes &lt;em&gt;and&lt;/em&gt; errors in running containers, no code changes, explains what happened instead of just "something failed."&lt;br&gt;
&lt;strong&gt;Not so good:&lt;/strong&gt; it's a hosted service, not self-hosted, so if your logs can't leave your servers at all, options 1–4 are the right choice. The agent needs the Docker socket, like Uptime Kuma and cAdvisor do. And it's new: free while in beta, with paid plans for more than one server later.&lt;/p&gt;




&lt;h2&gt;
  
  
  Which one should you pick?
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;Setup time&lt;/th&gt;
&lt;th&gt;Crashes&lt;/th&gt;
&lt;th&gt;Errors in logs&lt;/th&gt;
&lt;th&gt;Explains the cause&lt;/th&gt;
&lt;th&gt;Self-hosted&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1. &lt;code&gt;docker events&lt;/code&gt; script&lt;/td&gt;
&lt;td&gt;15 min&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2. Uptime Kuma&lt;/td&gt;
&lt;td&gt;15 min&lt;/td&gt;
&lt;td&gt;Yes (on an interval)&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3. Prometheus stack&lt;/td&gt;
&lt;td&gt;Hours&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4. Loki + Grafana&lt;/td&gt;
&lt;td&gt;Hours&lt;/td&gt;
&lt;td&gt;Partly&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5. Hush&lt;/td&gt;
&lt;td&gt;5 min&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;Yes&lt;/td&gt;
&lt;td&gt;No&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;My honest suggestion:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;One small server, side project:&lt;/strong&gt; start with option 1 today. It's 15 lines and better than nothing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You already want uptime checks and a status page:&lt;/strong&gt; option 2.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You have the time and want to learn real observability:&lt;/strong&gt; options 3 + 4 together are worth it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;You want to know what broke and why without running a monitoring stack:&lt;/strong&gt; try option 5.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whatever you pick, set it up before you need it. The worst time to configure alerts is during the outage.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;What do you use to get alerted when your containers break? I'm curious what I missed. Tell me in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>docker</category>
      <category>devops</category>
      <category>monitoring</category>
      <category>selfhosted</category>
    </item>
  </channel>
</rss>
