Jaeger supports ES as back-end storage, which is convenient for queries and system extensions
Run with Docker-compose
Environment preparation
Reference project: Https://github.com/rongfengliang/nginx-opentracing-demo
Version: ' 3 ' services:nginx:image:opentracing/nginx-opentracing networks:trivial_example:aliases: -Nginx volumes:-./nginx.conf:/etc/nginx/nginx.conf-./jaeger-config.json:/etc/jaeger-config.json Expose:-"8080" Ports:-"8080:8080" elasticsearch:image:elasticsearch:5.6.12 Ulimits:memloc K:soft:-1 Hard:-1 Ports:-9200:9200 volumes:-./es-data:/usr/share/elasticsearch/data envir Onment:-transport.host=0.0.0.0-http.cors.enabled=true-http.cors.allow-origin= "*"-discovery.zen.minimum _master_nodes=1 networks:trivial_example:aliases:-Elasticsearch app-service:build:context:. Dockerfile:./dockerfile networks:trivial_example:aliases:-App-service Expose:- "9001" Ports:-"9001:9001" command:-/app/server--collector_host-jaeger deps:image:j Aegertracing/spark-depenDencies Environment:-storage=elasticsearch-es_nodes=http://elasticsearch:9200 Networks:trivial_exa Mple:aliases:-deps jaeger:image:jaegertracing/all-in-one:1.7 Environment:-Collector_zip Kin_http_port=9411-es_server_urls=http://elasticsearch:9200-span_storage_type=elasticsearch-es_tags_a S_fields=true networks:trivial_example:aliases:-Jaeger Expose:-"9411"-"16686" Ports:-"9411:9411"-"16686:16686" Networks:trivial_example: {}
- Description
The primary is to specify the storage type and the address of the ES server cluster through environment variables, noting that a separate service is required for the dependency relationship
Start && test
docker-compose up -d
Description
For the display of dependencies, you need to use spark-dependencies processing, refer to Docker-compose file
Also need to be configured as a timed task
Resources
Https://www.jaegertracing.io/docs/1.7/architecture/
https://www.jaegertracing.io/docs/1.7/deployment/
Https://github.com/rongfengliang/nginx-opentracing-demo
Https://github.com/jaegertracing/jaeger/blob/master/plugin/storage/es/README.md
https://hub.docker.com/r/jaegertracing/spark-dependencies/
https://my.oschina.net/u/2548090/blog/1821372
Jaeger using Elasticsearch as back-end storage