uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Feature: Make it extremly easy to add multiple monitors fast

Open jesperordrup opened this issue 2 years ago • 8 comments

⚠️ Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find similar feature request

🏷️ Feature Request Type

UI Feature

🔖 Feature description

While the interface is amazingly nice it's still a big task to add 5, 10, 50 monitors. Make it easy.

✔️ Solution

The simple

I suggest to make an option to add multiple montors in a row. Consider this: you have a list of monitors prepared in your notepad, exported from another system or whatever. Now consider you

  • copy all 50 lines of hostnames,
  • click on add multiple, insert the 50 hostnames in a textarea and
  • then choose monitor type for all
  • click create all

Now you have 50 monitors. A few needs adjustments, most dont

The one with extra "ommph"

Expand the format to allow for specifying a few key options directly in the copy paste. Key is keeping it simple and not go nuts on how much to specify:

ping:hostname http://hostname http://hostname, keyword tcp:hostname dns:hostname

❓ Alternatives

Api - but this is diffferent. It's easy for onboarding and you get ppl to see the full potential

📝 Additional Context

No response

jesperordrup avatar Apr 05 '22 09:04 jesperordrup

This would be a great feature to have. If each monitor were to be added on a new line then the list could be converted into an array and then iterated over to add them all. I might be able to work on this in the next few days to a week but I am not sure where we are at regarding to new features (#1349).

Computroniks avatar Apr 09 '22 10:04 Computroniks

For this, I think that the simple option is more than powerfull enough without overly complicating the implementation. The issue I see with the extended solution is the required non default options that are required for some of the monitors.

Computroniks avatar Apr 13 '22 20:04 Computroniks

I'm hoping it will be priority :'

zedreez avatar May 06 '22 18:05 zedreez

I'm hoping it will be priority :'

Sorry, I have had to do a load of other stuff and am having to revise for some exams currently so I don't think I will be able to do any meaningful work on this in the short term. If someone else would like to take this on then just comment here otherwise I will try to get around to this as soon as possible. Sorry for not being able to complete this sooner.

Computroniks avatar May 06 '22 22:05 Computroniks

Seconding this, a way to bulk import would be fantastic - My use case would love a way to import all the monitors needed in a CSV that can be uploaded to create entries.

It'd be even greater if Uptime-Kuma could watch a file / folder for changes and add or remove monitors from a CSV that can be edited from external applications.

Great product! keep up the good work :D

phinnay avatar Jul 06 '22 16:07 phinnay

yeah, i have been waiting for this feature for ages! i hope dev will add bulk import soon

mingal avatar Aug 19 '22 09:08 mingal

Any progress here?

R0GGER avatar Oct 02 '22 20:10 R0GGER

Hi, kind of hijacking this ticket. I'm interested in keeping my hosts stored in configuration management, as well as generating them from dynamic sources such as Consul. (though the source isn't relevant to the issue)

On the settings/backup page, there's an import/export for a json configuration, I can use https://jsonnet.org/ to template this data and generate a configuration for all of my hosts pretty easily.

I noticed on that page: Deprecated: Since a lot of features added and this backup feature is a bit unmaintained, it cannot generate or restore a complete backup.

I have no desire to backup historical data, I only need a way of bulk inserting hosts. I'd even be fine with a bulk insert box that accepts CSV data or something similar.

So I guess the issue is: please don't deprecate the import feature, and instead repurpose it to "import/export monitors"

I have an example of what I setup here https://gist.github.com/arma26/6f8fab4e370bf170c83de4f6d6c8be9e

I would appreciate a way to curl -X POST the config directly into the app, but that's not really necessary.

arma26 avatar Dec 13 '22 20:12 arma26

The ability to easily add multiple Monitor's would be a game changer. Any plans for this feature? Thanks.

mmaxwell5 avatar Jan 27 '23 04:01 mmaxwell5

I have created a simple script which uses Socket.io to add http(s) monitors from a csv file. I'm adding it here for anyone who may need such functionality.

https://github.com/ligouras/kuma-init

ligouras avatar Feb 07 '23 11:02 ligouras

Totally dying for some bulk edit option, don't care how ugly it is, as long as it's functional.

Thanks so much for all the hard work!

jaxjexjox avatar Aug 24 '23 23:08 jaxjexjox

@phinnay You want #1190 instead

@jaxjexjox @R0GGER @mmaxwell5 @mingal

Please refrain from posting +1 / requests for updates things on issues, as this makes issue-management harder. Issues are for discussing what needs to be done how by whom. We use 👍🏻 on issues to prioritise work, as always: Pull Requests welcome.

CommanderStorm avatar Aug 24 '23 23:08 CommanderStorm

As @ligouras mentioned above, if you need such an option, you can use external api-providers (For obvious reasons, do a small security audit first, this is neither an endorsement nor the contrary).

You may also be able to use the backup feature to get monitors imported. Please note though that the backup feature is not 100% functional as the warning in the UI states (for example https://github.com/louislam/uptime-kuma/issues/2015 or https://github.com/louislam/uptime-kuma/issues/1631)

CommanderStorm avatar Aug 25 '23 00:08 CommanderStorm

Hello everyone is there an update on this feature?

I want to bulk import a list of ping monitors what I am doing is that I took a backup from the Kuma UI and trying to append the monitors then re-import the new json.

if anyone can help me with my workaround that will be greatly appreciated.

Keep up the great work

FaisalAli92 avatar Sep 17 '23 08:09 FaisalAli92

Hello Since no one responded to me I went on and found my own workaround for bulk adding multiple monitors.

I needed to add a ping monitor for multiple groups with each group having multiple IPs to ping.

I created each group manually then I wrote a Python script that takes from a text file that has the name and Ips I want to add.

the scripts directly writes into the kuma.db.

this can be one workaround until the feature is added.

FaisalAli92 avatar Sep 19 '23 13:09 FaisalAli92

Not all issues goes to heaven. This one didn't. I of course think this is a no-brainer but ain't it always like that. 😎

It's from April, 22 so Im just gonna close my suggestion (seems I can) - don't know why it's open when it clearly is not ment to be solved.

jesperordrup avatar Sep 19 '23 13:09 jesperordrup

Hello Since no one responded to me I went on and found my own workaround for bulk adding multiple monitors.

I needed to add a ping monitor for multiple groups with each group having multiple IPs to ping.

I created each group manually then I wrote a Python script that takes from a text file that has the name and Ips I want to add.

the scripts directly writes into the kuma.db.

this can be one workaround until the feature is added.

Could you please share your python script? Thanks

meanaverage avatar Jan 08 '24 07:01 meanaverage

the scripts directly writes into the kuma.db

Please use third party tooling like https://uptime-kuma-api.readthedocs.io/ instead

CommanderStorm avatar Jan 08 '24 08:01 CommanderStorm

I didn't realize there was already a robust API. Terrific!

meanaverage avatar Jan 08 '24 19:01 meanaverage