[SOLVED] Clearing Graph History for VMs

jalict

Member
Dec 2, 2022
17
1
8
Heya; Short version: How do I clear the graph data for a given VMID?

we have a bunch of build machines getting spun up and down here and there.
With that we might spin different "types" of VMs up on the same vmid after X time.

What occurs then is that we have "holes" in the graph data + some extra graph data from a previous VM that has no relation to the VM we just started.

I would like to know where this graph data is stored such that I can clear it after our VMs are finished.

Cheers!
 
Heya; Short version: How do I clear the graph data for a given VMID?

we have a bunch of build machines getting spun up and down here and there.
With that we might spin different "types" of VMs up on the same vmid after X time.

What occurs then is that we have "holes" in the graph data + some extra graph data from a previous VM that has no relation to the VM we just started.

I would like to know where this graph data is stored such that I can clear it after our VMs are finished.

Cheers!
Hi,
the data is stored in a rrd database located at /var/lib/rrdcached/db/<hostname>-vm/<vmid>. Should be enough to remove the database there.
 
Hi,
the data is stored in a rrd database located at /var/lib/rrdcached/db/<hostname>-vm/<vmid>. Should be enough to remove the database there.
Thanks fo the quick and precise answer! That solves it for me!