Multi meter arithmetic transformer

Bug #1346883 reported by OpenStack Infra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Nejc Saje

Bug Description

https://review.openstack.org/106302

Dear documentation bug triager. This bug was created here because we did not know how to map the project name "openstack/ceilometer" to a launchpad project name. This indicates that the notify_impact config needs tweaks. You can ask the OpenStack infra team (#openstack-infra on freenode) for help if you need to.

commit 971f9c85c1051d3291345152e4974f7beed23bf1
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"
          parameters:
            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"
          parameters:
            target:
              name: "avg_cpu_per_core"
              unit: "ns"
              type: "cumulative"
              expr: "$(cpu) / ($(cpu).resource_metadata.cpu_number or 1)"

    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-transformer
    Change-Id: I1b637e5b1d1bb15ed3c3d7ec758d2a684eaccf21

Tags: ceilometer
Nejc Saje (nejc-saje)
Changed in openstack-manuals:
assignee: nobody → Nejc Saje (nejc-saje)
Tom Fifield (fifieldt)
Changed in openstack-manuals:
milestone: none → juno
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Ildiko Vancsa (ildiko-vancsa) wrote :
Changed in openstack-manuals:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.