Setting up the OTEL Demo App

Step 1: Clone the OpenTelemetry Demo

As we are using a modified version of the OpenTelemetry Demo with expanded logs we will need to: clone the repo, modify the config, and then build from scratch.

Run git clone https://github.com/open-telemetry/opentelemetry-demo into a folder of your choice.

Step 2: Configure src/otel-collector/otelcol-config-extras.yml with Shared Source Credentials

Grab the URL and saved Access Keys from your Log, Metric and Trace Shared Sources (don't worry, if you didn't save the key you can always create a new one). Modify src/otel-collector/otelcol-config-extras.yml with the proper credentials and save. Note that Log, Metrics and Traces will each have their own unique URL and Access Keys.

Example OpenTelemetry Extras Configuration YAML

YAML
Copy

Step 3: Run the OpenTelmetry Demo via Docker

From the top level of the repo, run the following command

docker compose up --force-recreate --remove-orphans --detach

You will now have a running OpenTelemetry Demo instance up and running at https://localhost:8080. To learn more about the demo's capabilities, check out their extensive docs. For this workshop, we will be taking advantage of the default output.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard