diff --git a/public/svgs/signoz.png b/public/svgs/signoz.png
new file mode 100644
index 000000000..a681188c7
Binary files /dev/null and b/public/svgs/signoz.png differ
diff --git a/templates/compose/signoz.yaml b/templates/compose/signoz.yaml
new file mode 100644
index 000000000..d491ce662
--- /dev/null
+++ b/templates/compose/signoz.yaml
@@ -0,0 +1,1743 @@
+# documentation: https://github.com/SigNoz/signoz
+# slogan: An observability platform native to OpenTelemetry with logs, traces and metrics.
+# tags: telemetry, server, applications, interface, logs, monitoring, traces, metrics
+# logo: svgs/signoz.png
+# port: 8080
+
+services:
+ init-clickhouse:
+ image: clickhouse/clickhouse-server:24.1.2-alpine
+ container_name: signoz-init-clickhouse
+ command:
+ - bash
+ - -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/)
+ 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
+ mkdir -p /var/lib/clickhouse/user_scripts/histogramQuantile
+ mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
+ restart: on-failure
+ networks:
+ - signoz-net
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+
+ zookeeper-1:
+ image: bitnami/zookeeper:3.7.1
+ container_name: signoz-zookeeper-1
+ user: root
+ healthcheck:
+ test:
+ - CMD-SHELL
+ - curl -s -m 2 http://localhost:8080/commands/ruok | grep error | grep null
+ interval: 30s
+ timeout: 5s
+ retries: 3
+ networks:
+ - signoz-net
+ restart: unless-stopped
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+
+ # ports:
+ # - "2181:2181"
+ # - "2888:2888"
+ # - "3888:3888"
+ volumes:
+ - zookeeper-1:/bitnami/zookeeper
+ environment:
+ - ZOO_SERVER_ID=1
+ - ALLOW_ANONYMOUS_LOGIN=yes
+ - ZOO_AUTOPURGE_INTERVAL=1
+ - ZOO_ENABLE_PROMETHEUS_METRICS=yes
+ - ZOO_PROMETHEUS_METRICS_PORT_NUMBER=9141
+
+ clickhouse:
+ # addding non LTS version due to this fix https://github.com/ClickHouse/ClickHouse/commit/32caf8716352f45c1b617274c7508c86b7d1afab
+ image: clickhouse/clickhouse-server:24.1.2-alpine
+ container_name: signoz-clickhouse
+ tty: true
+ depends_on:
+ init-clickhouse:
+ condition: service_completed_successfully
+ zookeeper-1:
+ condition: service_healthy
+ healthcheck:
+ test:
+ - CMD
+ - wget
+ - --spider
+ - -q
+ - 0.0.0.0:8123/ping
+ interval: 30s
+ timeout: 5s
+ retries: 3
+ ulimits:
+ nproc: 65535
+ nofile:
+ soft: 262144
+ hard: 262144
+ networks:
+ - signoz-net
+ restart: unless-stopped
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+ # ports:
+ # - "9000:9000"
+ # - "8123:8123"
+ # - "9181:9181"
+ volumes:
+ - type: bind
+ source: ./clickhouse/config.xml
+ target: /etc/clickhouse-server/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
+
+
+ - type: bind
+ source: ./clickhouse/users.xml
+ target: /etc/clickhouse-server/users.xml
+ content: |
+
+
+
+
+
+
+
+
+
+ 10000000000
+
+
+ random
+
+
+
+
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ ::/0
+
+
+
+ default
+
+
+ default
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 3600
+
+
+ 0
+ 0
+ 0
+ 0
+ 0
+
+
+
+
+ - type: bind
+ source: ./clickhouse/custom-function.xml
+ target: /etc/clickhouse-server/custom-function.xml
+ content: |
+
+
+ executable
+ histogramQuantile
+ Float64
+
+ Array(Float64)
+ buckets
+
+
+ Array(Float64)
+ counts
+
+
+ Float64
+ quantile
+
+ CSV
+ ./histogramQuantile
+
+
+ - type: bind
+ source: ./clickhouse/cluster.xml
+ target: /etc/clickhouse-server/config.d/cluster.xml
+ content: |
+
+
+
+
+
+ zookeeper-1
+ 2181
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ clickhouse
+ 9000
+
+
+
+
+
+
+
+
+ - type: volume
+ source: clickhouse
+ target: /var/lib/clickhouse/
+
+ signoz:
+ image: signoz/signoz:${DOCKER_TAG:-v0.76.2}
+ container_name: signoz
+ depends_on:
+ clickhouse:
+ condition: service_healthy
+ schema-migrator-sync:
+ condition: service_completed_successfully
+ networks:
+ - signoz-net
+ restart: unless-stopped
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+ command:
+ - --config=/root/config/prometheus.yml
+ - --use-logs-new-schema=true
+ - --use-trace-new-schema=true
+ volumes:
+ - type: bind
+ source: ./prometheus.yml
+ target: /root/config/prometheus.yml
+ 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
+ - type: volume
+ source: sqlite
+ target: /var/lib/signoz/
+ environment:
+ - SERVICE_FQDN_SIGNOZ_8080
+ - SIGNOZ_ALERTMANAGER_PROVIDER=signoz
+ - SIGNOZ_TELEMETRYSTORE_CLICKHOUSE_DSN=tcp://clickhouse:9000
+ - SIGNOZ_SQLSTORE_SQLITE_PATH=/var/lib/signoz/signoz.db
+ - DASHBOARDS_PATH=/root/config/dashboards
+ - STORAGE=clickhouse
+ - GODEBUG=netdns=go
+ - TELEMETRY_ENABLED=true
+ - DEPLOYMENT_TYPE=docker-standalone-amd
+ healthcheck:
+ test:
+ - CMD
+ - wget
+ - --spider
+ - -q
+ - localhost:8080/api/v1/health
+ interval: 30s
+ timeout: 5s
+ retries: 3
+
+ otel-collector:
+ image: signoz/signoz-otel-collector:${OTELCOL_TAG:-v0.111.34}
+ container_name: signoz-otel-collector
+ depends_on:
+ clickhouse:
+ condition: service_healthy
+ schema-migrator-sync:
+ condition: service_completed_successfully
+ signoz:
+ condition: service_healthy
+ networks:
+ - signoz-net
+ restart: unless-stopped
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+ ports:
+ - "4317:4317" # OTLP gRPC receiver
+ - "4318:4318" # OTLP HTTP receiver
+ command:
+ - --config=/etc/otel-collector-config.yaml
+ - --manager-config=/etc/manager-config.yaml
+ - --copy-path=/var/tmp/collector-config.yaml
+ - --feature-gates=-pkg.translator.prometheus.NormalizeName
+ volumes:
+ - type: bind
+ source: ./otel-collector-config.yaml
+ target: /etc/otel-collector-config.yaml
+ content: |
+ receivers:
+ otlp:
+ protocols:
+ grpc:
+ endpoint: 0.0.0.0:4317
+ http:
+ endpoint: 0.0.0.0:4318
+ prometheus:
+ config:
+ global:
+ scrape_interval: 60s
+ scrape_configs:
+ - job_name: otel-collector
+ static_configs:
+ - targets:
+ - localhost:8888
+ labels:
+ job_name: otel-collector
+ processors:
+ batch:
+ send_batch_size: 10000
+ send_batch_max_size: 11000
+ timeout: 10s
+ resourcedetection:
+ # Using OTEL_RESOURCE_ATTRIBUTES envvar, env detector adds custom labels.
+ detectors: [env, system]
+ timeout: 2s
+ signozspanmetrics/delta:
+ metrics_exporter: clickhousemetricswrite
+ metrics_flush_interval: 60s
+ latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 60s ]
+ dimensions_cache_size: 100000
+ aggregation_temporality: AGGREGATION_TEMPORALITY_DELTA
+ enable_exp_histogram: true
+ dimensions:
+ - name: service.namespace
+ default: default
+ - name: deployment.environment
+ default: default
+ # This is added to ensure the uniqueness of the timeseries
+ # Otherwise, identical timeseries produced by multiple replicas of
+ # collectors result in incorrect APM metrics
+ - name: signoz.collector.id
+ - name: service.version
+ - name: browser.platform
+ - name: browser.mobile
+ - name: k8s.cluster.name
+ - name: k8s.node.name
+ - name: k8s.namespace.name
+ - name: host.name
+ - name: host.type
+ - name: container.name
+ extensions:
+ health_check:
+ endpoint: 0.0.0.0:13133
+ pprof:
+ endpoint: 0.0.0.0:1777
+ exporters:
+ clickhousetraces:
+ datasource: tcp://clickhouse:9000/signoz_traces
+ low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}
+ use_new_schema: true
+ clickhousemetricswrite:
+ endpoint: tcp://clickhouse:9000/signoz_metrics
+ resource_to_telemetry_conversion:
+ enabled: true
+ clickhousemetricswrite/prometheus:
+ endpoint: tcp://clickhouse:9000/signoz_metrics
+ signozclickhousemetrics:
+ dsn: tcp://clickhouse:9000/signoz_metrics
+ clickhouselogsexporter:
+ dsn: tcp://clickhouse:9000/signoz_logs
+ timeout: 10s
+ use_new_schema: true
+ # debug: {}
+ service:
+ telemetry:
+ logs:
+ encoding: json
+ metrics:
+ address: 0.0.0.0:8888
+ extensions:
+ - health_check
+ - pprof
+ pipelines:
+ traces:
+ receivers: [otlp]
+ processors: [signozspanmetrics/delta, batch]
+ exporters: [clickhousetraces]
+ metrics:
+ receivers: [otlp]
+ processors: [batch]
+ exporters: [clickhousemetricswrite, signozclickhousemetrics]
+ metrics/prometheus:
+ receivers: [prometheus]
+ processors: [batch]
+ exporters: [clickhousemetricswrite/prometheus, signozclickhousemetrics]
+ logs:
+ receivers: [otlp]
+ processors: [batch]
+ exporters: [clickhouselogsexporter]
+ - type: bind
+ source: ./otel-collector-opamp-config.yaml
+ target: /etc/manager-config.yaml
+ content: |
+ server_endpoint: ws://signoz:4320/v1/opamp
+ environment:
+ - OTEL_RESOURCE_ATTRIBUTES=host.name=signoz-host,os.type=linux
+ - LOW_CARDINAL_EXCEPTION_GROUPING=false
+
+ schema-migrator-sync:
+ image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.111.34}
+ container_name: schema-migrator-sync
+ command:
+ - sync
+ - --dsn=tcp://clickhouse:9000
+ - --up=
+ depends_on:
+ clickhouse:
+ condition: service_healthy
+ restart: on-failure
+ networks:
+ - signoz-net
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+
+ schema-migrator-async:
+ image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-v0.111.34}
+ container_name: schema-migrator-async
+ depends_on:
+ clickhouse:
+ condition: service_healthy
+ schema-migrator-sync:
+ condition: service_completed_successfully
+ networks:
+ - signoz-net
+ logging:
+ options:
+ max-size: 50m
+ max-file: "3"
+ command:
+ - async
+ - --dsn=tcp://clickhouse:9000
+ - --up=
+ restart: on-failure
+
+networks:
+ signoz-net:
+ name: signoz-net
+
+volumes:
+ clickhouse:
+ name: signoz-clickhouse
+ sqlite:
+ name: signoz-sqlite
+ zookeeper-1:
+ name: signoz-zookeeper-1
\ No newline at end of file