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

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 ""

Install Kibana using docker

sudo docker run --rm -it --link=elasticsearch --name=kibana -p 5601:5601

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


Visit Jaeger


Visit HOT R.O.D 


Leave a Reply

Close Menu