Ask Your Question
0

VM BW monitor by IP

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

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

Comments

Check out Ceilometer

Bernd Bausch gravatar imageBernd Bausch ( 2015-11-07 02:11:48 -0600 )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 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 66 times

Last updated: Jan 10 '16