Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 1.2 KB

apm_tracing.md

File metadata and controls

26 lines (21 loc) · 1.2 KB

Enable APM tracing on Fleet managed agent

  1. Enroll agent with default config
  2. Agent config will be overwritten by the Fleet Agent policy
  3. Add APM config to the installed agent config file e.g. on Mac /Library/Elastic/Agent/elastic-agent.yml
agent.monitoring:
  traces: true
  apm:
    hosts:
      - <apm host url>
    environment: <apm environment>
    secret_token: <secret token>
  1. Restart agent to pick up the changes (on standalone agent there is hot reload): https://www.elastic.co/guide/en/fleet/current/start-stop-elastic-agent.html
  2. APM config should be applied, and traces should be sent to the APM server configured
  3. Observe "APM instrumentation enabled" in the agent logs

More info in agent doc: https://github.com/elastic/elastic-agent/blob/main/docs/tracing.md

Cloud configuration