The jmerle/opentelemetry-stack Docker image contains a complete OpenTelemetry stack consisting of Grafana, VictoriaMetrics, Tempo, Loki, and the OpenTelemetry Collector. The code in this repository is partially based on the grafana/docker-otel-lgtm repository.
The following command starts the complete stack:
docker run --rm --name opentelemetry -p 3000:3000 -p 4317:4317 -p 4318:4318 -v opentelemetry:/data jmerle/opentelemetry-stack
The following services will be available after starting up:
- Grafana on http://localhost:3000/ with default username admin and password admin. You'll be prompted to change the password after logging in for the first time. Datasources for VictoriaMetrics, Tempo, and Loki are pre-configured, as well as an overview dashboard showing the most important statistics of these datasources.
- The OpenTelemetry Collector on port 4317 (gRPC) and 4318 (HTTP).
Retention periods are configured as follows:
- VictoriaMetrics: 90 days
- Tempo: 30 days
- Loki: 30 days
You need to define two additional environment variables when running behind a reverse proxy that performs TLS termination. Assuming the stack is deployed to https://grafana.example.com/:
GF_SERVER_DOMAIN=grafana.example.comGF_SERVER_ROOT_URL=https://grafana.example.com/