diff --git a/README.md b/README.md index 1e8a27e3..245cb46b 100644 --- a/README.md +++ b/README.md @@ -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 @@ -222,7 +222,7 @@ collectors: enabled: cpu,net,service collector: service: - services-where: "Name='windows_exporter'" + include: windows_exporter log: level: warn ``` diff --git a/config.yaml b/config.yaml index f837deff..52083bcd 100644 --- a/config.yaml +++ b/config.yaml @@ -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 \ No newline at end of file + level: warn diff --git a/docs/example_config.yml b/docs/example_config.yml index 7a08a831..4879f463 100644 --- a/docs/example_config.yml +++ b/docs/example_config.yml @@ -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: diff --git a/kubernetes/windows-exporter-daemonset.yaml b/kubernetes/windows-exporter-daemonset.yaml index 548c00da..23aa0bee 100644 --- a/kubernetes/windows-exporter-daemonset.yaml +++ b/kubernetes/windows-exporter-daemonset.yaml @@ -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 @@ -65,4 +65,4 @@ data: enabled: '[defaults],container' collector: service: - services-where: "Name='containerd' or Name='kubelet'" + include: "containerd|kubelet"