Skip to content

Commit 5131038

Browse files
Install otel-collector-contrib
1 parent c139809 commit 5131038

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

common/setup_monitoring.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ cp /tmp/postgres_exporter-0.15.0.linux-${PROM_ARCH}/postgres_exporter /usr/bin/p
3939
chown ubi_monitoring:ubi_monitoring /usr/bin/postgres_exporter
4040
chmod 100 /usr/bin/postgres_exporter
4141

42+
# Install otelcol-contrib
43+
OTEL_VERSION="0.146.0"
44+
echo "[setup_monitoring.sh] Downloading otelcol-contrib v${OTEL_VERSION}..."
45+
curl -L -o otelcol-contrib.deb "https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v${OTEL_VERSION}/otelcol-contrib_${OTEL_VERSION}_linux_${PROM_ARCH}.deb"
46+
dpkg -i otelcol-contrib.deb
47+
rm -f otelcol-contrib.deb
48+
apt-get install -y acl
49+
4250
echo "=== [setup_monitoring.sh] Installing systemd service files ==="
4351

4452
# Copy systemd unit files

0 commit comments

Comments
 (0)