Monitoring and Alerting Scripts
Monitoring and Alerting Scripts
Automating webhook notifications to Slack / Discord on incident detection:
send_alert() {
local msg="$1"
curl -s -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"$msg\"}" "$SLACK_WEBHOOK_URL"
}