Skip to content

Collect[] parameter not filtering metric collectors #847

Closed

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.

Activity

  1. SuperQ commented on Mar 7, 2018

    @SuperQ
    Member

    The collect param is not supported in 0.15.2. It has not been released yet.

  2. benclapp commented on Mar 8, 2018

    @benclapp
    Author

    That explains why it wasn't working. We're eagerly awaiting the release!

  3. SuperQ commented on Mar 8, 2018

    @SuperQ
    Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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