Grafana+influxdb monitoring

Annonyme1

New Member
Dec 12, 2019
28
0
1
33
Hi ! !i'am working on a monitoring solution for proxmox !
my problem is when collecting metrics from many proxmox , metrics are stored on a unique database configurated by default on [[udp]] (influxdb) !
i would like to know to store all data in multiple databases !
 
do you want to store same datas in multiple databases/servers . (like repplication ?).
If yes, you can define multiple influxdb server in /etc/pve/status.cfg

Code:
 influxdb: myinfluxdb1
    server....
    port ....

 influxdb: myinfluxdb2
    server ...
    port ....
 
Maybe send your metrics to a Telegraf instance and have it do some fancy re-routing.
 
Because Proxmox writes to InfluxDB over UDP rather than TCP, you have to specify the database name written to in the Influxdb (not Proxmox) configuration...

I’ve not tested this but if you want to write to multiple InfluxDB databases on the same influxdb host, I think you’d need to do something like:

(1) Edit Proxmox Config /etc/pve/status.cfg as per @spirit post above to list two InfluxDB targets to the same IP but different UDP ports
(2) Configure your single InfluxDB server so that it listens on two UDP ports, with each UDP port writing to a different database name as per https://influxdbcom.readthedocs.io/en/latest/content/docs/v0.9/write_protocols/udp/