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:
parent
2bddfa28ad
commit
43a50f9be8
@ -25,6 +25,14 @@ metric:
|
|||||||
matching_type: "type_exact"
|
matching_type: "type_exact"
|
||||||
oid: "1.3.6.1.4.1.2021.10.1.3.3"
|
oid: "1.3.6.1.4.1.2021.10.1.3.3"
|
||||||
type: "lambda x: float(str(x))"
|
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
|
# disk
|
||||||
- name: hardware.disk.size.total
|
- name: hardware.disk.size.total
|
||||||
unit: KB
|
unit: KB
|
||||||
|
Loading…
Reference in New Issue
Block a user