Skip to content

antony@notes:~/misc$ cat "Test-Webhook.md"

Test Webhook

2024-07-04· misc

Test Webhook

What are webhooks and why use them?

Webhooks are HTTP callbacks that allow you to send alerts to external services or applications. You can use webhooks to integrate Alertmanager with chat platforms, notification systems, ticketing tools, or any other web-based service that can receive and process HTTP requests. Webhooks give you more flexibility and control over how you handle and respond to alerts.

# 1. 安裝 Golang
$ suseconnect -p PackageHub/15.6/x86_64

$ zypper -n in go

$ git clone https://github.com/yunlzheng/alertmanaer-dingtalk-webhook.git && \
cd alertmanaer-dingtalk-webhook

$ go mod init

$ go mod download

$ cd cmd/webhook

$ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a webhook.go

$