aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCalle Pettersson <carlpett@users.noreply.github.com>2017-09-28 15:06:26 +0200
committerJohannes 'fish' Ziemke <github@freigeist.org>2017-09-28 15:06:26 +0200
commit859a825bb84bf4fb911fcba445d410965945f088 (patch)
tree0726b08cf03c790bff3a34a085cecc01e3b927e2 /README.md
parent3762191e66e309106e930ab11f9c080fb4428001 (diff)
downloadprometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.tar.bz2
prometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.tar.xz
prometheus_node_collector-859a825bb84bf4fb911fcba445d410965945f088.zip
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
Diffstat (limited to 'README.md')
-rw-r--r--README.md7
1 files changed, 4 insertions, 3 deletions
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
16There is varying support for collectors on each operating system. The tables 16There is varying support for collectors on each operating system. The tables
17below list all existing collectors and the supported systems. 17below list all existing collectors and the supported systems.
18 18
19Which collectors are used is controlled by the `--collectors.enabled` flag. 19Collectors are enabled by providing a `--collector.<name>` flag.
20Collectors that are enabled by default can be disabled by providing a `--no-collector.<name>` flag.
20 21
21### Enabled by default 22### Enabled by default
22 23
@@ -137,8 +138,8 @@ docker run -d -p 9100:9100 \
137 -v "/:/rootfs:ro" \ 138 -v "/:/rootfs:ro" \
138 --net="host" \ 139 --net="host" \
139 quay.io/prometheus/node-exporter \ 140 quay.io/prometheus/node-exporter \
140 --collector.procfs /host/proc \ 141 --path.procfs /host/proc \
141 --collector.sysfs /host/sys \ 142 --path.sysfs /host/sys \
142 --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)" 143 --collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
143``` 144```
144 145