Skip to content

Commit

Permalink
docs: remove old service.services-where CLI frag from docs (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored Sep 20, 2024
1 parent 2635e5d commit 9bea340
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ The prometheus metrics will be exposed on [localhost:9182](http://localhost:9182

### Enable only service collector and specify a custom query

.\windows_exporter.exe --collectors.enabled "service" --collector.service.services-where "Name='windows_exporter'"
.\windows_exporter.exe --collectors.enabled "service" --collector.service.include="windows_exporter"

### Enable only process collector and specify a custom query

Expand Down Expand Up @@ -222,7 +222,7 @@ collectors:
enabled: cpu,net,service
collector:
service:
services-where: "Name='windows_exporter'"
include: windows_exporter
log:
level: warn
```
Expand Down
4 changes: 2 additions & 2 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ collectors:
enabled: cpu,cpu_info,exchange,iis,logical_disk,logon,memory,net,os,process,remote_fx,service,system,tcp,time,terminal_services,textfile
collector:
service:
services-where: "Name='windows_exporter'"
include: "windows_exporter"
log:
level: warn
level: warn
2 changes: 1 addition & 1 deletion docs/example_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ collectors:
enabled: cpu,cs,logical_disk,net,os,service,system
collector:
service:
services-where: Name='windows_exporter'
include: "windows_exporter"
scheduled_task:
include: /Microsoft/.+
log:
Expand Down
4 changes: 2 additions & 2 deletions kubernetes/windows-exporter-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
command: ["powershell"]
args: ["New-NetFirewallRule", "-DisplayName", "'windows-exporter'", "-Direction", "inbound", "-Profile", "Any", "-Action", "Allow", "-LocalPort", "9182", "-Protocol", "TCP"]
containers:
- args:
- args:
- --config.file=%CONTAINER_SANDBOX_MOUNT_POINT%/config.yml
name: windows-exporter
image: ghcr.io/prometheus-community/windows-exporter:latest
Expand Down Expand Up @@ -65,4 +65,4 @@ data:
enabled: '[defaults],container'
collector:
service:
services-where: "Name='containerd' or Name='kubelet'"
include: "containerd|kubelet"

0 comments on commit 9bea340

Please sign in to comment.