Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Variable for network device names #114

Open
kng opened this issue Jan 9, 2023 · 0 comments
Open

Variable for network device names #114

kng opened this issue Jan 9, 2023 · 0 comments

Comments

@kng
Copy link

kng commented Jan 9, 2023

Issue:
Too many virtual devices in the network graph.
When running vm's or docker etc, there can be quite a few interfaces cluttering the graphs.

Solution:
In the query for network stats, add the variable netdevices to select what interfaces you want to see,
containing something like: eth[0-9]+|enp[0-9]+s[0-9]+|eno[0-9]+
Probably a few more patterns.

Example query:
irate(node_network_receive_bytes_total{instance="$node",job="$job",device=~"$netdevices"}[$__rate_interval])*8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant