Getting Started

Get up and running with Jaeger in your local environment


Instrumentation

Your applications must be instrumented before they can send tracing data to Jaeger backend. Check the Client Libraries section for information about how to use the OpenTracing API and how to initialize and configure Jaeger tracers.

All in One

All-in-one is an executable designed for quick local testing, launches the Jaeger UI, collector, query, and agent, with an in memory storage component.

The simplest way to start the all-in-one is to use the pre-built image published to DockerHub (a single command line).

  1. $ docker run -d --name jaeger \
  2. -e COLLECTOR_ZIPKIN_HTTP_PORT=9411 \
  3. -p 5775:5775/udp \
  4. -p 6831:6831/udp \
  5. -p 6832:6832/udp \
  6. -p 5778:5778 \
  7. -p 16686:16686 \
  8. -p 14268:14268 \
  9. -p 9411:9411 \
  10. jaegertracing/all-in-one:1.15

Or run the jaeger-all-in-one(.exe) executable from the binary distribution archives:

  1. $ jaeger-all-in-one --collector.zipkin.http-port=9411

You can then navigate to http://localhost:16686 to access the Jaeger UI.

The container exposes the following ports:

PortProtocolComponentFunction
5775UDPagentaccept zipkin.thrift over compact thrift protocol (deprecated, used by legacy clients only)
6831UDPagentaccept jaeger.thrift over compact thrift protocol
6832UDPagentaccept jaeger.thrift over binary thrift protocol
5778HTTPagentserve configs
16686HTTPqueryserve frontend
14268HTTPcollectoraccept jaeger.thrift directly from clients
14250HTTPcollectoraccept model.proto
9411HTTPcollectorZipkin compatible endpoint (optional)

Kubernetes and OpenShift

Sample App: HotROD

HotROD (Rides on Demand) is a demo application that consists of several microservices andillustrates the use of the OpenTracing API.A tutorial / walkthrough is available in the blog post:Take OpenTracing for a HotROD ride.

It can be run standalone, but requires Jaeger backend to view the traces.

Features

  • Discover architecture of the whole system via data-driven dependencydiagram.
  • View request timeline and errors; understand how the app works.
  • Find sources of latency and lack of concurrency.
  • Highly contextualized logging.
  • Use baggage propagation to:

    • Diagnose inter-request contention (queueing).
    • Attribute time spent in a service.
  • Use open source libraries with OpenTracing integration to getvendor-neutral instrumentation for free.

Prerequisites

  • You need Go 1.11 or higher installed on your machine to run from source.
  • Requires a running Jaeger backend to view the traces.

Running

From Source

  1. mkdir -p $GOPATH/src/github.com/jaegertracing
  2. cd $GOPATH/src/github.com/jaegertracing
  3. git clone git@github.com:jaegertracing/jaeger.git jaeger
  4. cd jaeger
  5. make install
  6. go run ./examples/hotrod/main.go all

From docker

  1. $ docker run --rm -it \
  2. --link jaeger \
  3. -p8080-8083:8080-8083 \
  4. -e JAEGER_AGENT_HOST="jaeger" \
  5. jaegertracing/example-hotrod:1.15 \
  6. all

From binary distribution

Run example-hotrod(.exe) executable from the binary distribution archives:

  1. $ example-hotrod all

Then navigate to http://localhost:8080.

Migrating from Zipkin

Collector service exposes Zipkin compatible REST API /api/v1/spans which accepts both Thrift and JSON. Also there is /api/v2/spans for JSON and Proto.By default it’s disabled. It can be enabled with —collector.zipkin.http-port=9411.

Zipkin Thrift IDL and Zipkin Proto IDL files can be found in jaegertracing/jaeger-idl repository.They’re compatible with openzipkin/zipkin-apiThrift and Proto.