diff --git a/docker/signoz/clickhouse/config.d/cluster.xml b/docker/signoz/clickhouse/config.d/cluster.xml index 5d785ac..c420538 100644 --- a/docker/signoz/clickhouse/config.d/cluster.xml +++ b/docker/signoz/clickhouse/config.d/cluster.xml @@ -9,6 +9,7 @@ + true clickhouse 9000 diff --git a/docker/signoz/clickhouse/config.xml b/docker/signoz/clickhouse/config.xml index 5740efe..ef79109 100644 --- a/docker/signoz/clickhouse/config.xml +++ b/docker/signoz/clickhouse/config.xml @@ -13,6 +13,7 @@ 9004 9005 9009 + 0.0.0.0 4096 3 100 @@ -35,6 +36,10 @@ default default + + 01 + signoz01-01-1 + 3600 3600 60 diff --git a/docker/signoz/compose.yaml b/docker/signoz/compose.yaml index a675ba3..05eca3d 100644 --- a/docker/signoz/compose.yaml +++ b/docker/signoz/compose.yaml @@ -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