opentelemetry-collector-releases icon indicating copy to clipboard operation
opentelemetry-collector-releases copied to clipboard

Install collector script

Open svrnm opened this issue 2 years ago • 4 comments

Via https://github.com/open-telemetry/opentelemetry.io/pull/1333, based on @chalin's suggestion to have this hosted here:

While updating the collector getting started, I played around with the different ways of getting a collector up and running. Pulling and running it through a docker container is definitely the most convenient way but it comes with plenty of overhead and sometimes I just want to have a collector running on my laptop. This requires a few clicks right now (and you need to read closely because arm64 and amd64 are hard to distinguish), so I thought, why not have a similar install experience as brew or nvm:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/open-telemetry/opentelemetry-collector-releases/HEAD/install/otel-contrib.sh)"
./otelcol --config config.yml

The install.sh looks like the following: https://raw.githubusercontent.com/open-telemetry/opentelemetry.io/6e5511b10d6ae91c28691dbd17fad9e6a96a123f/content/en/install/otelcol-contrib.sh

or in a video:

https://user-images.githubusercontent.com/1519757/169013228-6fbb3835-80ba-4972-886a-1a645c78908b.mp4

what do you think, something OTel needs? :-)

svrnm avatar May 18 '22 10:05 svrnm

Call me old-fashioned, but I shiver every time I see bash with curl. I personally prefer to get the RPM which would keep my binary up to date (like for kubectl or minikube). When that's not available, a simple RPM is what I prefer. After that, I get the binary and manage it via "alternatives".

But I do understand that some people prefer bash with curl, so, I wouldn't be against it if we have enough people interested in using and maintaining this script.

jpkrohling avatar Jul 04 '22 20:07 jpkrohling

I agree that from a security perspective this requires a lot of trust by the end user in that URL being benign. Although the goal of this script is serving people that get started with OpenTelemetry and just want to get the touch&feel of the collector quickly. In a production environment it's definitely not the right tool.

svrnm avatar Jul 05 '22 10:07 svrnm

@jpkrohling, I just opened this PR for docs, which kind of competes with the script, so I am ok with closing this, if there's no bigger interest.

svrnm avatar Jul 05 '22 16:07 svrnm

Let's leave this open for, say, a couple of weeks to see what other folks say. If there's not enough interest, we can deem the your other contribution as sufficient.

jpkrohling avatar Jul 06 '22 14:07 jpkrohling

Doesn't look like there's a lot of interest, closing.

svrnm avatar Sep 19 '22 17:09 svrnm