Skip to content

collector/pcidevice: add optional PCI class include filter - #3858

Open
itsb wants to merge 1 commit into
prometheus:masterfrom
itsb:upstream-pcidevice-class-include
Open

itsb wants to merge 1 commit into
prometheus:masterfrom
itsb:upstream-pcidevice-class-include

Conversation

@itsb

@itsb itsb commented Oct 16, 2026

Copy link
Copy Markdown

Add an optional --collector.pcidevice.class-include regex to limit exported PCI metrics by class. This helps keep metric volume manageable on servers with large PCI buses when only certain device classes are relevant.

The default remains unfiltered. The regex is validated at initialization and applies to all per-device PCI metrics; sysfs enumeration is unchanged. Includes documentation and regression tests.

Tested on Linux: focused race tests, make test, make unused, go vet ./..., and make test-e2e.

cc @SuperQ

Signed-off-by: itsb <itsb@users.noreply.github.com>
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