Revision history [back]

click to hide/show revision 1
initial version

@openstack-eagle, if U want to get 'memory_utilization' meter U can try to add next snippet to the pipeline.yaml

---
sources:
    - name: mem_util
      interval: 600
      meters:
          - "memory"
          - "memory.usage"
      sinks:
          - mem_utilization
sinks:
    - name: mem_utilization
      transformers:
          - name: "arithmetic"
            parameters:
                target:
                    name: "memory.usage"
                    unit: "%"
                    type: "gauge"
                    expr: "$(image) / $(image.size)"
      publishers:
          - notifier://

Here is code of memory pollster so U can check how data is collected:

  • https://github.com/openstack/ceilometer/blob/master/ceilometer/compute/pollsters/memory.py
  • https://github.com/openstack/ceilometer/blob/master/ceilometer/compute/virt/libvirt/inspector.py

@openstack-eagle, if U want to get 'memory_utilization' meter U can try to add next snippet to the pipeline.yaml

---
sources:
    - name: mem_util
      interval: 600
      meters:
          - "memory"
          - "memory.usage"
      sinks:
          - mem_utilization
sinks:
    - name: mem_utilization
      transformers:
          - name: "arithmetic"
            parameters:
                target:
                    name: "memory.usage"
                    unit: "%"
                    type: "gauge"
                    expr: "$(image) "$(memory) / $(image.size)"
$(memory.usage)"
      publishers:
          - notifier://

Here is code of memory pollster so U can check how data is collected:

  • https://github.com/openstack/ceilometer/blob/master/ceilometer/compute/pollsters/memory.py
  • https://github.com/openstack/ceilometer/blob/master/ceilometer/compute/virt/libvirt/inspector.py