From 859a825bb84bf4fb911fcba445d410965945f088 Mon Sep 17 00:00:00 2001 From: Calle Pettersson Date: Thu, 28 Sep 2017 15:06:26 +0200 Subject: 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 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index b63a0d1..f5ced0e 100644 --- a/README.md +++ b/README.md @@ -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.` flag. +Collectors that are enabled by default can be disabled by providing a `--no-collector.` 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)($|/)" ``` -- cgit v1.2.3