diff --git a/config.yml b/config.yml index ec7ed8c4..3cc25714 100644 --- a/config.yml +++ b/config.yml @@ -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" diff --git a/docs/configuration.md b/docs/configuration.md index a51d4f9e..16852646 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -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 @@ -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" diff --git a/pkgconfig/global.go b/pkgconfig/global.go index e6df7010..4fcb2c8a 100644 --- a/pkgconfig/global.go +++ b/pkgconfig/global.go @@ -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"`