From 77f9386842cf245102c67ad36feb139a2d472ed5 Mon Sep 17 00:00:00 2001 From: Antoine Toulme Date: Mon, 21 Oct 2024 23:14:24 -0700 Subject: [PATCH] Deprecate collectd/mysql monitor --- CHANGELOG.md | 2 ++ .../signalfx-agent/pkg/monitors/collectd/mysql/metadata.yaml | 2 ++ internal/signalfx-agent/pkg/monitors/collectd/mysql/mysql.go | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b1feae1cc9..53a1c27f71 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ - (Splunk) Deprecate windowslegacy monitor ([#5518](https://github.com/signalfx/splunk-otel-collector/pull/5518)) - (Splunk) Deprecate statsd monitor. Use the [statsd receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/statsdreceiver) instead. ([#5513](https://github.com/signalfx/splunk-otel-collector/pull/5513)) - (Splunk) Deprecate the collectd/consul monitor. Please use the statsd or prometheus receiver instead. See https://developer.hashicorp.com/consul/docs/agent/monitor/telemetry for more information. ([#5521](https://github.com/signalfx/splunk-otel-collector/pull/5521)) +- (Splunk) Deprecate collectd/mysql monitor. Use the [mysql receiver](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/mysqlreceiver) instead. ([#5538](https://github.com/signalfx/splunk-otel-collector/pull/5538)) + ## v0.111.0 diff --git a/internal/signalfx-agent/pkg/monitors/collectd/mysql/metadata.yaml b/internal/signalfx-agent/pkg/monitors/collectd/mysql/metadata.yaml index 3e1c11199d..578e1eb711 100644 --- a/internal/signalfx-agent/pkg/monitors/collectd/mysql/metadata.yaml +++ b/internal/signalfx-agent/pkg/monitors/collectd/mysql/metadata.yaml @@ -1,6 +1,8 @@ monitors: - dimensions: doc: | + **The MySQL monitor is deprecated. Please use the mysqlreceiver instead.** + Monitors a MySQL database server using collectd's [MySQL plugin](https://collectd.org/wiki/index.php/Plugin:MySQL). It supports MySQL versions 5.x or later. diff --git a/internal/signalfx-agent/pkg/monitors/collectd/mysql/mysql.go b/internal/signalfx-agent/pkg/monitors/collectd/mysql/mysql.go index 6d59552508..18a5dbb07e 100644 --- a/internal/signalfx-agent/pkg/monitors/collectd/mysql/mysql.go +++ b/internal/signalfx-agent/pkg/monitors/collectd/mysql/mysql.go @@ -70,5 +70,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("mysqlreceiver")) }