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

How can I filter out all veth* interfaces. #112

Open
soichih opened this issue Aug 27, 2019 · 1 comment
Open

How can I filter out all veth* interfaces. #112

soichih opened this issue Aug 27, 2019 · 1 comment

Comments

@soichih
Copy link

soichih commented Aug 27, 2019

Is there a way to hide interfaces that starts with "veth"? My graphite DB is filling up with tons of metrics from this plugin, and I'd like to filter them out if possible.

$ ./metrics-netif.rb
test.veth0cbff6b.rx_kB_per_sec 0.0 1566912465
test.veth0cbff6b.tx_kB_per_sec 0.0 1566912465
test.veth4a7e2fd.rx_kB_per_sec 0.88 1566912465
test.veth4a7e2fd.tx_kB_per_sec 1.6 1566912465
test.vethc2bac1e.rx_kB_per_sec 0.81 1566912465
test.vethc2bac1e.tx_kB_per_sec 1.59 1566912465
test.veth47902d8.rx_kB_per_sec 0.25 1566912465
test.veth47902d8.tx_kB_per_sec 0.83 1566912465
test.lo.rx_kB_per_sec 0.0 1566912465
test.lo.tx_kB_per_sec 0.0 1566912465
test.veth7df096d.rx_kB_per_sec 0.07 1566912465
test.veth7df096d.tx_kB_per_sec 0.06 1566912465
test.vethd47e902.rx_kB_per_sec 0.0 1566912465
test.vethd47e902.tx_kB_per_sec 0.0 1566912465
test.vethe993f5f.rx_kB_per_sec 0.0 1566912465
test.vethe993f5f.tx_kB_per_sec 0.0 1566912465
test.veth987aa56.rx_kB_per_sec 0.26 1566912465
test.veth987aa56.tx_kB_per_sec 0.27 1566912465
test.veth8cd1ca9.rx_kB_per_sec 0.0 1566912465
test.veth8cd1ca9.tx_kB_per_sec 0.0 1566912465
test.vethe97552e.rx_kB_per_sec 0.0 1566912465
test.vethe97552e.tx_kB_per_sec 0.0 1566912465
test.veth00be40e.rx_kB_per_sec 0.0 1566912465
test.veth00be40e.tx_kB_per_sec 0.0 1566912465
test.veth8aeeeac.rx_kB_per_sec 0.0 1566912465
test.veth8aeeeac.tx_kB_per_sec 0.0 1566912465

@jindraj
Copy link
Contributor

jindraj commented Dec 5, 2019

Until this issue is resolved you can do following

  1. add following line
^PREFIX\..*\.if\.veth.*

into /etc/carbon/blacklist.conf

  1. add
USE_WHITELIST = true

into /etc/carbon/carbon.conf

  1. restart carbon

notes:

  • files location can differ based on your GRAPHITE_CONF_DIR
  • construct regex for blacklist to match your needs

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

2 participants