Skip to content

Commit 1353b27

Browse files
committed
chore(stacks): add statsd_exporter
1 parent e475630 commit 1353b27

3 files changed

Lines changed: 25 additions & 32 deletions

File tree

scripts/checker.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@
77
github_headers = {'Authorization': 'token %s' % os.environ.get("GITHUB_TOKEN")}
88

99
repo_info_table = {
10-
"airflow_exporter": {
11-
"name": "airflow_exporter",
12-
"type": "github",
13-
"owner": "EamonZhang",
14-
"match": "^v[2-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
15-
},
1610
"alertmanager": {
1711
"name": "alertmanager",
1812
"type": "github",
@@ -343,6 +337,12 @@
343337
"owner": "seaweedfs",
344338
"match": "^[0-9]{1,}\.[0-9]{1,}$",
345339
},
340+
"statsd_exporter": {
341+
"name": "statsd_exporter",
342+
"type": "github",
343+
"owner": "prometheus",
344+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
345+
},
346346
}
347347

348348

stacks/airflow_exporter/build.sh

Lines changed: 0 additions & 26 deletions
This file was deleted.

stacks/statsd_exporter/build.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
BIN_DIR="${DATA_DIR}"/bin
10+
mkdir -p "${BIN_DIR}"
11+
curl -fsSL -o tmp.tar.gz https://github.com/prometheus/statsd_exporter/releases/download/v${STACK_VERSION}/"${STACK_NAME}-${STACK_VERSION}.linux-${OS_ARCH}".tar.gz
12+
tar -xzf tmp.tar.gz
13+
mv "${STACK_NAME}-${STACK_VERSION}.linux-${OS_ARCH}"/"${STACK_NAME}" "${BIN_DIR}"/"${STACK_NAME}"
14+
chmod +x "${BIN_DIR}"/"${STACK_NAME}"
15+
rm -rf tmp.tar.gz "${STACK_NAME}-${STACK_VERSION}.linux-${OS_ARCH}"
16+
}
17+
18+
# call build stack
19+
build-stack "${1}"

0 commit comments

Comments
 (0)