Provide Best Programming Tutorials

Integrate Jaeger with ELK Stack on AWS

This post will show you how to integrate Jaeger with ELK Stack on AWS.

Create EC2 instance and update it

Create an AWS EC2 instance and notice, the instance type should at least choose t2.medium and the operating system chooses ubuntu 16.04

update & upgrade your software running the commands below





Install docker running the following command

sudo apt install -y docker.io

Install ElasticSearch using docker

sudo docker run --rm -it --name=elasticsearch -e "ES_JAVA_OPTS=-Xms2g -Xmx2g" -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" -e "xpack.security.enabled=false" docker.elastic.co/elasticsearch/elasticsearch:6.8.0

Install Kibana using docker

sudo docker run --rm -it --link=elasticsearch --name=kibana -p 5601:5601 docker.elastic.co/kibana/kibana:6.8.0

Install Jaeger using docker

sudo docker run --rm -it --link=elasticsearch --name=jaeger -e SPAN_STORAGE_TYPE=elasticsearch -e ES_SERVER_URLS=http://elasticsearch:9200 -e ES_TAGS_AS_FIELDS_ALL=true -p 16686:16686 jaegertracing/all-in-one:1.12
  • –link=elasticsearch – link to the Elasticsearch container.
  • SPAN_STORAGE_TYPE=elasticsearch – defining the Elasticsearch storage type for storing the Jaeger traces.
  • -e ES_TAGS_AS_FIELDS_ALL=true – enables correct mapping in Elasticsearch of tags in the Jaeger traces.

Install demo app HOT R.O.D 

sudo docker run --rm --link jaeger --env JAEGER_AGENT_HOST=jaeger --env JAEGER_AGENT_PORT=6831 -p8080-8083:8080-8083 jaegertracing/example-hotrod:latest all

Visit Kibana

http://localhost:5601

Visit Jaeger

http://localhost:16686

Visit HOT R.O.D 

http://localhost:8080

Leave a Reply

Close Menu