traefik/docs/content/observability/tracing/elastic.md
2022-04-15 15:44:08 +02:00

1.6 KiB

title description
Traefik Elastic Documentation Traefik supports several tracing backends, including Elastic. Learn how to implement it for observability in Traefik Proxy. Read the technical documentation.

Elastic

To enable the Elastic tracer:

tracing:
  elastic: {}
[tracing]
  [tracing.elastic]
--tracing.elastic=true

serverURL

Optional, Default="http://localhost:8200"

URL of the Elastic APM server.

tracing:
  elastic:
    serverURL: "http://apm:8200"
[tracing]
  [tracing.elastic]
    serverURL = "http://apm:8200"
--tracing.elastic.serverurl="http://apm:8200"

secretToken

Optional, Default=""

Token used to connect to Elastic APM Server.

tracing:
  elastic:
    secretToken: "mytoken"
[tracing]
  [tracing.elastic]
    secretToken = "mytoken"
--tracing.elastic.secrettoken="mytoken"

serviceEnvironment

Optional, Default=""

Environment's name where Traefik is deployed in, e.g. production or staging.

tracing:
  elastic:
    serviceEnvironment: "production"
[tracing]
  [tracing.elastic]
    serviceEnvironment = "production"
--tracing.elastic.serviceenvironment="production"

Further

Additional configuration of Elastic APM Go agent can be done using environment variables. See APM Go agent reference.