Ask Your Question

VM BW monitor by IP

asked 2015-11-04 13:43:46 -0500

ariksa gravatar image

How / Is it possible to get statistics regarding VM's network ussage / BW, orginized by IP? Something similar to iftop, but using OpenStack API.

edit retag flag offensive close merge delete


Check out Ceilometer

Bernd Bausch gravatar imageBernd Bausch ( 2015-11-07 02:11:48 -0500 )edit

Thanks, I was thinking of this direction. Do you know it's possible, or it's an educated guess ?

ariksa gravatar imageariksa ( 2015-11-07 13:43:33 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-01-10 15:15:49 -0500

ariksa gravatar image

The way I solved it, is after installing RDO, I ended up having Open vSwitch on every compute node. Since all the VMs are in the same subnet, their internal traffic (VM to VM) is not going via router, but via switch only. Hence, I used OvS commands to collect traffic info. e.g.

ovs-dpctl dump-flows

This command shows the number of bytes transmitted between any two VMs. You have to execute it on the compute node where the desired VM is running at.
Note, that this is a switch. So you don't see IP addresses, but MAC addresses only. To get the MAC address of your VM, you can use these two commands:

nova list

And then

neutron port-list

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-11-04 13:43:46 -0500

Seen: 119 times

Last updated: Jan 10 '16