louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
57.85k stars 5.22k forks source link

Integrate sablier for better monitoring of docker containers that are automatically managed #5228

Open alx-xlx opened 1 day ago

alx-xlx commented 1 day ago

📑 I have found these related issues/pull requests

https://github.com/sablierapp/sablier

🏷️ Feature Request Type

API / automation options, Other

🔖 Feature description

I have several (50) docker containers running, and most are not needed 24x7. Those services are used only 1-2hours atmost each day. So keeping them active 24x7 isn't efficient at all.

I have used this wonderful project sablier to automatically start docker containers when their is traffic for it, and the container gets automatically stopped if no traffic flows for about 2-3 hours.

There is no way for uptime kuma to know whether the docker container is being managed by the sablier. and so it assumes it to be DOWN.

✔️ Solution

In this use case the uptime kuma should integrate this sablier project which can tell if the container is stopped by the it. and then uptime-kuma can mark it as DORMANT instead of marking it as DOWN.

❓ Alternatives

No response

📝 Additional Context

No response

CommanderStorm commented 1 day ago

That seems a bit too special for my taste.. Insead, you can either pause montiors or enact maintenances via https://uptime-kuma-api.readthedocs.io/en/latest/