0

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
rimonmostafiz
  • 1,341
  • 1
  • 15
  • 33
Selva
  • 45
  • 1
  • 6

1 Answers1

0

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.

bonn
  • 23
  • 5
  • my requirement is to get disk.device.usage in percentage . I had tried below but it is not working - name: disk_usage_sink transformers: - name: "arithmetic" parameters: target: name: "disk_device_usage" unit: "%" type: "gauge" expr: "100 * $(disk.device.usage) / $(disk.device.allocation)" publishers: - notifier:// – Selva Feb 13 '18 at 07:27
  • Don't see anything weird about your transformer definition, maybe you should track the logs for more details, and then check the configuration about notification agent which should work on partitioning mode(`workload_partitioning=True`). – bonn Feb 13 '18 at 08:03