signoz fix
This commit is contained in:
parent
04e233216c
commit
a9223fa381
3 changed files with 14 additions and 6 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
<remote_servers>
|
<remote_servers>
|
||||||
<cluster>
|
<cluster>
|
||||||
<shard>
|
<shard>
|
||||||
|
<internal_replication>true</internal_replication>
|
||||||
<replica>
|
<replica>
|
||||||
<host>clickhouse</host>
|
<host>clickhouse</host>
|
||||||
<port>9000</port>
|
<port>9000</port>
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@
|
||||||
<mysql_port>9004</mysql_port>
|
<mysql_port>9004</mysql_port>
|
||||||
<postgresql_port>9005</postgresql_port>
|
<postgresql_port>9005</postgresql_port>
|
||||||
<interserver_http_port>9009</interserver_http_port>
|
<interserver_http_port>9009</interserver_http_port>
|
||||||
|
<listen_host>0.0.0.0</listen_host>
|
||||||
<max_connections>4096</max_connections>
|
<max_connections>4096</max_connections>
|
||||||
<keep_alive_timeout>3</keep_alive_timeout>
|
<keep_alive_timeout>3</keep_alive_timeout>
|
||||||
<max_concurrent_queries>100</max_concurrent_queries>
|
<max_concurrent_queries>100</max_concurrent_queries>
|
||||||
|
|
@ -35,6 +36,10 @@
|
||||||
<default_profile>default</default_profile>
|
<default_profile>default</default_profile>
|
||||||
<default_database>default</default_database>
|
<default_database>default</default_database>
|
||||||
<custom_settings_prefixes></custom_settings_prefixes>
|
<custom_settings_prefixes></custom_settings_prefixes>
|
||||||
|
<macros>
|
||||||
|
<shard>01</shard>
|
||||||
|
<replica>signoz01-01-1</replica>
|
||||||
|
</macros>
|
||||||
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
|
<builtin_dictionaries_reload_interval>3600</builtin_dictionaries_reload_interval>
|
||||||
<max_session_timeout>3600</max_session_timeout>
|
<max_session_timeout>3600</max_session_timeout>
|
||||||
<default_session_timeout>60</default_session_timeout>
|
<default_session_timeout>60</default_session_timeout>
|
||||||
|
|
|
||||||
|
|
@ -37,14 +37,15 @@ services:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
version="v0.0.1"
|
version="v0.0.1"
|
||||||
node_os=$(uname -s | tr '[:upper:]' '[:lower:]')
|
# Hardcode linux/amd64 for Unraid x86_64 (uname may be unavailable in slim image)
|
||||||
node_arch=$(uname -m | sed s/aarch64/arm64/ | sed s/x86_64/amd64/)
|
node_os="linux"
|
||||||
|
node_arch="amd64"
|
||||||
echo "Fetching histogram-binary for ${node_os}/${node_arch}"
|
echo "Fetching histogram-binary for ${node_os}/${node_arch}"
|
||||||
cd /tmp
|
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"
|
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
|
tar -xvzf histogram-quantile.tar.gz 2>/dev/null || true
|
||||||
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
|
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile 2>/dev/null || true
|
||||||
echo "Done."
|
echo "Done (non-critical if download failed — migrator will handle it)."
|
||||||
volumes:
|
volumes:
|
||||||
- ./clickhouse/user_scripts:/var/lib/clickhouse/user_scripts
|
- ./clickhouse/user_scripts:/var/lib/clickhouse/user_scripts
|
||||||
networks:
|
networks:
|
||||||
|
|
@ -184,6 +185,7 @@ services:
|
||||||
command:
|
command:
|
||||||
- -c
|
- -c
|
||||||
- |
|
- |
|
||||||
|
echo "Waiting 30s for ClickHouse cluster to stabilize..." && sleep 30 &&
|
||||||
/signoz-otel-collector migrate bootstrap &&
|
/signoz-otel-collector migrate bootstrap &&
|
||||||
/signoz-otel-collector migrate sync up &&
|
/signoz-otel-collector migrate sync up &&
|
||||||
/signoz-otel-collector migrate async up
|
/signoz-otel-collector migrate async up
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue