Replace --collectors.enabled with per-collector flags (#640)
* Move NodeCollector into package collector * Refactor collector enabling * Update README with new collector enabled flags * Fix out-of-date inline flag reference syntax * Use new flags in end-to-end tests * Add flag to disable all default collectors * Track if a flag has been set explicitly * Add --collectors.disable-defaults to README * Revert disable-defaults flag * Shorten flags * Fixup timex collector registration * Fix end-to-end tests * Change procfs and sysfs path flags * Fix review comments
This commit is contained in:
parent
3762191e66
commit
859a825bb8
58 changed files with 410 additions and 406 deletions
|
|
@ -16,7 +16,8 @@ The [WMI exporter](https://github.com/martinlindhe/wmi_exporter) is recommended
|
|||
There is varying support for collectors on each operating system. The tables
|
||||
below list all existing collectors and the supported systems.
|
||||
|
||||
Which collectors are used is controlled by the `--collectors.enabled` flag.
|
||||
Collectors are enabled by providing a `--collector.<name>` flag.
|
||||
Collectors that are enabled by default can be disabled by providing a `--no-collector.<name>` flag.
|
||||
|
||||
### Enabled by default
|
||||
|
||||
|
|
@ -137,8 +138,8 @@ docker run -d -p 9100:9100 \
|
|||
-v "/:/rootfs:ro" \
|
||||
--net="host" \
|
||||
quay.io/prometheus/node-exporter \
|
||||
--collector.procfs /host/proc \
|
||||
--collector.sysfs /host/sys \
|
||||
--path.procfs /host/proc \
|
||||
--path.sysfs /host/sys \
|
||||
--collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue