<div dir="ltr"><div>Hi Gordon, please, let me to understand better....</div><div>I am collecting only instance metrics:</div><div> I need to remove data about instances that ah been removed.</div><div>I could do that with:</div><div>gnocchi resource list --type instance -c id -f value</div><div> if the instance has been delete I could:</div><div><br></div><div>gnocchi resource delete instance id</div><div><br></div><div><br></div><div>Does the above procedure remove data either from database or /var/lib/gnocchi directory ?</div><div><br></div><div><br></div><div>Any suggestion ?</div><div><br></div><div>Thanks and Regards</div><div>Ignazio<br></div><div><br></div><div><br></div><div><br></div><div><br></div><br><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-05-15 3:33 GMT+02:00 gordon chung <span dir="ltr"><<a href="mailto:gord@live.ca" target="_blank">gord@live.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 2018-05-14 10:16 AM, Ignazio Cassano wrote:<br>
> Hi everyone,<br>
> I am osing ocata on centos 7 with ceilometer and gnocchi.<br>
> The gnocchi backend is nfs and I would like to know if it is possible <br>
> remove old data on the backend file system.<br>
> Dome directories on the backend are 6 months old.<br>
> <br>
> Please, any suggestion ?<br>
<br>
</span>there isn't a way to this without manually modifying the files (which <br>
can get a bit sketchy). Gnocchi is designed to capture (at most) the <br>
amount of data you define in your policy and does not prune data based <br>
on 'now' so it won't shrink on it's own over time.<br>
<br>
i guess we could support a tool that could prune based on 'now' but that <br>
doesn't exist currently.<br>
<br>
the safest way to clean old data is to delete the metric. if you want to<br>
delete only some of the metric that will be difficult. it'll require you <br>
figuring out what time range of data is stored in a given file (which is <br>
not difficult if you look at code), then properly deserialising, <br>
pruning, and reserialising (probably difficult or at least annoying).<br>
<br>
cheers,<br>
<span class="HOEnZb"><font color="#888888"><br>
-- <br>
gord<br>
______________________________<wbr>_________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.<wbr>openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" rel="noreferrer" target="_blank">http://lists.openstack.org/<wbr>cgi-bin/mailman/listinfo/<wbr>openstack-operators</a><br>
</font></span></blockquote></div><br></div>