Skip to content

node_exporter : add --collector.disable-defaults flag #868

Description

@Korhm

Hello,

In my current configuration of node_exporter, I set --collector.disable-defaults to only use the collectors I need.
I wanted to avoid listing all defaults collectors with the node_exporter_disabled_collectors parameter because it is a long list, and may change in future updates.

Is it possible to have such configuration parameter ?

As information, my service configure look like :

// ....
ExecStart=/usr/bin/node_exporter \
    --collector.disable-defaults \
    --collector.filesystem \
    --collector.filesystem.mount-points-exclude=^/(sys|proc|dev|host|etc|docker|run|boot)($$|/) \
    --collector.cpu \
    --collector.loadavg \
    --collector.mdadm \
    --collector.meminfo \
    --collector.os \
    --collector.time \
    --collector.uname \
    --collector.stat \
    --collector.textfile \
    --collector.textfile.directory=/prom/textfile_collector \
    --web.listen-address="0.0.0.0:9100"
// ...

Many thanks.

Activity

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