Proxmox monitoring
You need to know whats going on in your homeserver at all times. We will install InfluxDB and Grafana in Docker and export data from our Proxmox Datacenter by the standard export, Metric Server. All runig in a docker container on a small VM or CT.
You need to know whats going on in your homeserver at all times.
We will install InfluxDB and Grafana in Docker and export data from our Proxmox Datacenter by the standard export, Metric Server.
In Proxmox we set the Influx server IP 192.168.1.###, port 8086, protocol HTTP and use a token from InfluxDB . You get it in the Data Segment.
You will use InfluxDB in flux mode. We need to setup a bucket and we will call it 'proxmox' and also copy the token from Data.API Tokens
For visualize the data in Grafana we use template # 15356 Proxmox [Flux].
For more info see dockerhub influxdb and grafana
Get the code by wget into your VM:
wget https://raw.githubusercontent.com/nallej/MyJourney/main/monitorProxmox.yml -O docker-compose.yml
InfluxDB
InfluxDB is a time series database built from the ground up to handle high write and query loads. InfluxDB is meant to be used as a backing store for any use case involving large amounts of timestamped data, including DevOps monitoring, application metrics, IoT sensor data, and real-time analytics.
Part of the code to be
influxdb:
image: influxdb:2.1-alpine
container_name: influxdb
restart: unless-stopped
ports:
- '8086:8086'
volumes:
- influxdb-data:/var/lib/influxdb2
#- ./influxdb-data:/var/lib/influxdb2
- /etc/influxdb2:/etc/influxdb2
networks:
- kadulla
# # (optional) If you're using self-signed certs
# - /etc/ssl/cert.pem/:/etc/ssl/cert.pem
# - /etc/ssl/cert-key.pem/:/etc/ssl/cert-key.pem
Grafana
Dashboard anything. Observe everything.
Query, visualize, alert on, and understand your data no matter where it’s stored. With Grafana you can create, explore and share all of your data through beautiful, flexible dashboards.
grafana:
image: grafana/grafana-oss:latest
container_name: grafana
ports:
- "3000:3000"
volumes:
- grafana-data:/var/lib/grafana
restart: unless-stopped
networks:
- kadulla
depends_on:
- influxdb
Start the Docker container and Grafana is on the external port 3000
of your VM (192.168.123.45:3000).
Default admin user credentials are admin/admin - Remeber to change them!
Proxmox [Flux]
by mephisto
Howe to setup:
- Create a bucket in InfluxDB
- Create a token for InfluxDB
- Enable metric export in Proxmox VE.
- Add the token from InfluxDB
- Verify that data is stored in the bucket
- Create a flux datasource in Grafana
- Add the token from InfluxDB to have as read access to the bucket
- Import this dashboard template 15356
Currently PVE doesn't report CT Disk I/O properly. This is a known issue which hasn't been fixed by Proxmox for quite some time now.