Skip to content

Commit

Permalink
clickhouse logs exporter added to deployment file (SigNoz#1500)
Browse files Browse the repository at this point in the history
* clickhouse logs exporter added to deployment file
* updated to latest otel collector
  • Loading branch information
nityanandagohain authored Aug 10, 2022
1 parent dda8247 commit b6afc93
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 6 deletions.
6 changes: 4 additions & 2 deletions deploy/docker-swarm/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,16 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-config.yaml"]
# user: root # required for reading docker container logs
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports:
# - "1777:1777" # pprof extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "4319:4319" # OTLP logs receiver
# - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port
Expand All @@ -111,7 +113,7 @@ services:
- clickhouse

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
18 changes: 18 additions & 0 deletions deploy/docker-swarm/clickhouse-setup/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ receivers:
disk: {}
filesystem: {}
network: {}
otlp/logs:
protocols:
grpc:
endpoint: 0.0.0.0:4319

processors:
batch:
Expand Down Expand Up @@ -76,6 +80,16 @@ exporters:
prometheus:
endpoint: 0.0.0.0:8889
# logging: {}
clickhouselogsexporter:
dsn: tcp://clickhouse:9000/
timeout: 5s
sending_queue:
queue_size: 100
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s

extensions:
health_check:
Expand Down Expand Up @@ -106,3 +120,7 @@ service:
metrics/spanmetrics:
receivers: [otlp/spanmetrics]
exporters: [prometheus]
logs:
receivers: [otlp/logs]
processors: [batch]
exporters: [clickhouselogsexporter]
6 changes: 4 additions & 2 deletions deploy/docker/clickhouse-setup/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz/signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-config.yaml"]
# user: root # required for reading docker container logs
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
environment:
Expand All @@ -88,6 +89,7 @@ services:
# - "1777:1777" # pprof extension
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver
- "4319:4319" # OTLP logs receiver
# - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port
Expand All @@ -103,7 +105,7 @@ services:
condition: service_healthy

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz/signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down
20 changes: 20 additions & 0 deletions deploy/docker/clickhouse-setup/otel-collector-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ receivers:
filesystem: {}
network: {}

otlp/logs:
protocols:
grpc:
endpoint: 0.0.0.0:4319

processors:
batch:
send_batch_size: 10000
Expand Down Expand Up @@ -85,6 +90,17 @@ exporters:
endpoint: 0.0.0.0:8889
# logging: {}

clickhouselogsexporter:
dsn: tcp://clickhouse:9000/
timeout: 5s
sending_queue:
queue_size: 100
retry_on_failure:
enabled: true
initial_interval: 5s
max_interval: 30s
max_elapsed_time: 300s

service:
telemetry:
metrics:
Expand All @@ -109,3 +125,7 @@ service:
metrics/spanmetrics:
receivers: [otlp/spanmetrics]
exporters: [prometheus]
logs:
receivers: [otlp/logs]
processors: [batch]
exporters: [clickhouselogsexporter]
4 changes: 2 additions & 2 deletions pkg/query-service/tests/test-deploy/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ services:
condition: service_healthy

otel-collector:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-config.yaml"]
volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
Expand All @@ -74,7 +74,7 @@ services:
condition: service_healthy

otel-collector-metrics:
image: signoz/otelcontribcol:0.45.1-1.3
image: signoz-otel-collector:0.55.0-rc.3
command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml
Expand Down

0 comments on commit b6afc93

Please sign in to comment.