mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-05-10 12:00:17 +00:00
- Fixed alert clearing logic to work even when alerts are acknowledged - Added immediate WebSocket state broadcast after alert resolution - Fixed frontend activeAlerts store updates to maintain SolidJS reactivity - Added logging for alert resolution events The alert system now properly: - Creates alerts when thresholds are exceeded - Clears alerts automatically when values drop below clear threshold - Updates frontend in real-time without requiring page refresh
38 lines
No EOL
1.6 KiB
YAML
38 lines
No EOL
1.6 KiB
YAML
# Pulse Configuration File
|
|
# This file configures all aspects of the Pulse monitoring system
|
|
|
|
# Server configuration
|
|
server:
|
|
# Backend API server
|
|
backend:
|
|
port: 3000 # Port for the backend API (default: 3000)
|
|
host: "0.0.0.0" # Host to bind to (default: 0.0.0.0)
|
|
|
|
# Frontend web server
|
|
frontend:
|
|
port: 7655 # Port for the frontend web UI (default: 7655)
|
|
host: "0.0.0.0" # Host to bind to (default: 0.0.0.0)
|
|
|
|
# Monitoring configuration
|
|
monitoring:
|
|
pollingInterval: 5000 # How often to poll for updates in milliseconds (default: 5000)
|
|
concurrentPolling: true # Whether to poll instances concurrently (default: true)
|
|
backupPollingCycles: 10 # Poll backups every N cycles (default: 10)
|
|
metricsRetentionDays: 7 # How long to keep metrics data (default: 7)
|
|
|
|
# Logging configuration
|
|
logging:
|
|
level: "info" # Log level: debug, info, warn, error (default: info)
|
|
file: "/opt/pulse/pulse.log" # Path to log file (default: /opt/pulse/pulse.log)
|
|
maxSize: 100 # Maximum size in MB before rotation (default: 100)
|
|
maxBackups: 5 # Number of old log files to keep (default: 5)
|
|
maxAge: 30 # Maximum age in days for log files (default: 30)
|
|
compress: true # Compress rotated log files (default: true)
|
|
|
|
# Security configuration
|
|
security:
|
|
apiToken: "" # API token for authentication (optional)
|
|
allowedOrigins: # CORS allowed origins (default: ["*"])
|
|
- "*"
|
|
iframeEmbedding: "SAMEORIGIN" # X-Frame-Options header: DENY, SAMEORIGIN, or URL
|
|
enableAuthentication: false # Enable authentication (default: false) |