ceilometer: arithmetic transformer failure

asked 2015-09-15 03:43:36 -0600

avi gravatar image

updated 2015-09-16 01:02:13 -0600

Hi all,

I am using ceilometer (devstack master on Ubuntu 14.04.3) with arithmetic transformer to combine two meters.

I get this error (from ceilometer-notification service):

"Unable to perform calculation, not all of {_disk_write_bytes_ESC, _disk_read_bytes_ESC} are present"

Arithmetic transformer, with multiple meters, properly worked three months ago.

Here is an extract of my pipeline.yaml (it's just a dummy test).

sources:
...
    - name: disk_source
      interval: 60
      meters:
          - "disk.read.bytes"
          - "disk.read.requests"
          - "disk.write.bytes"
          - "disk.write.requests"
          - "disk.device.read.bytes"
          - "disk.device.read.requests"
          - "disk.device.write.bytes"
          - "disk.device.write.requests"
      sinks:
          - disk_sink
          - disk_read_write_sink
    ...
sinks:
    - name: disk_read_write_sink
      transformers:
        - name: "arithmetic"
          parameters:
            target:
              name: "disk.read.write.bytes"
              unit: "B"
              type: "cumulative"
              expr: "2*$(disk.read.bytes) + 2*$(disk.write.bytes)"
      publishers:
          - notifier://

I would like to ask whether anyone else encountered this issue when using this transformer?

Please find below ceilometer.conf:

[DEFAULT]
collector_workers = 2
debug = True
verbose = True
notification_topics = notifications
rpc_backend = rabbit

[oslo_messaging_rabbit]
rabbit_userid = stackrabbit
rabbit_password = supersecrete
rabbit_hosts = 1.2.3.4

[oslo_policy]
policy_file = /etc/ceilometer/policy.json

[service_credentials]
os_auth_url = http://1.2.3.4:5000/v2.0
os_region_name = RegionOne
os_tenant_name = service
os_password = supersecrete
os_username = ceilometer

[keystone_authtoken]
signing_dir = /var/cache/ceilometer
cafile = /opt/stack/data/ca-bundle.pem
auth_uri = http://1.2.3.4:5000
project_domain_id = default
project_name = service
user_domain_id = default
password = supersecrete
username = ceilometer
auth_url = http://1.2.3.4:35357
auth_plugin = password

[notification]
store_events = True

[database]
metering_connection = mysql+pymysql://root:supersecret@127.0.0.1/ceilometer?charset=utf8
event_connection = mysql+pymysql://root:supersecret@127.0.0.1/ceilometer?charset=utf8
alarm_connection = mysql+pymysql://root:supersecret@127.0.0.1/ceilometer?charset=utf8

Thanks in advance.

edit retag flag offensive close merge delete