systemd unit
[Unit]
Description=Unimoni Agent
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/unimoni-agent --config /etc/unimoni/agent.yaml
Restart=on-failure
User=unimoni
[Install]
WantedBy=multi-user.target
config.yaml
api_url: https://api.unimoni.example.com:8443
agent_id: web-01
hostname: ${hostname}
metrics:
- host_cpu
- host_memory
- host_disk
- host_network
- systemd_units
push_interval: 15s
Включить
sudo systemctl enable --now unimoni-agent
sudo journalctl -u unimoni-agent -f