./add-alerting-target.sh \ --type smtp \ --name email-alerts \ --smtp-from alerts@company.com \ --smtp-to admin@company.com \ --smtp-smarthost smtp.company.com:25
./add-alerting-target.sh \ --type smtp \ --name secure-email-alerts \ --smtp-from alerts@company.com \ --smtp-to admin@company.com \ --smtp-smarthost smtp.company.com:587 \ --smtp-auth-username your_username \ --smtp-auth-password your_password \ --smtp-require-tls true
./add-alerting-target.sh \ --type webhook \ --name teams-alerts \ --webhook-url https://teams-webhook-url.example.com
./add-alerting-target.sh \ --type smtp \ --name device-email-alerts \ --alertgroup device \ --smtp-from alerts@company.com \ --smtp-to device-team@company.com \ --smtp-smarthost smtp.company.com:25
./add-alerting-target.sh \ --type webhook \ --name service-webhook-alerts \ --alertgroup service \ --webhook-url https://service-alerts-webhook.example.com
./add-alerting-target.sh \ --type webhook \ --name critical-alerts \ --matchers "severity=critical" \ --webhook-url https://critical-alerts-webhook.example.com
./add-alerting-target.sh \ --type webhook \ --name secure-webhook-alerts \ --webhook-url https://webhook.example.com/alerts \ --webhook-authorization-type basic \ --webhook-basic-auth-username api_user \ --webhook-basic-auth-password s3cr3t_p@ssw0rd
./add-alerting-target.sh \ --type webhook \ --name token-webhook-alerts \ --webhook-url https://api.alertservice.com/webhook \ --webhook-authorization-type bearer \ --webhook-bearer-token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIn0
./add-alerting-target.sh \ --type webhook \ --name secure-custom-webhook \ --webhook-url https://alerts-api.example.org/v1/webhooks \ --webhook-authorization-type bearer \ --webhook-bearer-token your_api_token_here \ --group-by severity,instance,alertname \ --group-wait 15s \ --group-interval 2m
# Device alerts to the device team ./add-alerting-target.sh \ --type webhook \ --name device-team-alerts \ --alertgroup device \ --webhook-url https://device-team-webhook.example.com
# Service alerts to the service team ./add-alerting-target.sh \ --type webhook \ --name service-team-alerts \ --alertgroup service \ --webhook-url https://service-team-webhook.example.com
# Critical alerts to everyone ./add-alerting-target.sh \ --type smtp \ --name critical-email-alerts \ --matchers "severity=critical" \ --smtp-from alerts@company.com \ --smtp-to all-teams@company.com \ --smtp-smarthost smtp.company.com:25