mirror of
https://github.com/stefanprodan/podinfo.git
synced 2026-04-06 11:06:50 +00:00
- Adds a loggerprovider based on otlp logger - In demo directory of oltp: - Added grafana for unified view of both traces and logs - tracing now uses oltp from the collector to the jaeger instance Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
version: '2'
|
|
|
|
services:
|
|
podinfo_frontend:
|
|
build: ..
|
|
command: ./podinfo --backend-url http://podinfo_backend:9899/status/200 --otel-service-name=podinfo_frontend
|
|
environment:
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel:4317
|
|
ports:
|
|
- "9898:9898"
|
|
podinfo_backend:
|
|
build: ..
|
|
command: ./podinfo --port 9899 --otel-service-name=podinfo_backend
|
|
environment:
|
|
- OTEL_EXPORTER_OTLP_ENDPOINT=http://otel:4317
|
|
ports:
|
|
- "9899:9899"
|
|
otel:
|
|
command: --config otel-config.yaml
|
|
image: otel/opentelemetry-collector-contrib:0.116.1
|
|
ports:
|
|
- "4317:4317"
|
|
volumes:
|
|
- ${PWD}/otel-config.yaml:/otel-config.yaml
|
|
loki:
|
|
image: grafana/loki:3.0.0
|
|
ports:
|
|
- "3100:3100"
|
|
command: -config.file=/etc/loki/local-config.yaml
|
|
grafana:
|
|
image: grafana/grafana:10.4.0
|
|
ports:
|
|
- "3000:3000"
|
|
environment:
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
volumes:
|
|
- ${PWD}/grafana-datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml
|
|
jaeger:
|
|
image: jaegertracing/all-in-one:1.57.0
|
|
ports:
|
|
- "16686:16686"
|