Skip to content

Conditional Metrics #854

Answered by SuperQ
murrant asked this question in Q&A
Mar 12, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@murrant
Comment options

Answer selected by SuperQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants