-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Feat: Add Docker Service Monitor #5214
Labels
feature-request
Request for new features to be added
Comments
SheepReaper
added a commit
to SheepReaper/uptime-kuma
that referenced
this issue
Oct 18, 2024
Introduces Docker service availability to monitor uptime and status of Docker services alongside existing types. Updates the database schema to support "docker_service". Enhances the user interface to allow configuration of Docker service parameters within the monitor setup. This change allows for more granular monitoring capabilities by checking the running state of services in a Docker environment. Relates to implementing extended Docker monitoring functionalities. implements louislam#5214 Signed-off-by: Bryan Gonzalez <[email protected]>
SheepReaper
added a commit
to SheepReaper/uptime-kuma
that referenced
this issue
Oct 18, 2024
Introduces Docker service availability to monitor uptime and status of Docker services alongside existing types. Updates the database schema to support "docker_service". Enhances the user interface to allow configuration of Docker service parameters within the monitor setup. This change allows for more granular monitoring capabilities by checking the running state of services in a Docker environment. Relates to implementing extended Docker monitoring functionalities. implements louislam#5214 Signed-off-by: Bryan Gonzalez <[email protected]>
7 tasks
SheepReaper
added a commit
to SheepReaper/uptime-kuma
that referenced
this issue
Oct 18, 2024
Introduces Docker service availability to monitor uptime and status of Docker services alongside existing types. Updates the database schema to support "docker_service". Enhances the user interface to allow configuration of Docker service parameters within the monitor setup. This change allows for more granular monitoring capabilities by checking the running state of services in a Docker environment. Relates to implementing extended Docker monitoring functionalities. implements louislam#5214 Signed-off-by: Bryan Gonzalez <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
π I have found these related issues/pull requests
As described in this issue: #3069 (comment)
π·οΈ Feature Request Type
New monitor
π Feature description
I would like a Docker service monitor. Just like the existing container monitor except it checks for the service availability. This is NOT the request for a service health monitor. Service health implies that all of the desired replicas for a service are running. Simple availability means that at least 1 replica is running.
This monitor is also compatible with docker swarms, as the tasks API is aware of all tasks in the swarm irrespective of which manager you query (as opposed to the container API which only sees containers on the node you query)
βοΈ Solution
the monitor needs to perform the equivalent of:
curl http://192.168.86.190:2375/tasks -G --data-urlencode 'filters={"service":{"service_name_or_id":true}}'
which returns an array of tasks. Then count how many have
.Status.State === 'running'
If it's 1 or more, then the service is available.
β Alternatives
I have a well-considered story here: #3069 (comment) reference that to not bloat this OP.
π Additional Context
Don't worry I have a PR ready @louislam
The text was updated successfully, but these errors were encountered: