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 <[email protected]>
  • Loading branch information
gouthamve committed Jan 25, 2022
1 parent 27e822f commit a0b8338
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 a0b8338

Please sign in to comment.