mirror of
https://github.com/patrickbeane/infra-status-pings
synced 2026-04-06 07:05:31 +00:00
Initial commit: unified alerting mesh with Discord webhooks
This commit is contained in:
21
configs/crowdsec-discord.yaml
Normal file
21
configs/crowdsec-discord.yaml
Normal file
@@ -0,0 +1,21 @@
|
||||
#
|
||||
# /etc/crowdsec/notifications/discord.yaml
|
||||
#
|
||||
|
||||
type: http
|
||||
name: discord
|
||||
log_level: info
|
||||
format: |
|
||||
{
|
||||
"content": "```\nTriton\n{{range . -}}{{$alert := . -}}{{range .Decisions -}}- {{.Value}} will get **{{.Type}}** for the next '{{.Duration}}'>
|
||||
}
|
||||
url: https://discord.com/api/webhooks/xxxxxxxxxx/xxxxxxxxxx
|
||||
method: POST
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
|
||||
|
||||
# then, comment out on /etc/crowdsec/profiles.yaml
|
||||
|
||||
notifications:
|
||||
- discord
|
||||
Reference in New Issue
Block a user