louislam / uptime-kuma

A fancy self-hosted monitoring tool
https://uptime.kuma.pet
MIT License
58.5k stars 5.28k forks source link

Use Tags to determine Notification #5285

Open derekoharrow opened 5 days ago

derekoharrow commented 5 days ago

📑 I have found these related issues/pull requests

I cannot find any related requests.

🏷️ Feature Request Type

Settings

🔖 Feature description

Tags seem to have changed in V2 - in V1 they use to have a tag and a value, now it just seems to be a tag.

This seems an ideal opportunity to start to use tags for other things.

In this instance, it would be great to have a Setting on a Notification that applies that notification to any monitor with a specific tag.

e.g. I could create a tag called "Notify Me", and then in my Pushover notification settings have that notification apply to any monitors with the Notify Me tag - this would save having to setup notifications on every monitor individually.

✔️ Solution

Add the ability to list tags against Notification agents so that those agents automatically apply to any monitor with those tags.

❓ Alternatives

No response

📝 Additional Context

No response

CommanderStorm commented 4 days ago

Tangling the notification and the Tag system seem like a really strange choice. I don't think that this is a good choice and would add a ton of issues from users not knowing where their notifications are coming from.

CommanderStorm commented 4 days ago

You are likely looking for config templates or bulk editing instead..

derekoharrow commented 4 days ago

Tangling the notification and the Tag system seem like a really strange choice. I don't think that this is a good choice and would add a ton of issues from users not knowing where their notifications are coming from.

I disagree. If Tags cannot be used for things like this, then what is their value, other than cosmetic?

I have over 170 monitors and setting the notifications for them individually is painful to say the least.

Even with a bulk editor you'd need to decide what notifications to enable for each and, like with Maintenance windows, ensure you have selected every monitor you want individually which is really prone to error. (In fact, Notification windows would be another good use of tags).

Using tags is the perfect solution and choosing good tag names such as "notify-p1" easily gets around the issue of knowing what triggers what.

Coming from an Enterprise IT monitoring background, manually configuring each individual monitors notifications is painful at best and very error prone. Tags would be a simple and effective way to automate much of that.