Multi meter arithmetic transformer
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-manuals |
Fix Released
|
Medium
|
Nejc Saje |
Bug Description
https:/
Dear documentation bug triager. This bug was created here because we did not know how to map the project name "openstack/
commit 971f9c85c1051d3
Author: Nejc Saje <email address hidden>
Date: Wed Jul 9 14:13:49 2014 +0200
Multi meter arithmetic transformer
New pipeline transformer that enables us to perform arithmetic calculations
over one more meters and/or their metadata, for example:
memory_util = 100 * memory.usage / memory .
The calculation is limited to meters with the same interval.
Example configuration:
- name: "arithmetic"
target:
name: "memory_util"
unit: "%"
type: "gauge"
expr: "100 * $(memory.usage) / $(memory)"
To demonstrate the use of metadata, here is the implementation of
a silly metric that shows average CPU time per core::
- name: "arithmetic"
target:
name: "avg_cpu_per_core"
unit: "ns"
type: "cumulative"
expr: "$(cpu) / ($(cpu)
Expression evaluation gracefully handles NaNs and exceptions. In such
a case it does not create a new sample but only logs a warning.
DocImpact: add documentation about using this new transformer
Implements: blueprint arithmetic-
Change-Id: I1b637e5b1d1bb1
Changed in openstack-manuals: | |
assignee: | nobody → Nejc Saje (nejc-saje) |
Changed in openstack-manuals: | |
milestone: | none → juno |
status: | New → Confirmed |
importance: | Undecided → Medium |
Docco is added into the Administrator Guide: http:// docs.openstack. org/admin- guide-cloud/ content/ section_ telemetry- pipeline- transformers. html