-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
qdisk-linux: Add exclude and include flags for interface name #2345
Conversation
Rather than implement the filtering manually, I would recommend using the |
Signed-off-by: binjip978 <pdp.eleven11@gmail.com>
e9afc37
to
967d029
Compare
thx for suggestion @SuperQ , updated to netDevFilter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This branch is behind node_exporter HEAD. Please update it.
@@ -84,7 +92,8 @@ func NewQdiscStatCollector(logger log.Logger) (Collector, error) { | |||
"Number of bytes currently in queue to be sent.", | |||
[]string{"device", "kind"}, nil, | |||
), prometheus.GaugeValue}, | |||
logger: logger, | |||
logger: logger, | |||
deviceFilter: newNetDevFilter(*collectorQdiskDeviceExclude, *collectorQdiskDeviceExclude), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be rebased in order to pick up the new generic newDeviceFilter()
function. newNetDevFilter()
doesn't exist anymore
Closed in favor of #2432 - Thanks @binjip978! |
Signed-off-by: binjip978 pdp.eleven11@gmail.com
fixes #2246