I am a newbie to building a monitor system using Prometheus and SNMP exporter, I have succeeded get metric from the physical interface, but I want to monitor VLAN on a trunk port, is that possible ? and how ?
Asked
Active
Viewed 2,535 times
2 Answers
1
Monitoring a VLAN inside a trunk port doesn't make too much sense. Usually, you monitor the physical link (trunk) and the SVI (VLAN-IP binding). If you want to monitor VLAN connectivity across multiple switches, that's highly software dependent.
Zac67
- 90,111
- 4
- 75
- 141
0
I don't know if your N3K-3064PQ has the counters you want. My guess is it doesn't. However, you can check for yourself by using snmpwalk or similar. Some relevant types of ifName values for an example VLAN 5 are below; and note you'll need to confirm they have a non-zero/incrementing ifHCInOctets or ifHCOutOctets as well:
VLAN-5on Cisco devices is likely to be a layer-2 interface which may have countersVlan5is generally a layer-3 SVIGigabitEthernet0/1.5may be a router interface with a sub-interface 5 that you may have configured for e.g. dot1q 5
This older thread may help as well: How to Monitor Vlan Traffic?
Jeff Wheeler
- 5,824
- 11
- 19