Collect services using windows api

Signed-off-by: Carlos Castro <ccastro@newrelic.com>
This commit is contained in:
Carlos Castro
2021-08-23 16:19:40 +01:00
parent 1b96bb6d08
commit a9ac2d4672
2 changed files with 124 additions and 11 deletions

View File

@@ -18,6 +18,10 @@ 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.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.
## Metrics
Name | Description | Type | Labels
@@ -50,7 +54,7 @@ A service can have the following start modes:
- `manual`
- `disabled`
### Status
### Status (not available in API mode)
A service can have any of the following statuses:
- `ok`