how can enable snmp for ceilometer ?

asked 2016-11-03 11:28:46 -0500

mkhan gravatar image

updated 2016-11-07 07:55:40 -0500

rbowen gravatar image

Hi, I have configured snmp follow the link online. I cannot get hardware metrics from compute node. I have also enable snmp deamon on compute nodes. I am not getting any hardware meters. Once I have configure /etc/ceilometer/pipeline.yml file for hatdware meters and now I am facing the issue in log file of

tail compute.log

2016-11-03 12:26:33.292 28096 ERROR cotyledon ParserError: while parsing a block collection
2016-11-03 12:26:33.292 28096 ERROR cotyledon   in "<string>", line 3, column 5:
2016-11-03 12:26:33.292 28096 ERROR cotyledon         - name: meter_source
2016-11-03 12:26:33.292 28096 ERROR cotyledon         ^
2016-11-03 12:26:33.292 28096 ERROR cotyledon expected <block end>, but found '<block sequence start>'
2016-11-03 12:26:33.292 28096 ERROR cotyledon   in "<string>", line 38, column 6:
2016-11-03 12:26:33.292 28096 ERROR cotyledon          - name: meter_snmp
2016-11-03 12:26:33.292 28096 ERROR cotyledon          ^
2016-11-03 12:26:33.292 28096 ERROR cotyledon 
2016-11-03 12:26:33.315 21080 INFO cotyledon [-] Child 28096 exited with status

sources:
    - name: meter_source
      interval: 600
      meters:
          - "*"
      sinks:
          - meter_sink
    - name: cpu_source
      interval: 600
      meters:
          - "cpu"
      sinks:
          - cpu_sink
          - cpu_delta_sink
    - name: disk_source
      interval: 600
      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: 600
      meters:
          - "network.incoming.bytes"
          - "network.incoming.packets"
          - "network.outgoing.bytes"
          - "network.outgoing.packets"
      sinks:
          - network_sink
     - name: meter_snmp
      interval: 600
      resources:
          - snmp://192.168.128.29
          - snmp://192.168.128.30
          - snmp://192.168.128.39
       meters:
          - "hardware.cpu*"
          - "hardware.memory*"
          - "hardware.disk*"
          - "hardware.network*"
          - "hardware.system_stats*"
      sinks:
          - meter_sink
       sinks:
    - name: meter_sink
      transformers:
      publishers:
          - notifier://
    - name: cpu_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://
    - name: cpu_delta_sink
      transformers:
          - name: "delta"
            parameters:
                target:
                    name: "cpu.delta"
                growth_only: True
      publishers:
          - notifier://
    - 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://
edit retag flag offensive close merge delete