From 576c3bf918b74f4661422d567f7e7eab35a8d042 Mon Sep 17 00:00:00 2001 From: Ramon Smits Date: Thu, 14 Jan 2021 17:44:22 +0100 Subject: [PATCH] Example - Using [defaults] with `--collectors.enabled` argument Signed-off-by: Ramon Smits --- README.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7d0bd5f5..c130a1b8 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ Flag | Description | Default value `--telemetry.addr` | host:port for exporter. | `:9182` `--telemetry.path` | URL path for surfacing collected metrics. | `/metrics` `--telemetry.max-requests` | Maximum number of concurrent requests. 0 to disable. | `5` -`--collectors.enabled` | Comma-separated list of collectors to use. Use `[defaults]` as a placeholder for all the collectors enabled by default." | `[defaults]` +`--collectors.enabled` | Comma-separated list of collectors to use. Use `[defaults]` as a placeholder which gets expanded containing all the collectors enabled by default." | `[defaults]` `--collectors.print` | If true, print available collectors and exit. | `--scrape.timeout-margin` | Seconds to subtract from the timeout allowed by the client. Tune to allow for overhead or high loads. | `0.5` @@ -137,6 +137,14 @@ The prometheus metrics will be exposed on [localhost:9182](http://localhost:9182 When there are multiple processes with the same name, WMI represents those after the first instance as `process-name#index`. So to get them all, rather than just the first one, the [regular expression](https://en.wikipedia.org/wiki/Regular_expression) must use `.+`. See [process](docs/collector.process.md) for more information. +### Using [defaults] with `--collectors.enabled` argument + +Using `[defaults]` with `--collectors.enabled` argument which gets expanded with all default collectors. + + .\windows_exporter.exe --collectors.enabled "[defaults],process,container" + +This enables the additional process and container collectors on top of the defaults. + ### Using a configuration file YAML configuration files can be specified with the `--config.file` flag. E.G. `.\windows_exporter.exe --config.file=config.yml`