update snmp exporter
This commit is contained in:
@@ -2,17 +2,8 @@
|
||||
# SNMP Exporter
|
||||
# Scrapes UniFi network devices via SNMP v2c.
|
||||
# Uses multi-target pattern — Prometheus passes device IP as a param.
|
||||
#
|
||||
# Devices:
|
||||
# - world-drive (UDM Pro) 192.168.1.1
|
||||
# - usw-pro-agg (USW-Pro-Agg) 192.168.1.123
|
||||
# - usw-pro-max-24 (USW-Pro-Max-24) 192.168.1.226
|
||||
# - usw-lite-16-poe (USW-Lite-16) 192.168.1.136
|
||||
# - ups-tower (UPS-Tower) 192.168.1.233
|
||||
# Config format: v0.26.0+ (auth-split format)
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
# SNMP exporter config — if_mib module with community from secret
|
||||
# Uses an init container to inject the community string at runtime
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@@ -27,8 +18,13 @@ data:
|
||||
modules:
|
||||
if_mib:
|
||||
walk:
|
||||
- interfaces
|
||||
auth: mk_labs_v2c
|
||||
- 1.3.6.1.2.1.2.2.1.1 # ifIndex
|
||||
- 1.3.6.1.2.1.2.2.1.2 # ifDescr
|
||||
- 1.3.6.1.2.1.2.2.1.8 # ifOperStatus
|
||||
- 1.3.6.1.2.1.2.2.1.10 # ifInOctets
|
||||
- 1.3.6.1.2.1.2.2.1.16 # ifOutOctets
|
||||
- 1.3.6.1.2.1.2.2.1.14 # ifInErrors
|
||||
- 1.3.6.1.2.1.2.2.1.20 # ifOutErrors
|
||||
metrics:
|
||||
- name: ifIndex
|
||||
oid: 1.3.6.1.2.1.2.2.1.1
|
||||
|
||||
Reference in New Issue
Block a user