Comment 5 for bug 1518338

Revision history for this message
Maximiliano (massimo-6) wrote :

Yes haha,

As i said in the last email, In the way in which ceilometer is pushing metrics to gnocchi API, it creates one resource for every metric
from the same physical server.

POST /v1/resource/generic/192.168.90.11.tap575f655c-b5/metric/hardware.network.incoming.bytes/measures
POST /v1/resource/generic/192.168.90.11.br-tun/metric/hardware.network.outgoing.bytes/measures
POST /v1/resource/generic/192.168.90.11.eth3/metric/hardware.network.outgoing.errors/measures
POST /v1/resource/generic/192.168.90.10.%2Fdev%2Fsdb1/metric/hardware.disk.size.used/measures

So instead "192.168.90.11.tap575f655c-b5" or "192.168.90.10.%2Fdev%2Fsdb1" ceilometer should post a resource ID and send the name of the interfaces or disks as a gnocchi metadata.
And the resource ID should be the hypervisor id from nova.

For example :

POST /v1/resource/generic/2/metric/hardware.network.outgoing.bytes/measures
metadata: disk:sdb1
POST /v1/resource/generic/1/metric/hardware.disk.size.used/measures
metadata: iface:eth3
POST /v1/resource/generic/4/metric/hardware.disk.size.used/measures
metadata iface:br-tun