7 p
HQ-SRV: apt update && apt install prometheus -y
systemctl enable --now prometheus
HQ-SRV: apt install prometheus-node-exporter -y
systemctl enable --now prometheus-node-exporter
http://192.168.0.2:9100/metrics
BR-SRV: apt update && apt install prometheus-node-exporter -y
systemctl enable --now prometheus-node-exporter
HQ-SRV: nano /etc/prometheus/prometheus.yml
- job_name: 'HQ-SRV' static_configs: - targets: ['192.168.10.2:9100'] - job_name: 'BR-SRV' static_configs: - targets: ['192.168.11.2:9100']
systemctl перезапустит prometheus
http://192.168.10.2:9090 (таргеты)
wget https://dl.grafana.com/oss/release/grafana_10.2.2_amd64.deb
путь экспорта =/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
dpkg -i grafana_10.2.2_amd64.deb
включить systemctl -теперь grafana-server
systemctl status grafana-сервер
https://grafana.com/grafana/dashboards/1860-node-exporter-full/?tab=revisions (выбрать пункт 27)
1. Войти: admin / admin → сменить на admin / P@ssw0rd
2. Добавить источник данных → Prometheus → URL: http://192.168.0.2:9090 → Сохранить и протестировать
3. Импортировать дашборд → ID: 1860 → Выбрать Prometheus → Импортировать
echo "192.168.0.2 mon.au-team.irpo" >> /etc/hosts
http://mon.au-team.irpo:3000 (дальше интуитивно, я у мамы сисадмин)