Skip to content

Commit 4a8855d

Browse files
committed
feat(stacks): add prometheus pushgateway
1 parent 9068052 commit 4a8855d

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
@@ -271,6 +271,12 @@
271271
"owner": "prometheus",
272272
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
273273
},
274+
"pushgateway": {
275+
"name": "pushgateway",
276+
"type": "github",
277+
"owner": "prometheus",
278+
"match": "^v[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}$",
279+
},
274280
"node_exporter": {
275281
"name": "node_exporter",
276282
"type": "github",

stacks/pushgateway/build.sh

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/prometheus/pushgateway/releases/download/v${STACK_VERSION}/pushgateway-${STACK_VERSION}.linux-${OS_ARCH}.tar.gz | tar -xvz
10+
11+
BIN_DIR="${DATA_DIR}"/bin
12+
mkdir -p "${BIN_DIR}"
13+
mv ./pushgateway-${STACK_VERSION}.linux-${OS_ARCH}/pushgateway "${BIN_DIR}"
14+
rm -rf ./pushgateway-${STACK_VERSION}.linux-${OS_ARCH}
15+
#upx
16+
upx --lzma --best "${BIN_DIR}"/*
17+
}
18+
19+
# call build stack
20+
build-stack "${1}"

0 commit comments

Comments
 (0)