Skip to content

Commit

Permalink
feat: update telegraf version
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Rosiek <drosiek@sumologic.com>
  • Loading branch information
Dominik Rosiek committed Jan 18, 2024
1 parent ccba74b commit 2e218a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion otelcolbuilder/.otelcol-builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ excludes:
replaces:
# ----------------------------------------------------------------------------
# Needed for telegrafreceiver
- github.com/influxdata/telegraf => github.com/SumoLogic/telegraf v1.24.3-sumo-5
- github.com/influxdata/telegraf => github.com/SumoLogic/telegraf v1.28.3-sumo-3

# Some of the upstream packages have this replaced
# See https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/16423
Expand Down
5 changes: 1 addition & 4 deletions pkg/receiver/telegrafreceiver/factory.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,7 @@ func createMetricsReceiver(
if err := tConfig.LoadConfigData([]byte(tCfg.AgentConfig)); err != nil {
return nil, fmt.Errorf("failed loading telegraf agent config: %w", err)
}
tAgent, err := telegrafagent.NewAgent(tConfig)
if err != nil {
return nil, fmt.Errorf("failed creating telegraf agent: %w", err)
}
tAgent := telegrafagent.NewAgent(tConfig)

return &telegrafreceiver{
agent: tAgent,
Expand Down

0 comments on commit 2e218a7

Please sign in to comment.