im using telegraf 1.18.1 to collect SNMP and API time-series metrics from various vendor’s network gear.
usually, i collect both ifTable and ifXTable from my switches.
lately, I’ve encountered an issue with cisco CBS switches, when pulling iftables the switches CPU spikes up to 100%, further investigating I’ve discovered that this issue is because for some reason these switches OS add all L2 configured VLANs to if tables (around 600 VLANs) which make the tables very large.
so now I’m looking for a way to pull only part of the table, let’s say for interfaces 1-52, but i can’t find a scalable way to do so.
I understand that I can pull specific fields (error, hcOctats,
discard,ifstate etc.) and do so for specific interfaces but this will
make the configuration log and complex.
using input filters won’t help either, this way will only filter the data
collected by telegraf and still load
is there a way that:
- I could pull the tables but only for specific interfaces?
- or just configure the specific table fields for interfaces index range
ill appreciate any tips or ideas.