Skip to content
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

Open
SheepReaper opened this issue Oct 18, 2024 · 0 comments
Open

Feat: Add Docker Service Monitor #5214

SheepReaper opened this issue Oct 18, 2024 · 0 comments
Labels
feature-request Request for new features to be added

Comments

@SheepReaper
Copy link

πŸ“‘ 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

@SheepReaper SheepReaper added the feature-request Request for new features to be added label Oct 18, 2024
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]>
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
Labels
feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

1 participant