.env.example 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # ============================================================
  2. # IPMI Monitor - Environment Variables Configuration
  3. # ============================================================
  4. # Copy this file to .env and modify values as needed:
  5. # cp .env.example .env
  6. # ============================================================
  7. # ----- InfluxDB Configuration -----
  8. # InfluxDB admin username
  9. INFLUXDB_USERNAME=admin
  10. # InfluxDB admin password (minimum 8 characters)
  11. INFLUXDB_PASSWORD=admin123456
  12. # InfluxDB organization name
  13. INFLUXDB_ORG=ipmi-monitor
  14. # InfluxDB bucket name for storing metrics
  15. INFLUXDB_BUCKET=metrics
  16. # InfluxDB admin API token (change this in production!)
  17. INFLUXDB_TOKEN=my-super-secret-token
  18. # InfluxDB host port mapping (host:container)
  19. INFLUXDB_PORT=8086
  20. # ----- Backend Configuration -----
  21. # Backend server host port mapping (host:container)
  22. BACKEND_PORT=8000
  23. # Polling interval in seconds for IPMI data collection
  24. POLL_INTERVAL=60
  25. # Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
  26. LOG_LEVEL=INFO
  27. # ----- Alert Thresholds -----
  28. # Temperature alert threshold in °C (0 to disable)
  29. ALERT_TEMP_THRESHOLD=80
  30. # Fan speed alert threshold in RPM (0 to disable, alert when below threshold)
  31. ALERT_FAN_THRESHOLD=0
  32. # Power consumption alert threshold in Watts (0 to disable, alert when above threshold)
  33. ALERT_POWER_THRESHOLD=500
  34. # ----- Email Alert Configuration -----
  35. # SMTP server host (leave empty to disable email alerts)
  36. SMTP_HOST=
  37. # SMTP server port
  38. SMTP_PORT=587
  39. # SMTP authentication username
  40. SMTP_USER=
  41. # SMTP authentication password
  42. SMTP_PASSWORD=
  43. # Sender email address for alerts
  44. ALERT_EMAIL_FROM=
  45. # Comma-separated list of recipient email addresses for alerts
  46. ALERT_EMAIL_TO=
  47. # ----- Webhook Alert Configuration -----
  48. # Webhook URL for alert notifications (leave empty to disable)
  49. # Supports Slack, DingTalk, WeChat Work, or generic webhooks
  50. WEBHOOK_URL=