Major upgrade: API key authentication, certificate renewal/download endpoints, monitoring/alerting scripts, improved logging, and documentation updates. See UPGRADE_SUMMARY.md for details.
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 43s
All checks were successful
HAProxy Manager Build and Push / Build-and-Push (push) Successful in 43s
This commit is contained in:
28
scripts/monitoring-example.conf
Normal file
28
scripts/monitoring-example.conf
Normal file
@@ -0,0 +1,28 @@
|
||||
# HAProxy Manager Monitoring Configuration Example
|
||||
# Copy this file and modify it for your environment
|
||||
|
||||
# Email alerts (requires mailutils to be installed)
|
||||
ALERT_EMAIL="admin@yourdomain.com"
|
||||
|
||||
# Webhook alerts (e.g., Slack, Discord, etc.)
|
||||
WEBHOOK_URL="https://hooks.slack.com/services/YOUR/SLACK/WEBHOOK"
|
||||
|
||||
# API key for certificate status checks
|
||||
HAPROXY_API_KEY="your-secure-api-key-here"
|
||||
|
||||
# Monitoring intervals (in minutes)
|
||||
ERROR_CHECK_INTERVAL=30
|
||||
CERT_CHECK_INTERVAL=1440 # 24 hours
|
||||
|
||||
# Certificate warning threshold (days before expiration)
|
||||
CERT_WARNING_DAYS=30
|
||||
|
||||
# Example crontab entries for monitoring:
|
||||
# Check for errors every 30 minutes
|
||||
# */30 * * * * /haproxy/scripts/monitor-errors.sh errors 30
|
||||
|
||||
# Check certificates daily
|
||||
# 0 9 * * * /haproxy/scripts/monitor-errors.sh certs 30
|
||||
|
||||
# Check both errors and certificates daily
|
||||
# 0 9 * * * /haproxy/scripts/monitor-errors.sh all 60 30
|
Reference in New Issue
Block a user