# Traefik integration

**URL:** https://discuss.elastic.co/t/traefik-integration/203377
**Category:** APM
**Created:** [October 14, 2019, 4:34am UTC](https://discuss.elastic.co/t/traefik-integration/203377 "2019-10-14T04:34:35Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![trajano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trajano/32/38853_2.png) [@trajano](https://discuss.elastic.co/u/trajano)
#### Post date: [October 14, 2019, 4:34am UTC](https://discuss.elastic.co/t/traefik-integration/203377/1 "2019-10-14T04:34:35Z")

</div>

Traefik supports five tracing backends according to [https://docs.traefik.io/observability/tracing/overview/](https://docs.traefik.io/observability/tracing/overview/)

- [Jaeger](https://docs.traefik.io/observability/tracing/jaeger/)
- [Zipkin](https://docs.traefik.io/observability/tracing/zipkin/)
- [Datadog](https://docs.traefik.io/observability/tracing/datadog/)
- [Instana](https://docs.traefik.io/observability/tracing/instana/)
- [Haystack](https://docs.traefik.io/observability/tracing/haystack/)

I was wondering if there's a way of using any of those to integrate with APM? Like some sort of adapter.

---

<div class="post-metadata">

### Author: ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)
#### Post date: [October 14, 2019, 5:01am UTC](https://discuss.elastic.co/t/traefik-integration/203377/2 "2019-10-14T05:01:55Z")

</div>

@trajano it is possible to translate from Jaeger, Zipkin, and potentially others to Elastic APM. I'm not aware of anybody having released code to do that yet. We have an open [issue for implementing an OpenTelemetry Exporter](https://github.com/elastic/apm/issues/98) which, if implemented, should address this.

Another option would be to plug the Go agent directly into Traefik as another backend, since Traefik uses OpenTracing, and the Elastic APM agents support the OpenTracing API.

---

<div class="post-metadata">

### Author: ![trajano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trajano/32/38853_2.png) [@trajano](https://discuss.elastic.co/u/trajano)
#### Post date: [October 14, 2019, 5:04am UTC](https://discuss.elastic.co/t/traefik-integration/203377/3 "2019-10-14T05:04:53Z")

</div>

So basically add the "APM server" to the stack in place of zipkin and tell traefik to use that instead of zipkin. Sounds reasonable. I'll try it out shortly. I am dealing with a Kibana/Beats issue at the moment.

---

<div class="post-metadata">

### Author: ![axw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/axw/32/28197_2.png) [@axw](https://discuss.elastic.co/u/axw)
#### Post date: [October 14, 2019, 5:08am UTC](https://discuss.elastic.co/t/traefik-integration/203377/4 "2019-10-14T05:08:56Z")

</div>

> [@trajano](#):
>
> So basically add the "APM server" to the stack in place of zipkin and tell traefik to use that instead of zipkin. Sounds reasonable. I'll try it out shortly.

I'm not sure if I was clear, but there will be significant code changes required. Either we'll need to implement an OpenTelemetry Exporter (which is something we are likely to do in the future), or changes would be required to Traefik itself to support the additional backend.

---

<div class="post-metadata">

### Author: ![trajano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trajano/32/38853_2.png) [@trajano](https://discuss.elastic.co/u/trajano)
#### Post date: [October 14, 2019, 5:11am UTC](https://discuss.elastic.co/t/traefik-integration/203377/5 "2019-10-14T05:11:05Z")

</div>

Yah I was just going through the documentation and what you said. Specifically the word **agents** which I missed on my first glance. That means not the **server**.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [November 4, 2019, 1:16am UTC](https://discuss.elastic.co/t/traefik-integration/203377/6 "2019-11-04T01:16:11Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
