configure disk usage in percentage at pipeline.yaml in ceilometer

396 views Asked by At

How to configure in etc/ceilometer/pipeline.yaml to get the disk.device.usage in percentage for every 600 seconds.

Configuration Details

virsh # version
Compiled against library: libvirt 1.2.17
Using library: libvirt 1.2.17
Using API: QEMU 1.2.17
Running hypervisor: QEMU 2.6.0
1

There are 1 answers

2
bonn On

Define the metrics name and interval in source section, define the post action in sink section.

You can write the yaml file like this:

---
sources:
    - name: meter_source
      interval: 600
      meters:
          - "disk.device.usage"
      sinks:
          - meter_sink
sinks:
    - name: meter_sink
      transformers:
      publishers:
          - notifier://

For more pipeline code logic and data processing mechanism, you shall read the code and related annotation in the source code files.