Skip to content

Commit e14f73a

Browse files
committed
chore(opentelemetry-collector): add opentelemetry-collector
1 parent e4af546 commit e14f73a

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,12 @@
380380
"owner": "opensearch-project",
381381
"match": "^[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
382382
},
383+
"opentelemetry-collector": {
384+
"name": "opentelemetry-collector",
385+
"type": "github",
386+
"owner": "open-telemetry",
387+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
388+
},
383389
"seaweedfs": {
384390
"name": "seaweedfs",
385391
"type": "github",
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/bin/bash
2+
3+
# Load stack utils
4+
. /usr/bin/stack-utils
5+
6+
# Implement build function
7+
function build() {
8+
generate-stack-path
9+
curl -sSL https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v${STACK_VERSION}/otelcol-contrib_${STACK_VERSION}_linux_${OS_ARCH}.tar.gz | tar -xvz
10+
11+
BIN_DIR="${DATA_DIR}"/bin
12+
mkdir -p "${BIN_DIR}"
13+
mv otelcol-contrib "${BIN_DIR}"/otelcol
14+
rm -rf README.md
15+
#upx
16+
upx --lzma --best "${BIN_DIR}"/*
17+
}
18+
19+
# call build stack
20+
build-stack "${1}"

0 commit comments

Comments
 (0)