-
Is there any way to do conditional metrics? For example, if ifAdminStatus or ifOperStatus are "down" or "lowerLayerDown", don't collect ifInOctets, ifOutOctets, etc? This can be tricky, because you would snmpwalk ifAdminStatus and ifOperStatus and snmpget of other OIDs if any ports are excluded. This can be important for devices with many ports or devices with limited processing power. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, this is not really an option. It also is problematic because it would cause metrics to appear and disappear in the case of a flapping port. This would cause problems for Prometheus (Staleness handling) and would be weird for queries. You're better off splitting / filtering your walks. For example on JunOS it's not a CPU problem, but a data gathering speed problem. For these I wrote a more limited set of IF-MIB walks that reduce the load on the device and spread the gathering over time. |
Beta Was this translation helpful? Give feedback.
No, this is not really an option. It also is problematic because it would cause metrics to appear and disappear in the case of a flapping port. This would cause problems for Prometheus (Staleness handling) and would be weird for queries.
You're better off splitting / filtering your walks. For example on JunOS it's not a CPU problem, but a data gathering speed problem. For these I wrote a more limited set of IF-MIB walks that reduce the load on the device and spread the gathering over time.