Installation InfluxDB
cd /tmp wget https://dl.influxdata.com/influxdb/releases/influxdb_1.7.6_amd64.deb dpkg -i influxdb_1.7.6_amd64.deb systemctl enable influxd systemctl start influxd systemctl status influxd
nano /etc/influxdb/influxdb.conf
[[udp]] enabled = true bind-address = "0.0.0.0:8089" database = "proxmox" batch-size = 1000 batch-timeout = "1s"
Installation Grafana
cd /tmp apt-get install libfontconfig wget https://dl.grafana.com/oss/release/grafana_6.1.4_amd64.deb dpkg -i grafana_6.1.4_amd64.deb systemctl daemon-reload systemctl enable grafana-server systemctl start grafana-server systemctl status grafana-server
Installation sur le serveur Proxmox
nano /etc/pve/status.cfg
influxdb: server IP_Serveur_Grafana port 8089
systemctl restart pvestatd
Aller sur Grafana
http://IP_Grafana:3000 Ajouter le Datasource Proxmox
Ajouter les Dashboards
https://grafana.com/dashboards/10048
https://grafana.com/dashboards/3046
https://grafana.com/dashboards/5875
https://grafana.com/dashboards/5872 Configuration Nginx pour reverse proxy
server { listen 80; listen [::]:80; server_name grafana.domain.fr; }
server { listen 443 ssl; listen [::]:443 ssl; server_name grafana.domain.fr; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log;
#Ajouter les certificats SSL
On rend le reste directement
location / {
proxy_pass http://10.10.1.5:3000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
Enjoy !!!