You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Collect[] parameter not filtering metric collectors #847
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
SuperQ commentedon Mar 7, 2018
The collect param is not supported in 0.15.2. It has not been released yet.
benclapp commentedon Mar 8, 2018
That explains why it wasn't working. We're eagerly awaiting the release!
SuperQ commentedon Mar 8, 2018
go.mod: bump procfs to pick up linux build tag fix (prometheus#847)
go.mod: bump procfs to pick up linux build tag fix (prometheus#847)
go.mod: bump procfs to pick up linux build tag fix (prometheus#847)
collector: add tainted collector for /proc/sys/kernel/tainted (#3745)