signoz fix
This commit is contained in:
parent
04e233216c
commit
a9223fa381
3 changed files with 14 additions and 6 deletions
|
|
@ -37,14 +37,15 @@ services:
|
|||
- -c
|
||||
- |
|
||||
version="v0.0.1"
|
||||
node_os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
||||
node_arch=$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)
|
||||
# Hardcode linux/amd64 for Unraid x86_64 (uname may be unavailable in slim image)
|
||||
node_os="linux"
|
||||
node_arch="amd64"
|
||||
echo "Fetching histogram-binary for ${node_os}/${node_arch}"
|
||||
cd /tmp
|
||||
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F${version}/histogram-quantile_${node_os}_${node_arch}.tar.gz"
|
||||
tar -xvzf histogram-quantile.tar.gz
|
||||
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
|
||||
echo "Done."
|
||||
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F${version}/histogram-quantile_${node_os}_${node_arch}.tar.gz" || true
|
||||
tar -xvzf histogram-quantile.tar.gz 2>/dev/null || true
|
||||
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile 2>/dev/null || true
|
||||
echo "Done (non-critical if download failed — migrator will handle it)."
|
||||
volumes:
|
||||
- ./clickhouse/user_scripts:/var/lib/clickhouse/user_scripts
|
||||
networks:
|
||||
|
|
@ -184,6 +185,7 @@ services:
|
|||
command:
|
||||
- -c
|
||||
- |
|
||||
echo "Waiting 30s for ClickHouse cluster to stabilize..." && sleep 30 &&
|
||||
/signoz-otel-collector migrate bootstrap &&
|
||||
/signoz-otel-collector migrate sync up &&
|
||||
/signoz-otel-collector migrate async up
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue