Skip to content

pbrissaud/n8n-opentelemetry

Repository files navigation

n8n + OpenTelemetry

Custom Dockerfile to run n8n with OpenTelemetry tracing and advanced logging.

It's inspired by the work of Stuart Johnson in the n8n community and simple10/LLemonStack.

Features

  • Logging of n8n workflows and nodes executions in console (not sent in otlp) with Winston
  • Tracing of n8n workflows and nodes executions

Warning

Subnode executions are not traced yet. Open to PRs if you want to add this feature.

Usage

To activate logging andtracing, you need to set the following environment variables when running the container:

docker run -it --rm \
    -e OTEL_SERVICE_NAME="n8n" \
    -e OTEL_SDK_DISABLED="false" \
    -e OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" \
    -e OTEL_LOG_LEVEL="info"
    ghcr.io/pbrissaud/n8n-opentelemetry:latest

If you only want to activate logging, you can set the following environment variables:

docker run -it --rm \
    -e OTEL_SDK_DISABLED="false" \
    -e OTEL_LOG_LEVEL="info"
    ghcr.io/pbrissaud/n8n-opentelemetry:latest

Full stack

You can use the compose.yaml file to run a full stack with n8n, alloy, loki, tempo and grafana.

docker compose up

About

n8n Docker image with advanced logging and OpenTelemetry included

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •