Skip to content

panic: device-exclude & device-include are mutually exclusive #3590

Description

@vvxvv

When I try to use the --collector.diskstats.device-include option, I get the following error:

panic: Couldn't create metrics handler: couldn't create collector: failed to parse device filter flags: device-exclude & device-include are mutually exclusive

goroutine 1 [running]:
main.newHandler(0x1, 0x28, 0xc0002903b0)
/app/node_exporter.go:70 +0x274
main.main()
/app/node_exporter.go:224 +0xfae

Command to reproduce:

docker run --rm --net host quay.io/prometheus/node-exporter:v1.10.2 --collector.diskstats --collector.diskstats.device-include=^sd.$

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions