Jaeger using Elasticsearch as back-end storage

Source: Internet
Author: User

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

    • Docker-compose file
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
    • Start
docker-compose up -d
    • Effect



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.