Merge "Using arithmetic transformers in pipeline"

This commit is contained in:
Jenkins 2014-08-27 14:58:57 +00:00 committed by Gerrit Code Review
commit 1128e31eff
1 changed files with 25 additions and 2 deletions

View File

@ -1,4 +1,3 @@
---
sources:
- name: host_source
interval: 600
@ -6,10 +5,34 @@ sources:
- "hardware.*"
sinks:
- "meter_sink"
- "cpu_sink"
- "swap_sink"
discovery:
- "tripleo_overcloud_nodes"
sinks:
- name: meter_sink
transformers:
publishers:
- rpc://
- rpc://
- name: cpu_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.system_stats.cpu.util"
unit: "%"
type: "gauge"
expr: "100 - $(hardware.system_stats.cpu.idle)"
publishers:
- rpc://
- name: swap_sink
transformers:
- name: "arithmetic"
parameters:
target:
name: "hardware.memory.swap.util"
unit: "%"
type: "gauge"
expr: "100 - (100 * $(hardware.memory.swap.avail) / $(hardware.memory.swap.total))"
publishers:
- rpc://