# FOXHUNT HFT ALERTMANAGER CONFIGURATION # Real-time alerting for production trading system # Generated for critical deployment global: # SMTP configuration for email alerts smtp_smarthost: 'smtp.gmail.com:587' smtp_from: 'alerts@foxhunt.io' smtp_auth_username: 'alerts@foxhunt.io' smtp_auth_password: 'YOUR_SMTP_PASSWORD' smtp_require_tls: true # Slack webhook for instant notifications slack_api_url: 'https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK' # Template files for custom alert formatting templates: - '/etc/alertmanager/templates/*.tmpl' # Route configuration - CRITICAL for HFT operations route: # Default receiver for unmatched alerts receiver: 'hft-default' # Group alerts by service and severity group_by: ['alertname', 'service', 'severity'] group_wait: 1s # Wait 1 second before sending grouped alerts group_interval: 5s # Wait 5 seconds between grouped alerts repeat_interval: 1m # Repeat critical alerts every minute # Route critical alerts immediately routes: - match: severity: critical receiver: 'hft-critical-immediate' group_wait: 0s # Send critical alerts immediately group_interval: 0s # No grouping delay for critical repeat_interval: 30s # Repeat every 30 seconds - match: team: risk-management receiver: 'hft-risk-team' group_wait: 0s - match: team: trading receiver: 'hft-trading-team' group_wait: 1s - match: team: infrastructure receiver: 'hft-infra-team' group_wait: 5s # Inhibit rules - prevent alert spam inhibit_rules: # Inhibit warning alerts when critical alert is firing - source_match: severity: critical target_match: severity: warning equal: ['service', 'alertname'] # Inhibit individual service alerts when trading halt is active - source_match: alertname: HFT_TradingHalt_Active target_match_re: alertname: HFT_.* equal: ['service'] # Receiver configurations receivers: # Default receiver - name: 'hft-default' slack_configs: - channel: '#hft-alerts' title: 'HFT Alert - {{ .GroupLabels.alertname }}' text: | {{ range .Alerts }} *{{ .Annotations.summary }}* {{ .Annotations.description }} {{ end }} send_resolved: true # CRITICAL ALERTS - Multiple channels for maximum reliability - name: 'hft-critical-immediate' # Slack notification slack_configs: - channel: '#hft-critical' title: '🚨 CRITICAL HFT ALERT - {{ .GroupLabels.alertname }}' text: | ⚠️ **IMMEDIATE ACTION REQUIRED** ⚠️ {{ range .Alerts }} *Alert:* {{ .Labels.alertname }} *Service:* {{ .Labels.service }} *Summary:* {{ .Annotations.summary }} *Details:* {{ .Annotations.description }} *Runbook:* {{ .Annotations.runbook }} *Time:* {{ .StartsAt.Format "2006-01-02 15:04:05 UTC" }} {{ end }} send_resolved: true color: 'danger' # Email notification email_configs: - to: 'trading-alerts@foxhunt.io' subject: '🚨 CRITICAL HFT ALERT - {{ .GroupLabels.alertname }}' html: |
IMMEDIATE ACTION REQUIRED
{{ range .Alerts }}| Alert | {{ .Labels.alertname }} |
| Service | {{ .Labels.service }} |
| Severity | {{ .Labels.severity }} |
| Summary | {{ .Annotations.summary }} |
| Description | {{ .Annotations.description }} |
| Time | {{ .StartsAt.Format "2006-01-02 15:04:05 UTC" }} |
| Runbook | {{ .Annotations.runbook }} |