Skip to content

Commit

Permalink
textfile: disable collector by default (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored Aug 11, 2024
1 parent e478843 commit 7bb16d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Name | Description | Enabled by default
[time](docs/collector.time.md) | Windows Time Service |
[thermalzone](docs/collector.thermalzone.md) | Thermal information
[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](docs/collector.vmware.md) | Performance counters installed by the Vmware Guest agent |

Expand Down
2 changes: 1 addition & 1 deletion docs/example_config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# Note this is not an exhaustive list of all configuration values
collectors:
enabled: cpu,cs,logical_disk,net,os,service,system,textfile
enabled: cpu,cs,logical_disk,net,os,service,system
collector:
service:
services-where: Name='windows_exporter'
Expand Down
2 changes: 1 addition & 1 deletion pkg/types/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
package types

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]"
Namespace = "windows"
)
2 changes: 1 addition & 1 deletion tools/end-to-end-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $skip_re = "^(go_|windows_exporter_build_info|windows_exporter_collector_duratio
$exporter_proc = Start-Process `
-PassThru `
-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 `
-RedirectStandardOutput "$($temp_dir)/windows_exporter.log" `
-RedirectStandardError "$($temp_dir)/windows_exporter_error.log"
Expand Down

0 comments on commit 7bb16d2

Please sign in to comment.