Last active
April 19, 2020 08:39
-
-
Save tomchavakis/6d0d6a7fa637be7a598e67d4a753d5de to your computer and use it in GitHub Desktop.
jaeger docker-compose with elasticsearch collector
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
collector: | |
image: jaegertracing/jaeger-collector:1.8 | |
environment: | |
- SPAN_STORAGE_TYPE=elasticsearch | |
- ES_SERVER_URLS=http://localhost:9200 | |
ports: | |
- "14269" | |
- "14268:14268" | |
- "14267" | |
- "14250" | |
- "9411:9411" | |
restart: on-failure | |
command: ["--es.server-urls=http://localhost:9200","--es.tags-as-fields.all=true", "--es.num-shards=1", "--span-storage.type=elasticsearch", "--log-level=error"] | |
agent: | |
image: jaegertracing/jaeger-agent:1.8 | |
environment: | |
- SPAN_STORAGE_TYPE=elasticsearch | |
command: ["--collector.host-port=collector:14267"] | |
ports: | |
- "5775:5775/udp" | |
- "6831:6831/udp" | |
- "6832:6832/udp" | |
- "5778:5778" | |
restart: on-failure | |
depends_on: | |
- collector | |
query: | |
image: jaegertracing/jaeger-query:1.8 | |
environment: | |
- SPAN_STORAGE_TYPE=elasticsearch | |
- ES_SERVER_URLS=http://localhost:9200 | |
ports: | |
- "16686:16686" | |
- "16687" | |
restart: on-failure | |
command: ["--es.server-urls=http://localhost:9200", "--span-storage.type=elasticsearch", "--log-level=debug"] | |
depends_on: | |
- agent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://medium.com/jaegertracing/jaeger-elasticsearch-and-kibana-7ecb846137b6 about --es.tags-as-fields.all=true