nicolas lamirault
09/25/2025, 12:46 PMshuiyisong
09/25/2025, 12:50 PMnicolas lamirault
09/25/2025, 1:49 PMexporters:
otlphttp/logs:
endpoint: ${OTEL_EXPORTER_OTLP_LOGS_ENDPOINT}
headers:
x-greptime-db-name: "{env:GREPTIME_LOGS_DB_NAME}"
# x-greptime-log-table-name: 'opentelemetry_logs'
x-greptime-pipeline-name: "greptime_logs_v1"
# x-greptime-pipeline-version: 'v1.0.0'
tls:
insecure: true
otlphttp/metrics:
endpoint: ${OTEL_EXPORTER_OTLP_METRICS_ENDPOINT}
headers:
x-greptime-db-name: "{env:GREPTIME_METRICS_DB_NAME}"
tls:
insecure: true
otlphttp/traces:
endpoint: ${OTEL_EXPORTER_OTLP_TRACES_ENDPOINT}
headers:
x-greptime-db-name: "{env:GREPTIME_TRACES_DB_NAME}"
x-greptime-pipeline-name: 'greptime_trace_v1'
# x-greptime-pipeline-version: 'v1.0.0'
tls:
insecure: truenicolas lamirault
09/25/2025, 1:54 PMnicolas lamirault
09/25/2025, 1:54 PMotel-collector:
<<: *common
image: otel/opentelemetry-collector-contrib:0.135.0
container_name: otel
command:
- "--config=/conf/config.yaml"
- "--feature-gates=service.profilesSupport"
volumes:
- ./etc/otel/otel-collector-greptimedb.yaml:/conf/config.yaml
ports:
- "4317:4317" # OTLP gRPC receiver
- "4318:4318" # OTLP http receiver
- "8889:8889" # Prometheus metrics exporter
environment:
- GREPTIME_LOGS_DB_NAME=opentelemetry_lab_logs
- GREPTIME_METRICS_DB_NAME=opentelemetry_lab_metrics
- GREPTIME_TRACES_DB_NAME=opentelemetry_lab_traces
- OTEL_EXPORTER_OTLP_PROTOCOL=http
- OTEL_EXPORTER_OTLP_LOGS_ENDPOINT=<http://frontend0:4000/v1/otlp>
- OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=<http://frontend0:4000/v1/otlp>
- OTEL_EXPORTER_OTLP_PROFILES_ENDPOINT=<http://frontend0:4000/v1/otlp>
- OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=<http://frontend0:4000/v1/otlp>nicolas lamirault
09/25/2025, 2:04 PM