textfile: disable collector by default (#1560)

This commit is contained in:
Jan-Otto Kröpke 2024-08-11 12:57:14 +02:00 committed by GitHub
parent e478843faa
commit 7bb16d2f5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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 |

View File

@ -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'

View File

@ -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"
) )

View File

@ -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"