Skip to content

Expose max bandwidth info for network interface. #918

@whypro

Description

@whypro

Host operating system: output of uname -a

Linux cs54 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.15.2+ds (branch: debian/sid, revision: 0.15.2+ds-1)
  build user:       pkg-go-maintainers@lists.alioth.debian.org
  build date:       20171214-15:26:08
  go version:       go1.9.2

node_exporter command line flags

Are you running node_exporter in Docker?

No.

What did you do that produced an error?

My purpose is adding a prometheus rule that send alert when network traffic is up to 90% of the max bandwidth of NICs. Like node_network_interface_max_bandwidth:

rate(node_network_transmit_bytes{device=~"ens\\d+|eth\\d+|bond\\d+"}[5m]) / on(device, instance) (node_network_interface_max_bandwidth{device=~"ens\\d+|eth\\d+|bond\\d+"} * 1024 * 1024 / 8) > 0.9

What did you expect to see?

I expect to see some metric providers network interface max bandwidth info.

What did you see instead?

But I didn't find any metric to expose this info.

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