Initial commit: unified alerting mesh with Discord webhooks

This commit is contained in:
2025-08-09 21:45:50 -04:00
commit c79b54deee
7 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Added to /etc/borgmatic/config.yaml
apprise:
services:
- url: https://discord.com/api/webhooks/xxxxxxxx/xxxxxxxx
label: discord
start:
title: Ping! (Triton)
body: Starting backup process.
finish:
title: Ping! (Triton)
body: Backups successfully made.
fail:
title: Ping! (Triton)
body: Your backups have failed.
states:
- start
- finish
- fail
logs_size_limit: 25

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB