Skip to content

Commit

Permalink
disable global telemetry by default + channel buffer size up to 8192 (#…
Browse files Browse the repository at this point in the history
…840)

* disable global telemetry by default
* default channel buffer size up to 8192
  • Loading branch information
dmachard authored Oct 9, 2024
1 parent 91f1e2f commit 4fad268
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ global:
interval-monitor: 10
buffer-size: 4096
telemetry:
enabled: true
enabled: false
web-path: "/metrics"
web-listen: ":9165"
prometheus-prefix: "dnscollector_exporter"
Expand Down
4 changes: 2 additions & 2 deletions docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ The `buffer-size` settings enable to adjust the size of the buffer before discar
global:
worker:
interval-monitor: 10
buffer-size: 4096
buffer-size: 8192
```

## Custom text format
Expand Down Expand Up @@ -182,7 +182,7 @@ Enable and configure telemetry
```yaml
global:
telemetry:
enabled: true
enabled: false
web-path: "/metrics"
web-listen: ":9165"
prometheus-prefix: "dnscollector_exporter"
Expand Down
4 changes: 2 additions & 2 deletions pkgconfig/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ type ConfigGlobal struct {
PidFile string `yaml:"pid-file" default:""`
Worker struct {
InternalMonitor int `yaml:"interval-monitor" default:"10"`
ChannelBufferSize int `yaml:"buffer-size" default:"4096"`
ChannelBufferSize int `yaml:"buffer-size" default:"8192"`
} `yaml:"worker"`
Telemetry struct {
Enabled bool `yaml:"enabled" default:"true"`
Enabled bool `yaml:"enabled" default:"false"`
WebPath string `yaml:"web-path" default:"/metrics"`
WebListen string `yaml:"web-listen" default:":9165"`
PromPrefix string `yaml:"prometheus-prefix" default:"dnscollector_exporter"`
Expand Down

0 comments on commit 4fad268

Please sign in to comment.