Ask Your Question
0

How to configure a compute node ceilometer agent to send meters to a UDP port?

asked 2015-05-31 05:17:46 -0600

baboune gravatar image

Hi,

Using ceilometer on Juno, there is no documentation available on the pipeline.yaml file describing if ceilometers supports multiple publishers, and how to set a ceilometer to publish to a UDP port.

Here is my pipeline.yaml:

---
sources:
    - name: meter_source
      interval: 600
      meters:
          - "*"
      sinks:
          - meter_sink
    - name: cpu_source
      interval: 60
      meters:
          - "cpu"
      sinks:
          - cpu_sink
    - 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
    - name: network_source
      interval: 60
      meters:
          - "network.incoming.bytes"
          - "network.incoming.packets"
          - "network.outgoing.bytes"
          - "network.outgoing.packets"
      sinks:
          - network_sink
sinks:
    - name: meter_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                target:
                    name: "cpu_util"
                    unit: "%"
                    type: "gauge"
                    scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
      publishers:
          - notifier://
          - udp://10.68.228.90:31337
    - name: disk_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                    map_from:
                        name: "(disk\\.device|disk)\\.(read|write)\\.(bytes|requests)"
                        unit: "(B|request)"
                target:
                    map_to:
                        name: "\\1.\\2.\\3.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://
    - name: network_sink
      transformers:
          - name: "rate_of_change"
            parameters:
                source:
                   map_from:
                       name: "network\\.(incoming|outgoing)\\.(bytes|packets)"
                       unit: "(B|packet)"
                target:
                    map_to:
                        name: "network.\\1.\\2.rate"
                        unit: "\\1/s"
                    type: "gauge"
      publishers:
          - notifier://

I am trying to publish to "udp://10.68.228.90:31337".

The logs indicate that everything is OK. But nothing arrives at 10.68.228.90:31337. There is nothing in the logs that indicate a successful or unsucessful usage of the additional publisher (even at debug).

Additionally, if the "publishers" section is edited as follow:

- name: meter_sink
          transformers:
              - name: "rate_of_change"
                parameters:
                    target:
                        name: "cpu_util"
                        unit: "%"
                        type: "gauge"
                        scale: "100.0 / (10**9 * (resource_metadata.cpu_number or 1))"
          publishers:
              - udp://10.68.228.90:31337

ie the - notifier:// part is removed, then ceilometer does not poll at all.

In the above case (no notifier://), then the following debug log is seen:

2015-05-31 10:14:45.525 44665 DEBUG ceilometer.openstack.common.service [-] Full set of CONF: _wait_for_exit_or_signal /usr/lib/python2.6/site-packages/ceilometer/openstack/common/service.py:167
2015-05-31 10:14:45.526 44665 DEBUG ceilometer.openstack.common.service [-] ******************************************************************************** log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2052
2015-05-31 10:14:45.526 44665 DEBUG ceilometer.openstack.common.service [-] Configuration options gathered from: log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2053
2015-05-31 10:14:45.526 44665 DEBUG ceilometer.openstack.common.service [-] command line args: ['--logfile', '/var/log/ceilometer/compute.log'] log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2054
2015-05-31 10:14:45.527 44665 DEBUG ceilometer.openstack.common.service [-] config files: ['/etc/ceilometer/ceilometer.conf'] log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2055
2015-05-31 10:14:45.527 44665 DEBUG ceilometer.openstack.common.service [-] ================================================================================ log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2056
2015-05-31 10:14:45.527 44665 DEBUG ceilometer.openstack.common.service [-] backdoor_port                  = None log_opt_values /usr/lib/python2.6/site-packages/oslo_config/cfg.py:2065
2015-05-31 10:14:45.527 44665 DEBUG ceilometer.openstack.common.service [-] collector_workers              = 1 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-02-17 08:55:07 -0600

super250 gravatar image

i fall into the same case with you.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-05-31 05:17:46 -0600

Seen: 390 times

Last updated: May 31 '15