Skip to content

Latest commit

 

History

History
72 lines (50 loc) · 2.11 KB

docker_deployment.md

File metadata and controls

72 lines (50 loc) · 2.11 KB

Docker

Prerequisites

Clone Repo

  • Clone this repository:
git clone https://github.com/TelemetryHub/opentelemetry-demo.git

Open Folder

  • Navigate to the cloned folder:
cd opentelemetry-demo/

Add Ingest Key

A custom otelcol-config-extras.yml file has been added to this repo which configures pipelines to send to TelemetryHub. Just add your Ingest Key as described in BYOB below!

Run Docker Compose

  • Start the demo:
docker compose up --no-build

Note: If you're running on Apple Silicon, please run docker compose build in order to create local images vs. pulling them from the repository.

Note: The --no-build flag is used to fetch released docker images from ghcr instead of building from source. Removing the --no-build command line option will rebuild all images from source. It may take more than 20 minutes to build if the flag is omitted.

Verify the Webstore & the Telemetry

Once the images are built and containers are started you can access:

Bring your own backend

Likely you want to use this as a demo application for an observability backend you already have (e.g. TelemetryHub, right?). OpenTelemetry Collector can be used to export telemetry data to multiple backends. By default, the collector in the demo application will merge the configuration from two files:

  • otelcol-config.yml
  • otelcol-config-extras.yml

Edit otelcol-config-extras.yml and input your own Ingest Key to begin sending data to TelemetryHub. The necessary pipelines have already been added.

After updating the otelcol-config-extras.yml, start the demo by running docker compose up. After a while, you should see the traces flowing into your backend as well.