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

prometheus-node-expoter-lua: Add optout for metrics of unused interfaces #25241

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

markalex2209
Copy link

Maintainer: @champtar
Compile tested: mips/MediaTek MT7621, Xiaomi Redmi Router AC2100, OpenWrt 23.05.0
Run tested: mips/MediaTek MT7621, Xiaomi Redmi Router AC2100, OpenWrt 23.05.0 (run with enabled and disable opt-out, checked absence of impact on scrape duration)

Description:
Added option skip_unused_interfaces to configuration of prometheus-node-expoter-lua. By default disabled.
When enabled netdev.lua collector skips interfaces with all counters at 0.

Signed-off-by: Alexey Markouski <markalex2209@gmail.com>
@markalex2209
Copy link
Author

It's an alternative solution to issue #22946.

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

Successfully merging this pull request may close these issues.

1 participant