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

qdisk-linux: Add exclude and include flags for interface name #2345

Closed
wants to merge 1 commit into from

Conversation

binjip978
Copy link
Contributor

Signed-off-by: binjip978 pdp.eleven11@gmail.com

fixes #2246

@SuperQ
Copy link
Member

SuperQ commented Apr 10, 2022

Rather than implement the filtering manually, I would recommend using the newNetDevFilter() helper. See #2165 for an example.

Signed-off-by: binjip978 <pdp.eleven11@gmail.com>
@binjip978
Copy link
Contributor Author

thx for suggestion @SuperQ , updated to netDevFilter

Copy link
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks!

Copy link
Member

@SuperQ SuperQ left a 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),
Copy link
Member

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

@discordianfish
Copy link
Member

Closed in favor of #2432 - Thanks @binjip978!

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.

Feature request: add --collector.qdisc.device-exclude option
3 participants