aodh/ceilometer/transformer
Eoghan Glynn 943fafb929 Name and unit mapping for rate_of_change transformer
Precursor-to: BP rates-derived-from-cumulative

Adds support for regex-based name and unit mapping to the
rate_of_change transformer. Regular expression back-references
are key to simplifying potentially repetitive config.

This avoids a explosion of pipelines to apply conversions to
classes of similar meters. For example to allow the following
sample derivations:

  * disk.read.requests (request) -> disk.read.requests.rate (request/s)
  * disk.write.requests (request) -> disk.write.requests.rate (request/s)
  * disk.read.bytes (B) -> disk.read.bytes.rate (B/s)
  * disk.write.bytes (B) -> disk.write.bytes.rate (B/s)

to be mapped via a single transformer config:

    transformers:
        - name: "rate_of_change"
          parameters:
              source:
                  map_from:
                      name: "disk\\.(read|write)\\.(bytes|requests)"
                      unit: "(B|request)"
              target:
                  map_to:
                      name: "disk.\\1.\\2.rate"
                      unit: "\\1/s"
                  type: "gauge"

Change-Id: I94b6bfbef538a8b067c3c5ff65066505a199bc5a
2014-01-17 10:03:22 +00:00
..
__init__.py Apply six for metaclass 2013-10-08 15:22:30 +09:00
accumulator.py Change counter to sample vocable in cm.transformer 2013-08-21 16:07:27 +02:00
conversions.py Name and unit mapping for rate_of_change transformer 2014-01-17 10:03:22 +00:00