73 lines
1.7 KiB
TOML
73 lines
1.7 KiB
TOML
# CM Dashboard Agent Configuration
|
|
# Example configuration file for the ZMQ metrics agent
|
|
|
|
[agent]
|
|
# Hostname to advertise in metrics (auto-detected if not specified)
|
|
hostname = "srv01"
|
|
|
|
# Log level: trace, debug, info, warn, error
|
|
log_level = "info"
|
|
|
|
# Maximum number of metrics to buffer before dropping
|
|
metrics_buffer_size = 1000
|
|
|
|
[zmq]
|
|
# ZMQ publisher port
|
|
port = 6130
|
|
|
|
# Bind address (0.0.0.0 for all interfaces, 127.0.0.1 for localhost only)
|
|
bind_address = "0.0.0.0"
|
|
|
|
# ZMQ socket timeouts in milliseconds
|
|
send_timeout_ms = 5000
|
|
receive_timeout_ms = 5000
|
|
|
|
[collectors.smart]
|
|
# Enable SMART metrics collection (disk health, temperature, wear)
|
|
enabled = true
|
|
|
|
# Collection interval in milliseconds (minimum 1000ms)
|
|
interval_ms = 5000
|
|
|
|
# List of storage devices to monitor (without /dev/ prefix)
|
|
devices = ["nvme0n1", "sda", "sdb"]
|
|
|
|
# Timeout for smartctl commands in milliseconds
|
|
timeout_ms = 30000
|
|
|
|
[collectors.service]
|
|
# Enable service metrics collection (systemd services)
|
|
enabled = true
|
|
|
|
# Collection interval in milliseconds (minimum 500ms)
|
|
interval_ms = 5000
|
|
|
|
# List of systemd services to monitor
|
|
services = [
|
|
"gitea",
|
|
"immich",
|
|
"vaultwarden",
|
|
"unifi",
|
|
"smart-metrics-api",
|
|
"service-metrics-api",
|
|
"backup-metrics-api"
|
|
]
|
|
|
|
# Timeout for systemctl commands in milliseconds
|
|
timeout_ms = 10000
|
|
|
|
[collectors.backup]
|
|
# Enable backup metrics collection (restic integration)
|
|
enabled = true
|
|
|
|
# Collection interval in milliseconds (minimum 5000ms)
|
|
interval_ms = 30000
|
|
|
|
# Restic repository path (leave empty to disable restic integration)
|
|
restic_repo = "/srv/backups/restic"
|
|
|
|
# Systemd service name for backup monitoring
|
|
backup_service = "restic-backup"
|
|
|
|
# Timeout for restic and backup commands in milliseconds
|
|
timeout_ms = 30000 |