Influx: calculate traffic

dss

New Member
Jan 4, 2025
1
0
1
Good afternoon.
My task is to calculate the traffic for the VM, we collect data in influxe.
I've reaD the topic https://forum.proxmox.com/threads/influx-calculate-outbound-traffic.83218 /.

The main problem is that we sometimes delete and recreate a VM with the same ID again, and I get incorrect results.
Please take a look at the screenshot
influx_netin.png

After deleting and creating a VM, the value "netin"=0.

Has anyone solved such a problem and have you been able to solve it and calculate traffic consumption using only a request to influxe?
Thanks for the help.