Skip to content

Instantly share code, notes, and snippets.

@smith
Created June 30, 2022 06:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smith/57ba4fbbd07f948df4641288f9b11d62 to your computer and use it in GitHub Desktop.
Save smith/57ba4fbbd07f948df4641288f9b11d62 to your computer and use it in GitHub Desktop.
Running the OpenTelemetry Community Demo with Elastic
  • Clone https://github.com/open-telemetry/opentelemetry-demo-webstore
  • On an Elastic Cloud instance, add a new agent on your local machine
  • Enable the APM integration. curl http://localhost:8200 should respond with JSON indicating the APM server is running
  • Follow the instructions for modifying otelcol-config.yml, but make it:
  otlp:
    endpoint: host.docker.internal:8200
    tls:
      insecure: true
  • There's a bug on M1 Macs that won't allow the load generator to run: open-telemetry/opentelemetry-demo#178. If this is still open, comment out the loadgenerator service in docker-compose.yml
  • docker compose up
  • Access the web store at http://localhost:8080
  • Go to Elastic APM and see the services
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment