-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker service monitor #2181
Comments
This would be an excellent addition, I have some important services that are replicated, and can't currently find a way of checking that they are all running |
is there a solution for swarm or wildcard names now? |
Wildcards unfortunately also do not work for docker containers. It would be amazing if Uptime Kuma would be able to check the uptime of a Docker Service like Portainer does!! |
This is well needed. Adding more info:
❯ docker container ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3f197fcd9dc1 louislam/uptime-kuma:1 "/usr/bin/dumb-init …" 9 minutes ago Up 8 minutes (healthy) 3001/tcp uptime_kuma_app.1.i8q81aas6fqnirz2pwchg9a07
❯ docker container ls | grep uptime_kuma_app | awk '{print $1}'
3f197fcd9dc1
❯ docker service ps dozzle_dozzle
ID NAME IMAGE NODE DESIRED STATE CURRENT STATE ERROR PORTS
ip9t5amhase7 dozzle_dozzle.5ezxb3fkd63fw3jwyax0pfii1 amir20/dozzle:latest vm02 Running Running 2 weeks ago
v262e92z7q3w dozzle_dozzle.q8r9sxvpdiwawvvkvidbhkonc amir20/dozzle:latest desktop Running Running 11 hours ago
tih8p62gfora \_ dozzle_dozzle.q8r9sxvpdiwawvvkvidbhkonc amir20/dozzle:latest desktop Shutdown Shutdown 11 hours ago
c5ms6h6jtjgt \_ dozzle_dozzle.q8r9sxvpdiwawvvkvidbhkonc amir20/dozzle:latest desktop Shutdown Rejected 4 days ago "No such image: amir20/dozzle:…"
e28xqhad2tpl dozzle_dozzle.w1tpwujm8481fn8pdt73rlbmc amir20/dozzle:latest vm01 Running Running 2 weeks ago |
There are containers that can run but be in an 'unhealthy' state. In bash, one can check for container health and then make further decisions based on health state.
|
I think this is better tracked in #4233, as docker-compose and docker swarm are likely not as different or #957 for the docker-. Tip If you have a look at the dependency linked in #957, |
🏷️ Feature Request Type
New Monitor, Other
🔖 Feature description
Docker container monitor is great, especially it works both with socket and tcp. But it can monitor only running containers. When you use Docker Swarm (or services), the container name is:
service_name.somerandompattern
.The issue is, that after updating a service, the random suffix changes. It's not a big deal when you have few Docker container sensors, but for more, it's difficult to manage.
✔️ Solution
I see 3 solutions to improve this sensor:
some_name*
❓ Alternatives
No response
📝 Additional Context
No response
The text was updated successfully, but these errors were encountered: