From 088d9f3f1e7fe3a4496147951279985a6cbced5f Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Mon, 28 Oct 2024 16:42:03 -0700 Subject: [PATCH] Deprecate the collectd/statsd monitor (#5542) --- CHANGELOG.md | 1 + .../signalfx-agent/pkg/monitors/collectd/statsd/metadata.yaml | 3 +++ internal/signalfx-agent/pkg/monitors/collectd/statsd/statsd.go | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dfd390ece1..f0c797cdde 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - (Splunk) Deprecate the collectd/nginx monitor. Please use the [nginx receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/receiver/nginxreceiver/) instead. ([#5537](https://github.com/signalfx/splunk-otel-collector/pull/5537)) - (Splunk) Deprecate the collectd/chrony monitor. Please use the [chronyreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/chronyreceiver) instead. ([#5536](https://github.com/signalfx/splunk-otel-collector/pull/5536)) - (Splunk) Deprecate the ecs-metadata monitor ([#5541](https://github.com/signalfx/splunk-otel-collector/pull/5541)) +- (Splunk) Deprecate the collectd/statsd monitor. Please use the [statsdreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/statsdreceiver) instead. ([#](https://github.com/signalfx/splunk-otel-collector/pull/)) - (Splunk) Deprecate the haproxy monitor. Please use the [haproxyreceiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/haproxyreceiver) instead. ([#5543](https://github.com/signalfx/splunk-otel-collector/pull/5543)) ### 🚀 New components 🚀 diff --git a/internal/signalfx-agent/pkg/monitors/collectd/statsd/metadata.yaml b/internal/signalfx-agent/pkg/monitors/collectd/statsd/metadata.yaml index ff9f7d65fa..a6e37b8b73 100644 --- a/internal/signalfx-agent/pkg/monitors/collectd/statsd/metadata.yaml +++ b/internal/signalfx-agent/pkg/monitors/collectd/statsd/metadata.yaml @@ -1,6 +1,9 @@ monitors: - dimensions: doc: | + The statsd monitor is deprecated and will be removed in a future release. + Use the statsd receiver instead. + The StatsD plugin for collectd listens for StatsD events, aggregates them and transmits them according to collectd's configuration. Use this plugin to send data from StatsD to SignalFx [statsd diff --git a/internal/signalfx-agent/pkg/monitors/collectd/statsd/statsd.go b/internal/signalfx-agent/pkg/monitors/collectd/statsd/statsd.go index 0a383d0f95..221e14f587 100644 --- a/internal/signalfx-agent/pkg/monitors/collectd/statsd/statsd.go +++ b/internal/signalfx-agent/pkg/monitors/collectd/statsd/statsd.go @@ -47,5 +47,5 @@ type Monitor struct { // Configure configures and runs the plugin in collectd func (am *Monitor) Configure(conf *Config) error { - return am.SetConfigurationAndRun(conf) + return am.SetConfigurationAndRun(conf, collectd.WithDeprecationWarningLog("statsdreceiver")) }