Clear network metrics¶
Important: By following this guide you will clear all the network metrics for all your clients. THIS IS NOT REVERSIBLE.
Currently, the metrics are calculated by aggregating two factors:
metrics collected by Fleio
metrics collected by Gnocchi
In order to clear all the network metrics you will have to clear the metrics collected by Fleio in the Fleio database, and the metrics collected by Gnocchi.
To clear the metrics collected by Fleio you will have to run fleio mysql
command and clear the information
gathered in the following two tables:
DELETE FROM openstack_networkportresource;
DELETE FROM openstack_networkporttraffic;
After that, you will have to clear all the information gathered by Gnocchi in all the regions that you have configured (you will have to run the following for loop in each region).
for f in `openstack metric resource list --type instance_network_interface -f value -c id`;do openstack metric resource delete $f;done
After that, just run the collect_traffic_data
script on your Fleio installation:
fleio bash
sh /var/webapps/fleio/scripts/collect_traffic_data