Support to get hardware's cpu_util from snmp

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
This commit is contained in:
lvdongbing 2015-11-06 02:38:15 -05:00
parent 2bddfa28ad
commit 43a50f9be8
1 changed files with 8 additions and 0 deletions

View File

@ -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