So recently been spending time configuring my selfhosted services with notifications usint ntfy. I’ve added ntfy to report status on containers and my system using Beszel. However, only 12 out of my 44 containers seem to have healthcheck “enabled” or built in as a feature. So im now wondering what is considered best practice for monitoring the uptime/health of my containers. I am already using uptimekuma, with the “docker container” option for each of my containers i deem necessary to monitor, i do not monitor all 44 of them 😅

So I’m left with these questions;

  1. How do you notify yourself about the status of a container?
  2. Is there a “quick” way to know if a container has healthcheck as a feature.
  3. Does healthcheck feature simply depend on the developer of each app, or the person building the container?
  4. Is it better to simply monitor the http(s) request to each service? (I believe this in my case would make Caddy a single point of failure for this kind of monitor).

Thanks for any input!

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    20 hours ago

    A superb image will have a health check endpoint set up in the dockerfile.

    A good image will have a health check endpoint on either the service or another port that you can set up manually.

    Most images will require you to manually devise some convoluted health check procedure using automated auth tokens.

    All of my images fall into that latter category. You’re welcome.

    (Ok, ok, I’m sorry. But you did just remind me that I need to code a health check endpoint and put it in the dockerfile.)