Skip to content

Commit

Permalink
Support to get hardware's cpu_util from snmp
Browse files Browse the repository at this point in the history
Now, agent-central can only get cpu load, this patch add cpu_util
definition to snmp.yaml so that agent-central is able to  get
hardware's cpu_util metric.

Closes-Bug: #1513731
Change-Id: Ia43c4f103476567c607b63493261f1508dd19f5a
  • Loading branch information
lvdongbing committed Nov 6, 2015
1 parent 2bddfa2 commit 43a50f9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ceilometer/hardware/pollsters/data/snmp.yaml
Expand Up @@ -25,6 +25,14 @@ metric:
matching_type: "type_exact"
oid: "1.3.6.1.4.1.2021.10.1.3.3"
type: "lambda x: float(str(x))"

- name: hardware.cpu.util
unit: "%"
type: gauge
snmp_inspector:
matching_type: "type_exact"
oid: "1.3.6.1.4.1.2021.11.9.0"
type: "int"
# disk
- name: hardware.disk.size.total
unit: KB
Expand Down

0 comments on commit 43a50f9

Please sign in to comment.