mbecker20 / komodo

🦎 a tool to build and deploy software on many servers 🦎
https://komo.do
GNU General Public License v3.0
1.73k stars 34 forks source link

feature: Add Discord webhooks to Alerters #23

Closed LawMixer closed 3 weeks ago

LawMixer commented 2 months ago

I do not use Slack unfortunately, but I do use Discord daily - would love to make this a thing!

mbecker20 commented 2 months ago

Agreed, slack is good for businesses but not individuals, I have this in my todo. There is also structure to add this and many more inbuilt endpoints.

Additionally, if you know Rust, you can use the starter codebase I made for building Custom Alerters. https://github.com/mbecker20/monitor/tree/main/bin/alerter. Once you have the Alert in code you can do whatever you want with it.

mbecker20 commented 2 months ago

You can also use Vector (https://vector.dev/) as Custom Alerter endpoint

See https://vector.dev/docs/reference/configuration/sources/http_server/

Then you can route alerts to any of the Vector Sinks here: https://vector.dev/docs/reference/configuration/sinks/

You can consider a logging stack like Grafana / Loki / Tempo, or VictoriaLogs stack, to send all logs / alerts to. Then route what you want to your messaging like Discord from there. This is more scalable setup and kind of fun to set up if you are into this. You can set up all the containers with Monitor too

TomKauffeld commented 1 month ago

While Discord is not implemented, you can already send notifications to a Channel using Discord Slack-Compatible Webhook: