Reporter configuration optionsedit

SecretTokenedit

Environment variable nameIConfiguration key

ELASTIC_APM_SECRET_TOKEN

ElasticApm:SecretToken

DefaultType

<none>

String

This string is used to ensure that only your agents can send data to your APM server.

Both the agents and the APM server have to be configured with the same secret token. Use this setting in case the APM Server requires a token (e.g. APM Server in Elastic Cloud).

ServerUrlsedit

Environment variable nameIConfiguration key

ELASTIC_APM_SERVER_URLS

ElasticApm:ServerUrls

DefaultType

http://localhost:8200

String

The URL for your APM Server. The URL must be fully qualified, including protocol (http or https) and port.

Note

Providing multiple URLs is not supported by the agent yet. If multiple URLs are provided only the first one will be used.

LogLeveledit

Environment variable nameIConfiguration key

ELASTIC_APM_LOG_LEVEL

ElasticApm:LogLevel

DefaultType

Error

String

Sets the logging level for the agent.

Valid options: Error, Warning, Info, Debug.

MetricsInterval ( [1.0.0-beta1] Added in 1.0.0-beta1. )edit

The interval at which the agent sends metrics to the APM Server. Must be at least 1s. Set to 0s to deactivate.

Supports the duration suffixes ms, s and m. Example: 30s. The default unit for this option is s.

DefaultType

30s

TimeDuration

Environment variable nameIConfiguration key

ELASTIC_APM_METRICS_INTERVAL

ElasticApm:MetricsInterval