diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml index 17fb3201b..5ed29955a 100644 --- a/docker/dev/docker-compose.yml +++ b/docker/dev/docker-compose.yml @@ -24,6 +24,7 @@ services: depends_on: - pictrs - postgres + - otel lemmy-ui: image: dessalines/lemmy-ui:0.14.3 @@ -49,8 +50,32 @@ services: restart: always pictrs: - image: asonix/pictrs:v0.2.6-r2 + image: asonix/pictrs:0.3.0-beta.11 user: 991:991 + environment: + - PICTRS_OPENTELEMETRY_URL=http://otel:4137 volumes: - ./volumes/pictrs:/mnt restart: always + depends_on: + - otel + + otel: + image: otel/opentelemetry-collector:latest + command: --config otel-local-config.yaml + ports: + - "4317:4317" + volumes: + - type: bind + source: ./otel.yml + target: /otel-local-config.yaml + restart: always + depends_on: + - jaeger + + jaeger: + image: jaegertracing/all-in-one:1 + ports: + - "14250:14250" + - "16686:16686" + restart: always diff --git a/docker/dev/otel.yml b/docker/dev/otel.yml new file mode 100644 index 000000000..8270b0893 --- /dev/null +++ b/docker/dev/otel.yml @@ -0,0 +1,25 @@ +receivers: + otlp: + protocols: + grpc: + endpoint: 0.0.0.0:4137 + +processors: + batch: + +exporters: + logging: + jaeger: + endpoint: jaeger:14250 + insecure: true + +service: + pipelines: + traces: + receivers: + - otlp + processors: + - batch + exporters: + - logging + - jaeger diff --git a/docker/lemmy.hjson b/docker/lemmy.hjson index 54975feca..779c8d2c0 100644 --- a/docker/lemmy.hjson +++ b/docker/lemmy.hjson @@ -11,6 +11,8 @@ site_name: "lemmy-test" } + opentelemetry_url: "http://otel:4137" + # the domain name of your instance (eg "lemmy.ml") hostname: "my_domain" # address where lemmy should listen for incoming requests