- Removed environment variable lookups for logrotate settings in logrotate configuration files, replacing them with hardcoded values. - Updated the Ansible playbook to simplify project root, deploy user, and old server configurations by removing environment variable dependencies. - Added tasks to copy Zsh configuration files from an old server to the new server, ensuring proper permissions and cleanup of temporary files. - Enhanced logrotate configurations for bots and system logs to ensure consistent management of log files.
30 lines
891 B
Plaintext
30 lines
891 B
Plaintext
# Telegram Bot Configuration
|
|
TELEGRAM_MONITORING_BOT_TOKEN=your_bot_token_here
|
|
GROUP_MONITORING_FOR_LOGS=your_telegram_group_id_here
|
|
IMPORTANT_MONITORING_LOGS=your_important_logs_channel_id_here
|
|
|
|
# Monitoring Configuration
|
|
THRESHOLD=80.0
|
|
RECOVERY_THRESHOLD=75.0
|
|
|
|
# Status Update Configuration
|
|
STATUS_UPDATE_INTERVAL_MINUTES=2 # Интервал отправки статуса в минутах
|
|
|
|
# Alert Delays (in seconds) - prevent false positives from temporary spikes
|
|
CPU_ALERT_DELAY=30 # CPU alert delay: 30 seconds
|
|
RAM_ALERT_DELAY=45 # RAM alert delay: 45 seconds
|
|
DISK_ALERT_DELAY=60 # Disk alert delay: 60 seconds
|
|
|
|
# Prometheus Configuration
|
|
PROMETHEUS_RETENTION_DAYS=30
|
|
|
|
# Grafana Configuration
|
|
GRAFANA_ADMIN_USER=admin
|
|
GRAFANA_ADMIN_PASSWORD=admin
|
|
|
|
# Server Configuration
|
|
SERVER_IP=your_server_ip_here
|
|
|
|
# Status Page Configuration
|
|
STATUS_PAGE_PASSWORD=admin123
|