operations:monitoring
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| operations:monitoring [2026/02/07 00:47] – external edit 127.0.0.1 | operations:monitoring [2026/02/07 10:39] (current) – Removed - consolidated admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Monitoring Setup ====== | ||
| - | |||
| - | How to add hosts to monitoring. | ||
| - | |||
| - | ===== Stack ===== | ||
| - | |||
| - | ^ Component ^ Purpose ^ | ||
| - | | [[services: | ||
| - | | [[services: | ||
| - | | node_exporter | Host metrics (CPU, RAM, Disk, Network) | | ||
| - | | [[services: | ||
| - | |||
| - | ===== Current Hosts ===== | ||
| - | |||
| - | All hosts run node_exporter on port 9100: | ||
| - | |||
| - | ^ Host ^ IP ^ | ||
| - | | hv-04 (Proxmox) | 10.100.160.100 | | ||
| - | | traefik (CT 102) | 10.100.161.102 | | ||
| - | | openclaw (CT 103) | 10.100.160.249 | | ||
| - | | postgres (CT 110) | 10.100.161.110 | | ||
| - | | n8n (CT 111) | 10.100.161.111 | | ||
| - | | vaultwarden (CT 112) | 10.100.161.112 | | ||
| - | | dokuwiki (CT 113) | 10.100.161.113 | | ||
| - | | uptime-kuma (CT 114) | 10.100.161.114 | | ||
| - | | monitoring (CT 115) | 10.100.161.115 | | ||
| - | |||
| - | ===== Adding a New Host ===== | ||
| - | |||
| - | ==== 1. Install node_exporter ==== | ||
| - | |||
| - | <code bash> | ||
| - | cd /tmp | ||
| - | wget https:// | ||
| - | tar xzf node_exporter-*.tar.gz | ||
| - | cp node_exporter-*/ | ||
| - | |||
| - | cat > / | ||
| - | [Unit] | ||
| - | Description=Node Exporter | ||
| - | After=network.target | ||
| - | |||
| - | [Service] | ||
| - | Type=simple | ||
| - | ExecStart=/ | ||
| - | Restart=always | ||
| - | |||
| - | [Install] | ||
| - | WantedBy=multi-user.target | ||
| - | EOF | ||
| - | |||
| - | systemctl daemon-reload | ||
| - | systemctl enable --now node_exporter | ||
| - | </ | ||
| - | |||
| - | ==== 2. Add to Prometheus ==== | ||
| - | |||
| - | Edit / | ||
| - | |||
| - | <code yaml> | ||
| - | - job_name: " | ||
| - | static_configs: | ||
| - | - targets: | ||
| - | - " | ||
| - | </ | ||
| - | |||
| - | Reload: '' | ||
| - | |||
| - | ===== Troubleshooting ===== | ||
| - | |||
| - | <code bash> | ||
| - | # Test node_exporter locally | ||
| - | curl http:// | ||
| - | |||
| - | # Test from Prometheus server | ||
| - | curl http:// | ||
| - | |||
| - | # Check Prometheus targets | ||
| - | curl http:// | ||
| - | </ | ||
| - | |||
| - | ===== Related ===== | ||
| - | |||
| - | * [[services: | ||
| - | * [[services: | ||
operations/monitoring.1770425255.txt.gz · Last modified: by 127.0.0.1
