Replies: 7 comments 8 replies
-
Also, this would be defined universally for each user. You wouldn't need to set it up for every alert. We could have a toggle for enabling / disabling. If it's enabled, it will send automatically for every alert. |
Beta Was this translation helpful? Give feedback.
-
Hello. Yes. Webhooks alerts will cover most of notification systems used in selfhosted world (as far as I see on social media) - for example, ntfy, Telegram bots or Home Assistant (maybe even Pagerduty if set in right way). That should cover most of use cases. Maybe somewhere in the future it would be good to add support for MQTT, but Webhooks will get job done. Right now only way to get notification about an alert is creating some grabber service, that will check for triggered alerts from frontend side, get alert data and do something with this which I see is supported thanks to PocketBase, but it is not that straight forward like normal REST API with, ie curl calls. |
Beta Was this translation helpful? Give feedback.
-
I know from another project I worked on for notifications that depending on the service the payload might need to be diffrent. For example Discord expects "content" followed by the message, where ntfy expects "message" and Slack expexts "text" . Just my to cents. |
Beta Was this translation helpful? Give feedback.
-
Another way would be to integrate something like apprise (https://github.com/caronc/apprise). Not sure if there is a go library similar to it. |
Beta Was this translation helpful? Give feedback.
-
Good idea, you could hook up a template system. |
Beta Was this translation helpful? Give feedback.
-
Feels like it would be simplest to integrate shoutrrr support and let users define what notifier to use. |
Beta Was this translation helpful? Give feedback.
-
Hi @henrygd . Thanks for adding sending alarms on webhook. I really like the feature. Also I see that I can add multiple webhooks, which is cool but I do not know how to take advantage of that. Is there a way to spread alarms across webhooks, for example, alarms from instance XYZ goes to webhook A, and alarms for instance ZYX goes to webhook B? |
Beta Was this translation helpful? Give feedback.
-
Update: This has been added in 0.4.0 using Shoutrrr
As with the additional disks thread (#36), this is a feature I plan to add at some point and want to source opinions on the best way to go about it.
I don't have enough free time to do custom implementations for every possible service. So I'm thinking something like the mock up below would work for the largest number of applications.
You would have
{{title}}
and{{body}}
variables that would match the title and body of email alerts. This should allow you a bit of freedom in how you format the message. Including using JSON for the body.I'd like to know if this absolutely won't work for anyone. And I'm open to suggestions. But again, I want to avoid writing custom code to support specific services.
Beta Was this translation helpful? Give feedback.
All reactions