Skip to content

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

@soichih

Description

@soichih

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions