clickhouse logs exporter added to deployment file (#1500)

* clickhouse logs exporter added to deployment file
* updated to latest otel collector
This commit is contained in:
Nityananda Gohain 2022-08-10 23:00:05 +05:30 committed by GitHub
parent dda82474ae
commit b6afc9315b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 48 additions and 6 deletions

View File

@ -81,14 +81,16 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf - ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf
otel-collector: 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"] command: ["--config=/etc/otel-collector-config.yaml"]
# user: root # required for reading docker container logs
volumes: volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
ports: ports:
# - "1777:1777" # pprof extension # - "1777:1777" # pprof extension
- "4317:4317" # OTLP gRPC receiver - "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver - "4318:4318" # OTLP HTTP receiver
- "4319:4319" # OTLP logs receiver
# - "8888:8888" # OtelCollector internal metrics # - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent # - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port # - "9411:9411" # Zipkin port
@ -111,7 +113,7 @@ services:
- clickhouse - clickhouse
otel-collector-metrics: 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"] command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes: volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml - ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml

View File

@ -30,6 +30,10 @@ receivers:
disk: {} disk: {}
filesystem: {} filesystem: {}
network: {} network: {}
otlp/logs:
protocols:
grpc:
endpoint: 0.0.0.0:4319
processors: processors:
batch: batch:
@ -76,6 +80,16 @@ exporters:
prometheus: prometheus:
endpoint: 0.0.0.0:8889 endpoint: 0.0.0.0:8889
# logging: {} # 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: extensions:
health_check: health_check:
@ -106,3 +120,7 @@ service:
metrics/spanmetrics: metrics/spanmetrics:
receivers: [otlp/spanmetrics] receivers: [otlp/spanmetrics]
exporters: [prometheus] exporters: [prometheus]
logs:
receivers: [otlp/logs]
processors: [batch]
exporters: [clickhouselogsexporter]

View File

@ -78,8 +78,9 @@ services:
- ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf - ../common/nginx-config.conf:/etc/nginx/conf.d/default.conf
otel-collector: 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"] command: ["--config=/etc/otel-collector-config.yaml"]
# user: root # required for reading docker container logs
volumes: volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
environment: environment:
@ -88,6 +89,7 @@ services:
# - "1777:1777" # pprof extension # - "1777:1777" # pprof extension
- "4317:4317" # OTLP gRPC receiver - "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP HTTP receiver - "4318:4318" # OTLP HTTP receiver
- "4319:4319" # OTLP logs receiver
# - "8888:8888" # OtelCollector internal metrics # - "8888:8888" # OtelCollector internal metrics
# - "8889:8889" # signoz spanmetrics exposed by the agent # - "8889:8889" # signoz spanmetrics exposed by the agent
# - "9411:9411" # Zipkin port # - "9411:9411" # Zipkin port
@ -103,7 +105,7 @@ services:
condition: service_healthy condition: service_healthy
otel-collector-metrics: 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"] command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes: volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml - ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml

View File

@ -31,6 +31,11 @@ receivers:
filesystem: {} filesystem: {}
network: {} network: {}
otlp/logs:
protocols:
grpc:
endpoint: 0.0.0.0:4319
processors: processors:
batch: batch:
send_batch_size: 10000 send_batch_size: 10000
@ -85,6 +90,17 @@ exporters:
endpoint: 0.0.0.0:8889 endpoint: 0.0.0.0:8889
# logging: {} # 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: service:
telemetry: telemetry:
metrics: metrics:
@ -109,3 +125,7 @@ service:
metrics/spanmetrics: metrics/spanmetrics:
receivers: [otlp/spanmetrics] receivers: [otlp/spanmetrics]
exporters: [prometheus] exporters: [prometheus]
logs:
receivers: [otlp/logs]
processors: [batch]
exporters: [clickhouselogsexporter]

View File

@ -59,7 +59,7 @@ services:
condition: service_healthy condition: service_healthy
otel-collector: 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"] command: ["--config=/etc/otel-collector-config.yaml"]
volumes: volumes:
- ./otel-collector-config.yaml:/etc/otel-collector-config.yaml - ./otel-collector-config.yaml:/etc/otel-collector-config.yaml
@ -74,7 +74,7 @@ services:
condition: service_healthy condition: service_healthy
otel-collector-metrics: 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"] command: ["--config=/etc/otel-collector-metrics-config.yaml"]
volumes: volumes:
- ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml - ./otel-collector-metrics-config.yaml:/etc/otel-collector-metrics-config.yaml