This repo contains linkerd telemeters for writing tracing data to Zipkin, using
linkerd’s plugin interface and Zipkin’s finagle-zipkin library.
Building
Plugin jar
To build a plugin jar, run:
$ ./sbt assembly
That will build a linkerd-zipkin plugin jar in plugins/. Put that jar in
linkerd’s class path to make the telemeters available. Further information on
installing plugins is available in the linkerd
plugin documentation.
Docker
If you’re using Docker, this repo provides a Dockerfile that you
can use to layer in the plugin jar on top of the linkerd base image. To build,
run:
That will build a docker image called linkerd-zipkin:latest, which runs
linkerd and autoloads the telemeters from this repo. You can tag that image
as needed and push to your own docker repo for deployment.
Usage
Two telemeters are provided, for writing to Zipkin with different transports.
io.zipkin.http
This telemeter writes tracing data to zipkin over HTTP. Sample configuration:
linkerd-zipkin
This repo contains linkerd telemeters for writing tracing data to Zipkin, using linkerd’s plugin interface and Zipkin’s finagle-zipkin library.
Building
Plugin jar
To build a plugin jar, run:
That will build a linkerd-zipkin plugin jar in
plugins/. Put that jar in linkerd’s class path to make the telemeters available. Further information on installing plugins is available in the linkerd plugin documentation.Docker
If you’re using Docker, this repo provides a Dockerfile that you can use to layer in the plugin jar on top of the linkerd base image. To build, run:
That will build a docker image called
linkerd-zipkin:latest, which runs linkerd and autoloads the telemeters from this repo. You can tag that image as needed and push to your own docker repo for deployment.Usage
Two telemeters are provided, for writing to Zipkin with different transports.
io.zipkin.http
This telemeter writes tracing data to zipkin over HTTP. Sample configuration:
Available configuration options for this telemeter:
hosthostHeadercompressionEnabledinitialSampleRateio.zipkin.kafka
This telemeter writes tracing data to zipkin using Kafka. Sample configuration:
Available configuration options for this telemeter:
bootstrapServerstopicinitialSampleRate