1.5 KiB
1.5 KiB
Elastic
To enable the Elastic:
[tracing]
[tracing.elastic]
tracing:
elastic: {}
--tracing.elastic=true
serverURL
Optional, Default="http://localhost:8200"
APM ServerURL is the URL of the Elastic APM server.
[tracing]
[tracing.elastic]
serverURL = "http://apm:8200"
tracing:
elastic:
serverURL: "http://apm:8200"
--tracing.elastic.serverurl="http://apm:8200"
secretToken
Optional, Default=""
APM Secret Token is the token used to connect to Elastic APM Server.
[tracing]
[tracing.elastic]
secretToken = "mytoken"
tracing:
elastic:
secretToken: "mytoken"
--tracing.elastic.secrettoken="mytoken"
serviceEnvironment
Optional, Default=""
APM Service Environment is the name of the environment Traefik is deployed in, e.g. production
or staging
.
[tracing]
[tracing.elastic]
serviceEnvironment = "production"
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.