Skip to content

Commit

Permalink
standardize flag name as lowercase
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Castro <ccastro@newrelic.com>
  • Loading branch information
carlossscastro authored and nadiamoe committed Jul 1, 2021
1 parent 8cf9c6f commit 4b219bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion collector/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
"WQL 'where' clause to use in WMI metrics query. Limits the response to the services you specify and reduces the size of the response.",
).Default("").String()
useAPI = kingpin.Flag(
"collector.service.useAPI",
"collector.service.use-api",
"Use API calls to collect service data instead of WMI. Flag 'collector.service.services-where' won't be effective.",
).Default("false").Bool()
)
Expand Down
2 changes: 1 addition & 1 deletion docs/collector.service.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Example: `--collector.service.services-where="Name='windows_exporter'"`

Example config win_exporter.yml for multiple services: `services-where: Name='SQLServer' OR Name='Couchbase' OR Name='Spooler' OR Name='ActiveMQ'`

### `--collector.service.useAPI`
### `--collector.service.use-api`

Uses API calls instead of WMI for performance optimization. **Note** the previous flag (`--collector.service.services-where`) won't have any effect on this mode.

Expand Down

0 comments on commit 4b219bc

Please sign in to comment.