[Openstack-operators] ocata gnocchi file system : erasing old data

gordon chung gord at live.ca
Tue May 15 01:33:24 UTC 2018



On 2018-05-14 10:16 AM, Ignazio Cassano wrote:
> Hi everyone,
> I am osing ocata on centos 7 with ceilometer and gnocchi.
> The gnocchi backend is nfs and I would like to know if it is possible 
> remove old data on the backend file system.
> Dome directories on the backend are 6 months old.
> 
> Please, any suggestion ?

there isn't a way to this without manually modifying the files (which 
can get a bit sketchy). Gnocchi is designed to capture (at most) the 
amount of data you define in your policy and does not prune data based 
on 'now' so it won't shrink on it's own over time.

i guess we could support a tool that could prune based on 'now' but that 
doesn't exist currently.

the safest way to clean old data is to delete the metric. if you want to
delete only some of the metric that will be difficult. it'll require you 
figuring out what time range of data is stored in a given file (which is 
not difficult if you look at code), then properly deserialising, 
pruning, and reserialising (probably difficult or at least annoying).

cheers,

-- 
gord


More information about the OpenStack-operators mailing list