Ceilometer configuration

We need to add additional Ceilometer meters for instance traffic and packets metering. In order to do this, we need to modify the Ceilometer pipeline.yaml and the gnocchi_resources.yaml files.

pipeline.yaml

Under the sinks cathegory, we create a new sink named network_sink_delta After that, we add that new sink to the sources cathegory, in the network_source, after the network_sink

sinks:
.........
- name: network_sink_delta
  publishers:
  - notifier://
  transformers:
  - name: delta
    parameters:
      source:
        map_from:
          name: network\.(incoming|outgoing)\.(bytes|packets)
      target:
        map_to:
          name: network.\1.\2.delta
........
sources:
........
name: network_source
  sinks:
    - network_sink
    - network_sink_delta

gnocchi_resources.yaml

In order to be able to send the new metrics to gnocchi, we need to make the gnocchi dispatcher aware of our new metrics. Edit the gnocchi_resources.yaml file and add the new metrics under the resources cathegory at the resource_type instance_network_interface like so:

resources:
....
- resource_type: instance_network_interface
  metrics:
    - 'network.outgoing.packets.rate'
    - 'network.incoming.packets.rate'
    - 'network.outgoing.packets'
    - 'network.incoming.packets'
    - 'network.outgoing.bytes.rate'
    - 'network.incoming.bytes.rate'
    - 'network.outgoing.bytes'
    - 'network.incoming.bytes'
    - 'network.outgoing.packets.delta'
    - 'network.incoming.packets.delta'
    - 'network.outgoing.bytes.delta'
    - 'network.incoming.bytes.delta'
.....