mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
Define services form file. #162
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#162
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 @jtagcat on GitHub (Aug 25, 2021).
Allow to define monitoring from a file, likely yaml. Ideally, multiple files.
This makes it compatible with CI / infra from file.
Files could be represented as (read-only, no-login) users (#128).
As a 3rd party, it could be implemented via the API (#118) by requesting current state, and adding/modifying/removing services, reaching the defined state.
GitHub Etiquette
@nicolas-g commented on GitHub (Sep 4, 2021):
👍
supporting everything through configuration files instead of point and click on the UI is crucial in order to have automation and is also Git-friendly so you can have it in version control.
@gaby commented on GitHub (Sep 4, 2021):
I would love this feature, we currently have over 300 services to monitor :-)
@louislam commented on GitHub (Oct 10, 2021):
Although it got a lot of thumbs up, it againsts my project styles.
https://github.com/louislam/uptime-kuma/blob/master/CONTRIBUTING.md#project-styles
If you love to config via yaml, I would suggest Gatus https://github.com/TwiN/gatus
@jtagcat commented on GitHub (Oct 15, 2021):
The config file doesn't have to be the primary, or only way of configuration.
It would provide an alternative to the Web UI config, being not mandatory
@Xplouder commented on GitHub (Dec 28, 2022):
@louislam Please reconsider this feature request, as said earlier this is not a replacement but another way to configure the monitors, alerts, etc. This would allow a declarative way to automate what already exists, so its a complement.
@nicolas-g commented on GitHub (Dec 28, 2022):
So disappointed to see this issue closed.. this is a great product but not being able to automate or have the config in version control will be impossible to scale so this is a no go for me now.
@pauldevlin-smarsh commented on GitHub (Mar 21, 2023):
Uptime-kuma is amazing, it's a shame it doesn't have the ability to pre-configure the endpoints on start-up. I'm awful with Javascript but it looks as though it could be achieved by updating the server.js after setup to simply check for a backup json file (maybe in the data/uploads folder) then use the functionality already provided by Importing a Backup in the Settings.
It would probably look like this -
Maybe something like this:
Again, I'm terrible at JS so do point out if I'm being ridiculous.
@pauldevlin-smarsh commented on GitHub (Mar 22, 2023):
Just an update on this. You could get around this (sort of) by spinning up a container locally, adding all healthchecks. Once happy with all healthchecks you can then run a
docker cp uptime-kuma:/app/data ./. You now have the data folder with your setup.The next part is a bit fun (and could probably be done a better way) When you are spinning up a new instance/container of uptime-kuma you can run a
docker cp data uptime-kuma:/appafter you have brought it up. This will overwrite the data file with what you have already configured. restart the service and visit the /login page. Login with the credentials you had set before backup and you should see all your services ready as they were.@LCerebo commented on GitHub (Jun 10, 2023):
It's a pity that this feature was abandoned. As @Xplouder said it will be a second way to define checks, this will enable the definition of checks as "configuration as code".
As a second bonus it could be very easy to backup and restore the configuration (not the history) using the same format (for example a yaml descriptor).
Personally I use ansible to deploy every service both at work and at home, and configuration as code is almost everywhere supported and welcome.
Reading your project styles guidelines I don't find this request contradicting any of them.
Hope that @louislam can reconsider to include the feature in a future release!
@vanhoutenbos commented on GitHub (Jun 30, 2023):
My teams love Uptime Kuma and have been using it for a long time!
At this moment we are growing exponentially with our services and would like to have a way to add a new service to a 'configuration file' and rollout the change to all our environments instead of pressing 'add monitor' on every kuma interface on every environment.
As @gaby mentions, when you have hundreds of monitors (and many environments) this is getting very maintain heavy.
I have seen a couple use cases where it could be nice to have the option to configure the monitors on deployment or atleast be able to 'control' the content of the
datafolder more easy.I am open to build or help build a solution but I would like to see what would be a workable solution for the maintainer.
TL;DR; I would like to be able to configure monitors from code, how is irrelevant for me but for example through a JSON file or SQL query.
Please reconsider this feature as an optional option <3
@CommanderStorm commented on GitHub (Jun 30, 2023):
Currently, we don't support an API, but you can look into the community-maintained https://uptime-kuma-api.readthedocs.io/en/latest/ or maybe https://github.com/MedAziz11/Uptime-Kuma-Web-API
See #118 for further details
@tylerlittlefield commented on GitHub (Sep 6, 2023):
Such a shame. Has anyone made a fork that allows configuration files?
@dorkamotorka commented on GitHub (Sep 20, 2023):
+1
@vanhoutenbos commented on GitHub (Sep 28, 2023):
Since IAC was a hard-requirement from my client I moved to https://github.com/TwiN/gatus/
I love the kuma UI and its so easy on the eyes, but IAC was a must-have and UI was a nice to have
@terminator891 commented on GitHub (Mar 22, 2025):
Its just a shame that this feature was never impleneted I'm forced to move to other solution despite loving uptime-kuma gui
@Yatharth0045 commented on GitHub (Jan 16, 2026):
Can we reconsider this. As @Xplouder said, this is just an alternative and will not be the only approach to add monitors/status pages. Would love to have this feature in place. @louislam
@CommanderStorm commented on GitHub (Jan 16, 2026):
Has something fundamentally changed?
I think this feature is kind of resonable, but would need a larger review slot, tests and someone who is willing to maintain this.
At the minimum, this would need a refactoring of the monitoring type interface and help moving all monitors to this new interface.
Currently, I don't see this slot even if implmemented.
I don't have the capacity to maintain this.
-> I won't reconsider when already so heavily under water. (this month there were 152 Active pull requests
144 Active issues
. And this includes the christmas/december low).
See these issues, if you want to help:
As said, there is a number of projects already focused on IAC, so if you need this I think choosing them is a better fit.
@merura commented on GitHub (Feb 23, 2026):
@terminator891, which other solution are you using?
@Yatharth0045 commented on GitHub (Feb 23, 2026):
@merura , you can try out Gatus