Hi Thomas, thank you for the answer. I have this content in my gnocchi_resources.yaml - resource_type: loadbalancer metrics: network.services.lb.outgoing.bytes: network.services.lb.incoming.bytes: network.services.lb.pool: network.services.lb.listener: network.services.lb.member: network.services.lb.health_monitor: dynamic.network.services.lb.loadbalancer: network.services.lb.total.connections: network.services.lb.active.connections: But to be honest I didn’t do db_sync. I’m using kolla-ansible and I have all services in container, so I should run db_sync inside ceilometer-central container? It’s not automatically synced when a service/container is restarted? Best regards Adam
Wiadomość napisana przez Thomas Goirand <zigo@debian.org> w dniu 12.04.2021, o godz. 21:40:
On 4/12/21 3:24 PM, Adam Tomas wrote:
Hi, Im trying to get metrics from octavia’s load balancer, but can’t get any (gnocchi metric list | grep loadbalancer not returning anything). How should I configure ceilometer to get metrics from octavia? Ceilometer asks neutron for load balancer metrics, and neutron responses „resource cannot be found” (and that is obvious, because Neutron LBaaS service is deprecated). How to force neutron to get these resources from Octavia? I’ve tried to use [service_providers] service_provider = LOADBALANCERV2:Octavia:neutron_lbaas.drivers.octavia.driver.OctaviaDriver:default in neutron.conf, but it doesn’t work either…
Best regards Adam
Hi Adam,
It's up to Ceilometer to report it. Do create the resource types, add this to /etc/ceilometer/gnocchi_resources.yaml (note: if you don't have such a file in /etc/ceilometer, copy it there from somewhere below /usr/lib/python3/dist-packages/ceilometer):
- resource_type: loadbalancer metrics: network.services.lb.outgoing.bytes: network.services.lb.incoming.bytes: network.services.lb.pool: network.services.lb.listener: network.services.lb.member: network.services.lb.health_monitor: network.services.lb.loadbalancer: network.services.lb.total.connections: network.services.lb.active.connections:
Then do a ceilometer db_sync to populate the Gnocchi resource types.
I hope this helps, Cheers,
Thomas Goirand (zigo)