From 8680524491c5291e525734d9182b1f80f8814052 Mon Sep 17 00:00:00 2001 From: dmachard <5562930+dmachard@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:29:57 +0200 Subject: [PATCH 1/2] disable global telemetry by default default channel buffer size up to 8192 --- config.yml | 2 +- pkgconfig/global.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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/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"` From f5b67ec74e4e19c2f29fc71ef49a2f8dac47b3a6 Mon Sep 17 00:00:00 2001 From: dmachard <5562930+dmachard@users.noreply.github.com> Date: Wed, 9 Oct 2024 18:33:58 +0200 Subject: [PATCH 2/2] update docs --- docs/configuration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"