Skip to content

Add instance:node_network_receive_bytes_physical:rate recording rule #3524

@jan--f

Description

@jan--f

Currently we have instance:node_network_receive_bytes_excluding_lo:rate:

record: 'instance:node_network_receive_bytes_excluding_lo:rate%(rateInterval)s' % $._config,
expr: |||
sum without (device) (
rate(node_network_receive_bytes_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s])
)
||| % $._config,
},
{
record: 'instance:node_network_transmit_bytes_excluding_lo:rate%(rateInterval)s' % $._config,
expr: |||
sum without (device) (
rate(node_network_transmit_bytes_total{%(nodeExporterSelector)s, device!="lo"}[%(rateInterval)s])
)
||| % $._config,
},

The resulting is used in at least one dashboard:

On nodes that have virtual links, e.g. bond interfaces this dashboard shows multiples of the actual bandwidth, since virtual and the underlying physical interfaces are aggregated.

I propose to add a rule only for physical interfaces and use that in the dashboard.

The implementation would look very similar to diskSelector or `fsSelector:

fsSelector: 'fstype!=""',

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