ceilometer with openstack Train metrics issue

asked 2020-07-16 05:14:23 -0500

ahabib gravatar image

I'm running ceilometer with openstack Train. Services and logs looking good but there are just 7 metrics:

> [root@Manila gnocchi]# gnocchi metric

list | grep 57e42269-b718-4615-97ce-1d48525fd75d | 06adb76b-89fe-407d-a8de-b4fdb304a1dd | ceilometer-low | disk.ephemeral.size
| GB | 57e42269-b718-4615-97ce-1d48525fd75d | | 1dd7186c-5c4a-4ce9-a632-68bc6bc9f247 | ceilometer-low | compute.instance.booting.time
| sec | 57e42269-b718-4615-97ce-1d48525fd75d | | 4778306a-1aa6-4e5c-8752-e2e7c47245d4 | ceilometer-low | vcpus
| vcpu | 57e42269-b718-4615-97ce-1d48525fd75d | | 61803810-55c9-4ddf-a574-bde1a3f2d11b | ceilometer-low | memory
| MB | 57e42269-b718-4615-97ce-1d48525fd75d | | 76548494-717d-421b-b458-41eccf3a0d3a | ceilometer-low | memory.usage
| MB | 57e42269-b718-4615-97ce-1d48525fd75d | | a317ab98-419c-4b67-abb3-b7d4a86cdb49 | ceilometer-low-rate | cpu
| ns | 57e42269-b718-4615-97ce-1d48525fd75d | | e90afb93-afc0-4fc9-a001-6465bcbf1516 | ceilometer-low | disk.root.size | GB | 57e42269-b718-4615-97ce-1d48525fd75d |

note that i'm using kvm hypervisor,

my pipeline.yaml conf :

sources:
    - name: meter_source
      interval: 300
      meters:
          - "*"
      sinks:
          - meter_sink
    - name: cpu_source
      interval: 300
      meters:
          - "cpu"
      sinks:
          - cpu_sink
          - cpu_delta_sink
    - name: disk_source
      interval: 300
      meters:
          - "disk.read.bytes"
          - "disk.read.requests"
          - "disk.write.bytes"
          - "disk.write.requests"
          - "disk.device.read.bytes"
          - "disk.device.read.requests"
          - "disk.device.write.bytes"
          - "disk.device.write.requests"
      sinks:
          - disk_sink
    - name: network_source
      interval: 300
      meters:
          - "network.incoming.bytes"
          - "network.incoming.packets"
          - "network.outgoing.bytes"
          - "network.outgoing.packets"
      sinks:
          - network_sink
sinks:
    - name: meter_sink
      transformers:
      publishers:
          - gnocchi://?topic=alarm.all
          - notifier://?topic=alarm.all
    - name: cpu_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                target:
                    name: "cpu_util"
                    unit: "%"
                    type: "gauge"
                    scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
      publishers:
          - gnocchi://?topic=alarm.all
          - notifier://?topic=alarm.all
    - name: cpu_delta_sink
      transformers:
          - name: "delta"
            parameters:
                target:
                    name: "cpu.delta"
                growth_only: True
      publishers:
          - gnocchi://?topic=alarm.all
          - notifier://?topic=alarm.all
    - name: disk_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                    map_from:
                        name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
                        unit: "(B|request)"
                target:
                    map_to:
                        name: "\\1.\\2.\\3.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - gnocchi://?topic=alarm.all
          - notifier://?topic=alarm.all
    - name: network_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                   map_from:
                       name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
                       unit: "(B|packet)"
                target:
                    map_to:
                        name: "network.\\1.\\2.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - gnocchi://?topic=alarm.all
          - notifier://?topic=alarm.all
edit retag flag offensive close merge delete