textfile: disable collector by default (#1560)
This commit is contained in:
parent
e478843faa
commit
7bb16d2f5b
|
@ -60,7 +60,7 @@ Name | Description | Enabled by default
|
||||||
[time](docs/collector.time.md) | Windows Time Service |
|
[time](docs/collector.time.md) | Windows Time Service |
|
||||||
[thermalzone](docs/collector.thermalzone.md) | Thermal information
|
[thermalzone](docs/collector.thermalzone.md) | Thermal information
|
||||||
[terminal_services](docs/collector.terminal_services.md) | Terminal services (RDS)
|
[terminal_services](docs/collector.terminal_services.md) | Terminal services (RDS)
|
||||||
[textfile](docs/collector.textfile.md) | Read prometheus metrics from a text file | ✓
|
[textfile](docs/collector.textfile.md) | Read prometheus metrics from a text file |
|
||||||
[vmware_blast](docs/collector.vmware_blast.md) | VMware Blast session metrics |
|
[vmware_blast](docs/collector.vmware_blast.md) | VMware Blast session metrics |
|
||||||
[vmware](docs/collector.vmware.md) | Performance counters installed by the Vmware Guest agent |
|
[vmware](docs/collector.vmware.md) | Performance counters installed by the Vmware Guest agent |
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# Note this is not an exhaustive list of all configuration values
|
# Note this is not an exhaustive list of all configuration values
|
||||||
collectors:
|
collectors:
|
||||||
enabled: cpu,cs,logical_disk,net,os,service,system,textfile
|
enabled: cpu,cs,logical_disk,net,os,service,system
|
||||||
collector:
|
collector:
|
||||||
service:
|
service:
|
||||||
services-where: Name='windows_exporter'
|
services-where: Name='windows_exporter'
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
package types
|
package types
|
||||||
|
|
||||||
const (
|
const (
|
||||||
DefaultCollectors = "cpu,cs,logical_disk,physical_disk,net,os,service,system,textfile"
|
DefaultCollectors = "cpu,cs,logical_disk,physical_disk,net,os,service,system"
|
||||||
DefaultCollectorsPlaceholder = "[defaults]"
|
DefaultCollectorsPlaceholder = "[defaults]"
|
||||||
Namespace = "windows"
|
Namespace = "windows"
|
||||||
)
|
)
|
||||||
|
|
|
@ -25,7 +25,7 @@ $skip_re = "^(go_|windows_exporter_build_info|windows_exporter_collector_duratio
|
||||||
$exporter_proc = Start-Process `
|
$exporter_proc = Start-Process `
|
||||||
-PassThru `
|
-PassThru `
|
||||||
-FilePath ..\windows_exporter.exe `
|
-FilePath ..\windows_exporter.exe `
|
||||||
-ArgumentList "--log.level=debug --web.disable-exporter-metrics --collector.textfile.directories=$($textfile_dir)" `
|
-ArgumentList "--log.level=debug --web.disable-exporter-metrics --collectors.enabled=[defaults],textfile --collector.textfile.directories=$($textfile_dir)" `
|
||||||
-WindowStyle Hidden `
|
-WindowStyle Hidden `
|
||||||
-RedirectStandardOutput "$($temp_dir)/windows_exporter.log" `
|
-RedirectStandardOutput "$($temp_dir)/windows_exporter.log" `
|
||||||
-RedirectStandardError "$($temp_dir)/windows_exporter_error.log"
|
-RedirectStandardError "$($temp_dir)/windows_exporter_error.log"
|
||||||
|
|
Loading…
Reference in New Issue