Skip to content

Commit

Permalink
deprecate telegraf/exec (#5171)
Browse files Browse the repository at this point in the history
* deprecate telegraf/exec

* Update CHANGELOG.md

Co-authored-by: Aunsh Chaudhari <aunshc@splunk.com>

---------

Co-authored-by: Aunsh Chaudhari <aunshc@splunk.com>
  • Loading branch information
atoulme and aunshc committed Aug 4, 2024
1 parent 60cce8e commit bc56b01
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@

- (Splunk) Deprecate the collectd/health-checker plugin ([#5167](https://github.com/signalfx/splunk-otel-collector/pull/5167))

### 🚩Deprecations 🚩

- (Splunk) Deprecate the telegraf/exec monitor ([#5171](https://github.com/signalfx/splunk-otel-collector/pull/5171))

## v0.105.0

This Splunk OpenTelemetry Collector release includes changes from the [opentelemetry-collector v0.105.0](https://github.com/open-telemetry/opentelemetry-collector/releases/tag/v0.105.0) and the [opentelemetry-collector-contrib v0.105.0](https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/tag/v0.105.0) releases where appropriate.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ var factory = telegrafInputs.Inputs["exec"]
// Configure the monitor and kick off metric syncing
func (m *Monitor) Configure(conf *Config) (err error) {
m.logger = logger.WithField("monitorID", conf.MonitorID)
m.logger.Warn("[NOTICE] The telegraf/exec monitor is deprecated and will be removed in a future release.")

m.plugin = factory().(*telegrafPlugin.Exec)

cumulativeCounterSet := utils.StringSliceToMap(conf.SignalFxCumulativeMetrics)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
monitors:
- dimensions:
doc: |
The telegraf/exec monitor is deprecated and will be removed in a future release.
This is an embedded form of the [Telegraf Exec
plugin](https://github.com/influxdata/telegraf/tree/master/plugins/inputs/exec).
The plugin-specific config options are the same as that plugin, but parser
Expand Down

0 comments on commit bc56b01

Please sign in to comment.