Skip to content

Collect[] parameter not filtering metric collectors #847

Description

@benclapp

Host operating system: output of uname -a

Linux 4.4.0-116-generic #140-Ubuntu SMP x86_64 x86_64 x86_64 GNU/Linux

node_exporter version: output of node_exporter --version

node_exporter, version 0.15.2 (branch: HEAD, revision: 98bc649)
build user: root@d5c4792c921f
build date: 20171205-14:50:53
go version: go1.9.2

node_exporter command line flags

No flags. Just defaults

Are you running node_exporter in Docker?

No, bare metal. Although the issue occurs in Docker too.

What did you do that produced an error?

Tried to use the collect[] parameter to filter enabled collectors. Example command:

curl -g -X GET http://localhost:9100/metrics?collect[]=cpu

What did you expect to see?

Only cpu metrics returned.

What did you see instead?

All metrics, appears nothing was filtered out at all.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions