Skip to content

Commit

Permalink
Deprecate statsd monitor, use statsd receiver (#5513)
Browse files Browse the repository at this point in the history
* Deprecate statsd monitor, use statsd receiver

* Update CHANGELOG.md
  • Loading branch information
atoulme authored Oct 17, 2024
1 parent f74c8c4 commit 37e12cd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
- (Splunk) Deprecate the heroku observer. Use the [resource detection observer with heroku detector](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/processor/resourcedetectionprocessor#heroku) instead. ([#5496](https://github.com/signalfx/splunk-otel-collector/pull/5496))
- (Splunk) Deprecate mongodb atlas monitor. [Please use the mongodbatlasreceiver instead](https://docs.splunk.com/observability/en/gdi/opentelemetry/components/mongodb-atlas-receiver.html) ([#](https://github.com/signalfx/splunk-otel-collector/pull/))
- (Splunk) Deprecate python-monitor monitor ([#5501](https://github.com/signalfx/splunk-otel-collector/pull/5501))
- (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))

## v0.111.0

Expand Down
3 changes: 3 additions & 0 deletions internal/signalfx-agent/pkg/monitors/statsd/metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
monitors:
- dimensions:
doc: |2
The statsd monitor is deprecated and will be removed in a future release.
Use the statsd receiver instead.
This monitor will receive and aggergate Statsd metrics and convert them to
data points. It listens on a configured address and port in order to
receive the statsd metrics. Note that this monitor does not support statsd
Expand Down
2 changes: 1 addition & 1 deletion internal/signalfx-agent/pkg/monitors/statsd/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ type Monitor struct {
// Configure the monitor and kick off volume metric syncing
func (m *Monitor) Configure(conf *Config) error {
m.logger = utils.NewThrottledLogger(log.WithFields(log.Fields{"monitorType": monitorMetadata.MonitorType, "monitorID": conf.MonitorID}), 30*time.Second)

m.logger.Warn("[NOTICE] The statsd monitor is deprecated and will be removed in a future release. Use the statsd receiver instead.")
var ctx context.Context
ctx, m.cancel = context.WithCancel(context.Background())

Expand Down

0 comments on commit 37e12cd

Please sign in to comment.