Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix(devenv): fix otel-collector startup failure (#10620)

Amaresh S M7b6f77bd5209
diff --git a/.devenv/docker/clickhouse/compose.yaml b/.devenv/docker/clickhouse/compose.yaml
index e6cef658c8..51c76c0b46 100644
--- a/.devenv/docker/clickhouse/compose.yaml
+++ b/.devenv/docker/clickhouse/compose.yaml
@@ -27,8 +27,8 @@ services:
- ${PWD}/fs/tmp/var/lib/clickhouse/user_scripts/:/var/lib/clickhouse/user_scripts/
- ${PWD}/../../../deploy/common/clickhouse/custom-function.xml:/etc/clickhouse-server/custom-function.xml
ports:
- - '127.0.0.1:8123:8123'
- - '127.0.0.1:9000:9000'
+ - "127.0.0.1:8123:8123"
+ - "127.0.0.1:9000:9000"
tty: true
healthcheck:
test:
@@ -47,13 +47,16 @@ services:
condition: service_healthy
environment:
- CLICKHOUSE_SKIP_USER_SETUP=1
+ networks:
+ - default
+ - signoz-devenv
zookeeper:
image: signoz/zookeeper:3.7.1
container_name: zookeeper
volumes:
- ${PWD}/fs/tmp/zookeeper:/bitnami/zookeeper
ports:
- - '127.0.0.1:2181:2181'
+ - "127.0.0.1:2181:2181"
environment:
- ALLOW_ANONYMOUS_LOGIN=yes
healthcheck:
@@ -74,12 +77,19 @@ services:
entrypoint:
- /bin/sh
command:
- - -c
- - |
- /signoz-otel-collector migrate bootstrap &&
- /signoz-otel-collector migrate sync up &&
- /signoz-otel-collector migrate async up
+ - -c
+ - |
+ /signoz-otel-collector migrate bootstrap &&
+ /signoz-otel-collector migrate sync up &&
+ /signoz-otel-collector migrate async up
depends_on:
clickhouse:
condition: service_healthy
restart: on-failure
+ networks:
+ - default
+ - signoz-devenv
+
+networks:
+ signoz-devenv:
+ name: signoz-devenv
diff --git a/.devenv/docker/signoz-otel-collector/compose.yaml b/.devenv/docker/signoz-otel-collector/compose.yaml
index 46e9ba60e8..23e67735cc 100644
--- a/.devenv/docker/signoz-otel-collector/compose.yaml
+++ b/.devenv/docker/signoz-otel-collector/compose.yaml
@@ -3,7 +3,7 @@ services:
image: signoz/signoz-otel-collector:v0.142.0
container_name: signoz-otel-collector-dev
entrypoint:
- - /bin/sh
+ - /bin/sh
command:
- -c
- |
@@ -34,4 +34,11 @@ services:
retries: 3
restart: unless-stopped
extra_hosts:
- - "host.docker.internal:host-gateway"
\ No newline at end of file
+ - "host.docker.internal:host-gateway"
+ networks:
+ - default
+ - signoz-devenv
+
+networks:
+ signoz-devenv:
+ name: signoz-devenv
diff --git a/.devenv/docker/signoz-otel-collector/otel-collector-config.yaml b/.devenv/docker/signoz-otel-collector/otel-collector-config.yaml
index 43a888fffb..349f689304 100644
--- a/.devenv/docker/signoz-otel-collector/otel-collector-config.yaml
+++ b/.devenv/docker/signoz-otel-collector/otel-collector-config.yaml
@@ -12,10 +12,10 @@ receivers:
scrape_configs:
- job_name: otel-collector
static_configs:
- - targets:
- - localhost:8888
- labels:
- job_name: otel-collector
+ - targets:
+ - localhost:8888
+ labels:
+ job_name: otel-collector
processors:
batch:
@@ -29,7 +29,26 @@ processors:
signozspanmetrics/delta:
metrics_exporter: signozclickhousemetrics
metrics_flush_interval: 60s
- latency_histogram_buckets: [100us, 1ms, 2ms, 6ms, 10ms, 50ms, 100ms, 250ms, 500ms, 1000ms, 1400ms, 2000ms, 5s, 10s, 20s, 40s, 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
@@ -60,13 +79,13 @@ extensions:
exporters:
clickhousetraces:
- datasource: tcp://host.docker.internal:9000/signoz_traces
+ datasource: tcp://clickhouse:9000/signoz_traces
low_cardinal_exception_grouping: ${env:LOW_CARDINAL_EXCEPTION_GROUPING}
use_new_schema: true
signozclickhousemetrics:
- dsn: tcp://host.docker.internal:9000/signoz_metrics
+ dsn: tcp://clickhouse:9000/signoz_metrics
clickhouselogsexporter:
- dsn: tcp://host.docker.internal:9000/signoz_logs
+ dsn: tcp://clickhouse:9000/signoz_logs
timeout: 10s
use_new_schema: true
@@ -93,4 +112,4 @@ service:
logs:
receivers: [otlp]
processors: [batch]
- exporters: [clickhouselogsexporter]
\ No newline at end of file
+ exporters: [clickhouselogsexporter]