In this cookbook the OpenTelemetry Collector receives OTLP-gRPC telemetry from a Go app and exports to both APM OpenTelemetry Collector using Native OTLP gRPC protocol and to the open-source Zipkin all-in-one using Zipkin protocol.
The Go app is a simple demo application provided by the OpenTelemetry project. In the cookbook it is set to run indefinitely to generate telemetry.
- an APM account (SaaS)
- a Docker host, for example Docker Desktop
Navigate to APM (for example https://apm.myaccount.aternity.com) > Agents > Install Agents:
- Find your CustomerID, for example 12341234-12341234-13241234
- Grab SaaS Analysis Server Host, for example agents.apm.myaccount.aternity.com
Those information are required to activate the APM OpenTelemetry Collector container, passing via the environment variable SERVER_URL
.
Download a local copy of the files docker-compose.yaml and otel-collector-config.yaml, for example in the directory Tech-Community/109-opentelemetry-export
Start the containers using the docker-compose.yaml, for example with Bash:
cd Riverbed-Community-Toolkit/APM/109-opentelemetry-export
# Configure the environment variables for the APM OpenTelemetry Collector
export RIVERBED_APM_SAAS_SERVER_HOST="agents.apm.myaccount.aternity.com"
export RIVERBED_APM_CUSTOMER_ID="12341234-12341234-13241234"
docker-compose up
or with PowerShell:
cd Riverbed-Community-Toolkit/APM/109-opentelemetry-export
# Configure the environement variable for the APM OpenTelemetry Collector
$env:RIVERBED_APM_SAAS_SERVER_HOST="agents.apm.myaccount.aternity.com"
$env:RIVERBED_APM_CUSTOMER_ID="12341234-12341234-13241234"
docker-compose up
Press CTRL + C in the shell where it is running.
Or in a shell, go to the folder where you keep the docker-compose.yaml and run:
docker-compose down
Copyright (c) 2022-2024 Riverbed Technology, Inc.
The contents provided here are licensed under the terms and conditions of the MIT License accompanying the software ("License"). The scripts are distributed "AS IS" as set forth in the License. The script also include certain third party code. All such third party code is also distributed "AS IS" and is licensed by the respective copyright holders under the applicable terms and conditions (including, without limitation, warranty and liability disclaimers) identified in the license notices accompanying the software.