| version: "3.9" |
| |
| services: |
| |
| otel-collector: |
| image: otel/opentelemetry-collector:latest |
| command: |
| - --config=/etc/otelcol-cont/otel-collector.yml |
| volumes: |
| - ./otel-collector.yml:/etc/otelcol-cont/otel-collector.yml |
| ports: |
| - "4318:4318" # OTLP http receiver |
| - "4317:4317" # OTLP grpc receiver |
| depends_on: |
| - jaeger-all-in-one |
| - prometheus |
| |
| jaeger-all-in-one: |
| image: quay.io/jaegertracing/all-in-one:latest |
| restart: always |
| ports: |
| - "16686:16686" |
| |
| prometheus: |
| image: prom/prometheus:latest |
| container_name: prometheus |
| restart: always |
| ports: |
| - "9090:9090" |
| volumes: |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml |
| command: |
| - '--config.file=/etc/prometheus/prometheus.yml' |
| - '--storage.tsdb.path=/prometheus' |
| - '--web.console.libraries=/etc/prometheus/console_libraries' |
| - '--web.console.templates=/etc/prometheus/consoles' |
| - '--storage.tsdb.retention.time=200h' |
| - '--web.enable-lifecycle' |