Traffic monitoring¶
Fleio support OpenStack instance traffic monitoring. Fleio is able to monitor incoming and outgoing traffic for an instance on each port.
In order to be able enable traffic monitoring you need to configure Ceilometer and Gnocchi to collect traffic data for instances. For more information see Ceilometer configuration
After Ceilometer and Gnocchi are properly configured the openstack.instances.traffic
feature should be enabled in
settings.py
. For more information see advanced settings file.
Once everything is configured you can run the collect_traffic_data script:
# package installation:
/var/webapps/fleio/scripts/collect_traffic_data
# Docker installation:
fleio bash
../scripts/collect_traffic_data
The script will collect traffic data for all ports for active instances and will update
Total traffic this billing cycle
and Total traffic this months
fields for instance.
For best results the script should be configured as a periodic task (please see Adjusting the celery beat tasks schedule). If the script is not executed for long periods of time traffic data collecting may not be accurate.
Once traffic data is available Fleio can be configured to bill instance traffic. See traffic billing.