[neutron] neutron-metering-agent track router and floating IP traffic

Florian Engelmann florian.engelmann at everyware.ch
Tue Apr 16 10:14:25 UTC 2019


Hi,

I configured our neutron meters like:

labels:
openstack network meter create --description "shared 
bandwidth-public-out" --share bandwidth-public-out
openstack network meter create --description "shared 
bandwidth-public-in" --share bandwidth-public-in

rules:
openstack network meter rule create --egress --remote-ip-prefix 
0.0.0.0/0 bandwidth-public-out
openstack network meter rule create --ingress --remote-ip-prefix 
0.0.0.0/0 bandwidth-public-in

This created the iptables rules in all namespaces and collects data:

openstack metric measures show bc6c670f-cbb5-4fe1-974c-10455448fa27
+---------------------------+-------------+---------------+
| timestamp                 | granularity |         value |
+---------------------------+-------------+---------------+
| 2019-04-15T16:00:00+02:00 |      3600.0 | 581854.954545 |
| 2019-04-15T17:00:00+02:00 |      3600.0 | 23169398.5625 |
| 2019-04-15T18:00:00+02:00 |      3600.0 |      586508.9 |
| 2019-04-15T19:00:00+02:00 |      3600.0 | 1276372.84375 |
| 2019-04-15T20:00:00+02:00 |      3600.0 | 507482.911765 |
[...]

But how to know which project caused which amount of traffic?

It looks like only one metric is created for each label?

openstack metric list | grep bandwidth
| 0f9f20a4-1c60-442f-81cb-48285e3f70da | ceilometer-ew-low | bandwidth 
                     | B       | efae8040-85d7-455a-958d-213a81ef98ef |
| 1a058a79-965f-4a0a-a9ee-d482f57892ab | ceilometer-ew-low | bandwidth 
                     | B       | 837ed34a-65d2-42ef-924e-fd3c7e5aaed6 |


What does "shared" mean? I was not able to find any relevant documentation.
Do I have to create a meter for each project or a rule or both? Is it 
possible to define a "default" meter and rule for every existing project 
and all future projects?

All the best,
Flo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5230 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190416/04336c44/attachment-0001.bin>


More information about the openstack-discuss mailing list