Skip to content

Commit

Permalink
Update version of OTel Collector
Browse files Browse the repository at this point in the history
See: open-telemetry/opentelemetry-collector-contrib#7380

Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
  • Loading branch information
gouthamve committed Jan 26, 2022
1 parent 27e822f commit af990fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions remote_write_sender/targets/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
)

const otelDownloadURL = "https://github.com/open-telemetry/opentelemetry-collector/releases/download/v0.37.0/otelcol_{{.OS}}_{{.Arch}}"
const otelDownloadURL = "https://github.com/open-telemetry/opentelemetry-collector-contrib/releases/download/v0.42.0/otelcontribcol_{{.OS}}_{{.Arch}}"

func RunOtelCollector(opts TargetOptions) error {
binary, err := downloadBinary(otelDownloadURL, "")
Expand Down Expand Up @@ -43,5 +43,5 @@ service:
}
defer os.Remove(configFileName)

return runCommand(binary, opts.Timeout, `--metrics-addr=:0`, fmt.Sprintf("--config=%s", configFileName))
return runCommand(binary, opts.Timeout, `--set=service.telemetry.metrics.address=:0`, fmt.Sprintf("--config=%s", configFileName))
}

0 comments on commit af990fb

Please sign in to comment.