mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Docker API labels Swarm context and regular for service discovery. #3267
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#3267
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Leopere on GitHub (Apr 14, 2024).
📑 I have found these related issues/pull requests
n/a
🏷️ Feature Request Type
API / automation options
🔖 Feature description
When it comes to deploying stuff into docker and docker swarm it helps to be able to have apps that hook into the docker socket to look for labels that might say please pay attention to me for X reason... For example you can set Traefik settings on a per microservice basis using docker labels.
For example this set of labels has declarations for gethomepage/homepage and traefik 2.x
✔️ Solution
Write one or two standard labels to tell uptime kuma to monitor a service within swarm or via a specified path such as perhaps the following.
❓ Alternatives
No response
📝 Additional Context
Currently the docker stuff is baked in a way that you have to rely on static container names for UptimeKuma to look for and that's fine and all but its usefulness is limited whereas offering deeper docker API integration would be supremely helpful there is also a way to define the docker API endpoint through http/s and the socket so you're not stuck putting the monitor on a swarm manager node for example.
@CommanderStorm commented on GitHub (Apr 14, 2024):
I think this is better tracked in https://github.com/louislam/uptime-kuma/issues/4233, as docker-compose and docker swarm are likely not as different.
=> merging these issuses via closing this one as a duplicate.
@Leopere commented on GitHub (Apr 15, 2024):
So basically it has to be a sidecar process to get API supported a bit better :/ thanks.
Also super happy with Uptime Kuma I just wish I could export things to it from other services like Uptime Robot.
@CommanderStorm commented on GitHub (Apr 15, 2024):
This is tracked in #1190
Currently, nobody has found the time to look at their shema and integrate it.