Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

New metrics: mac address table counters per vlan#29

Open
nuclearcat wants to merge 1 commit into
lwlcom:masterfrom
nuclearcat:add-mactable-metrics
Open

New metrics: mac address table counters per vlan#29
nuclearcat wants to merge 1 commit into
lwlcom:masterfrom
nuclearcat:add-mactable-metrics

Conversation

@nuclearcat

Copy link
Copy Markdown

In ISPs, expecially users facing switches, it is important to monitor number of macs per VLAN. Sometimes due misconfiguration, sometimes malicious intent, and just due growth it is easy to miss moment when switch will exceed internal resources.

This patch tested on NXOS: version 9.3(10), Nexus3064 Example snippet:

cisco_mactable_count{target="10.250.25.2",vlan="2015"} 86 
cisco_mactable_count{target="10.250.25.2",vlan="2016"} 91 
cisco_mactable_count{target="10.250.25.2",vlan="2018"} 160 
cisco_mactable_count{target="10.250.25.2",vlan="2019"} 330

@nuclearcat

Copy link
Copy Markdown
Author

Docker image: nuclearcat/cisco_exporter

@nuclearcat nuclearcat force-pushed the add-mactable-metrics branch from 3a4f7ab to e8ab2f6 Compare May 30, 2025 22:01
In ISPs, expecially users facing switches, it is important to monitor
number of macs per VLAN. Sometimes due misconfiguration, sometimes
malicious intent, and just due growth it is easy to miss moment when
switch will exceed internal resources.

This patch tested on NXOS: version 9.3(10), Nexus3064
Example snippet:

cisco_mactable_count{target="10.250.25.2",vlan="2015"} 86
cisco_mactable_count{target="10.250.25.2",vlan="2016"} 91
cisco_mactable_count{target="10.250.25.2",vlan="2018"} 160
cisco_mactable_count{target="10.250.25.2",vlan="2019"} 330

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
@nuclearcat nuclearcat force-pushed the add-mactable-metrics branch from e8ab2f6 to 8d025ca Compare May 30, 2025 22:02
@nuclearcat nuclearcat marked this pull request as draft June 1, 2025 08:48
@nuclearcat

Copy link
Copy Markdown
Author

I am investigating report that probably it is causing CPU usage spike in old version of NX-OS.

@nuclearcat

Copy link
Copy Markdown
Author

Load spike caused on switch with 40k MACs with 300+ vlans, with 2 minute polling interval. Changing interval to larger value solved problem.

@nuclearcat nuclearcat marked this pull request as ready for review June 1, 2025 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant