diff options
author | gordon chung <gord@live.ca> | 2015-09-09 14:28:34 -0400 |
---|---|---|
committer | gordon chung <gord@live.ca> | 2015-09-16 19:42:15 +0000 |
commit | 6ef079953e343885fb6251bc7bbb3c13b8e89483 (patch) | |
tree | 060413595b0079b6c802a792f56c00e0e9cf26dd /etc | |
parent | 63e67d8b621b7a3b8ccf7eef503535461ff929a4 (diff) | |
download | ceilometer-6ef079953e343885fb6251bc7bbb3c13b8e89483.tar.gz |
add delta transfomer support
this patch adds support for a delta transformer. the transformer's
only functionality is to calculate the delta between current sample
and previous sample.
conditions:
- it will disregard any out of order samples
- a growth_only param is available to capture only positive deltas
- supports renaming to a new meter name using same schema as other
transformers.
using this transformer, we also create a cpu.delta meter which will
enable another view of cpu meter. this delta meter will allow for
(relatively) accurate cputime calculations and will cope with cputime
resets.
DocImpact
Change-Id: Iabcad20d500e3157e4d19f8b2ebffd770218165b
Closes-Bug: #1417949
Diffstat (limited to 'etc')
-rw-r--r-- | etc/ceilometer/pipeline.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/ceilometer/pipeline.yaml b/etc/ceilometer/pipeline.yaml index 12b45f2e..a5bd5148 100644 --- a/etc/ceilometer/pipeline.yaml +++ b/etc/ceilometer/pipeline.yaml @@ -12,6 +12,7 @@ sources: - "cpu" sinks: - cpu_sink + - cpu_delta_sink - name: disk_source interval: 600 meters: @@ -50,6 +51,15 @@ sinks: scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))" publishers: - notifier:// + - name: cpu_delta_sink + transformers: + - name: "delta" + parameters: + target: + name: "cpu.delta" + growth_only: True + publishers: + - notifier:// - name: disk_sink transformers: - name: "rate_of_change" |