[variables]
main_domain = "${domain}"
jwt_secret = "${password:64}"
[config]
[[config.domains]]
serviceName = "signoz"
port = 8080
host = "${main_domain}"
path = "/"
[[config.domains]]
serviceName = "otel-collector"
port = 4318
host = "${main_domain}"
path = "/"
[config.env]
SIGNOZ_JWT_SECRET = "${jwt_secret}"
[[config.mounts]]
filePath = "/clickhouse/config.xml"
content = """
information
json
/var/log/clickhouse-server/clickhouse-server.log
/var/log/clickhouse-server/clickhouse-server.err.log
1000M
10
8123
9000
9004
9005
9009
4096
3
false
/path/to/ssl_cert_file
/path/to/ssl_key_file
false
/path/to/ssl_ca_cert_file
none
0
-1
-1
false
none
true
true
sslv2,sslv3
true
true
true
sslv2,sslv3
true
RejectCertificateHandler
100
0
10000
0.9
4194304
0
8589934592
5368709120
1000
134217728
10000
/var/lib/clickhouse/
/var/lib/clickhouse/tmp/
`
/var/lib/clickhouse/user_files/
users.xml
/var/lib/clickhouse/access/
default
default
true
false
' | sed -e 's|.*>\(.*\)<.*|\1|')
wget https://github.com/ClickHouse/clickhouse-jdbc-bridge/releases/download/v$PKG_VER/clickhouse-jdbc-bridge_$PKG_VER-1_all.deb
apt install --no-install-recommends -f ./clickhouse-jdbc-bridge_$PKG_VER-1_all.deb
clickhouse-jdbc-bridge &
* [CentOS/RHEL]
export MVN_URL=https://repo1.maven.org/maven2/ru/yandex/clickhouse/clickhouse-jdbc-bridge
export PKG_VER=$(curl -sL $MVN_URL/maven-metadata.xml | grep '' | sed -e 's|.*>\(.*\)<.*|\1|')
wget https://github.com/ClickHouse/clickhouse-jdbc-bridge/releases/download/v$PKG_VER/clickhouse-jdbc-bridge-$PKG_VER-1.noarch.rpm
yum localinstall -y clickhouse-jdbc-bridge-$PKG_VER-1.noarch.rpm
clickhouse-jdbc-bridge &
Please refer to https://github.com/ClickHouse/clickhouse-jdbc-bridge#usage for more information.
]]>
01
example01-01-1
3600
3600
60
/metrics
9363
true
true
true
true
system
toYYYYMM(event_date)
7500
system
toYYYYMM(event_date)
7500
system
toYYYYMM(event_date)
7500
system
toYYYYMM(event_date)
7500
system
toYYYYMM(event_date)
7500
system
7500
1000
system
7000
engine MergeTree
partition by toYYYYMM(finish_date)
order by (finish_date, finish_time_us, trace_id)
system
7500
system
1000
system
toYYYYMM(event_date)
7500
*_dictionary.xml
*function.xml
/var/lib/clickhouse/user_scripts/
/clickhouse/task_queue/ddl
click_cost
any
0
3600
86400
60
max
0
60
3600
300
86400
3600
/var/lib/clickhouse/format_schemas/
hide encrypt/decrypt arguments
((?:aes_)?(?:encrypt|decrypt)(?:_mysql)?)\s*\(\s*(?:'(?:\\'|.)+'|.*?)\s*\)
\1(???)
false
false
https://6f33034cfe684dd7a3ab9875e57b1c8d@o388870.ingest.sentry.io/5226277
268435456
true
"""
[[config.mounts]]
filePath = "/clickhouse/cluster.xml"
content = """
zookeeper-1
2181
clickhouse
9000
"""
[[config.mounts]]
filePath = "/signoz/prometheus.xml"
content = """
# my global config
global:
scrape_interval: 5s # Set the scrape interval to every 15 seconds. Default is every 1 minute.
evaluation_interval: 15s # Evaluate rules every 15 seconds. The default is every 1 minute.
# scrape_timeout is set to the global default (10s).
# Alertmanager configuration
alerting:
alertmanagers:
- static_configs:
- targets:
- alertmanager:9093
# Load rules once and periodically evaluate them according to the global 'evaluation_interval'.
rule_files: []
# - "first_rules.yml"
# - "second_rules.yml"
# - 'alerts.yml'
# A scrape configuration containing exactly one endpoint to scrape:
# Here it's Prometheus itself.
scrape_configs: []
remote_read:
- url: tcp://clickhouse:9000/signoz_metrics
"""
[[config.mounts]]
filePath = "/collector/otel-collector-config.yaml"
content = """
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch:
exporters:
clickhousetraces:
datasource: tcp://clickhouse:9000/signoz_traces
use_new_schema: true
signozclickhousemetrics:
dsn: tcp://clickhouse:9000/signoz_metrics
timeout: 15s
clickhouselogsexporter:
dsn: tcp://clickhouse:9000/signoz_logs
timeout: 10s
use_new_schema: true
metadataexporter:
dsn: tcp://clickhouse:9000/signoz_metadata
timeout: 10s
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [clickhousetraces, metadataexporter]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [signozclickhousemetrics, metadataexporter]
logs:
receivers: [otlp]
processors: [batch]
exporters: [clickhouselogsexporter, metadataexporter]
"""
[[config.mounts]]
filePath = "/clickhouse/user_scripts/empty.txt"
content = ""