diff options
author | Calle Pettersson <carlpett@users.noreply.github.com> | 2017-09-28 15:06:26 +0200 |
---|---|---|
committer | Johannes 'fish' Ziemke <github@freigeist.org> | 2017-09-28 15:06:26 +0200 |
commit | 859a825bb84bf4fb911fcba445d410965945f088 (patch) | |
tree | 0726b08cf03c790bff3a34a085cecc01e3b927e2 /README.md | |
parent | 3762191e66e309106e930ab11f9c080fb4428001 (diff) | |
download | prometheus_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.md | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -16,7 +16,8 @@ The [WMI exporter](https://github.com/martinlindhe/wmi_exporter) is recommended | |||
16 | There is varying support for collectors on each operating system. The tables | 16 | There is varying support for collectors on each operating system. The tables |
17 | below list all existing collectors and the supported systems. | 17 | below list all existing collectors and the supported systems. |
18 | 18 | ||
19 | Which collectors are used is controlled by the `--collectors.enabled` flag. | 19 | Collectors are enabled by providing a `--collector.<name>` flag. |
20 | Collectors 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 | ||