SkyWalking backend provides the alarm function, we can define some Alarm rules, call webhook after the rule is triggered. I share my implementation
go get -u github.com/weiqiang333/infra-skywalking-webhook cd $GOPATH/src/github.com/weiqiang333/infra-skywalking-webhook/ bash build/build.sh ./bin/infra-skywalking-webhook help
main configs file: configs/production.yml dingtalk: p3: token...
./bin/infra-skywalking-webhook --config configs/production.yml --address 0.0.0.0:8000
webhooks: - http://127.0.0.1:8000/dingtalk
Hope that we can improve together webhook
SkyWalking alarm rules may add more metric names (eg priority name), we can send different channels by locating different levels of alerts (dingtalk / SMS / phone)
Thanks.