Elastic
Elastic Observability is a search-powered analytics platform that unifies logs, metrics, traces, and uptime data for actionable insights. This guide explains how to integrate ThousandEyes metrics with Elastic using OpenTelemetry.
For more information about sending metrics to Elastic using OpenTelemetry, see Elastic Observability: Upstream OpenTelemetry Collectors and language SDKs.
Prerequisites
You have created a ThousandEyes test.
You have obtained the Managed OTLP endpoint for your Elastic project:
In the Elastic project dashboard, go to Connection alias.
Click Edit.
Copy the Managed OTLP endpoint.
Example:
https://my-observability-project-e49e89.ingest.us-central1.gcp.elastic.cloud
You have generated an Elastic API key:
In your Elastic dashboard, go to Cloud > Projects.
Select a project.
In the project dashboard, under API keys, click Manage project API keys.
Click +Create API key.
Enter a Name.
Click Create API key.
Copy the API key to use it to send telemetry data to Elastic.
Stream OpenTelemetry Metrics to Elastic
Step 1: Create a Metrics Integration
Using the ThousandEyes UI
In ThousandEyes, go to Manage > Integration 1.0.
Click +New Integration and select OpenTelemetry Integration.
Enter a Name for the integration.
Set the Target to GRPC.
For the Endpoint URL, enter the Managed OTLP endpoint for your Elastic project (see Prerequisites).
For Preset Configurations, select Elastic.
For Auth Type, select Custom.
Add the following Custom Headers:
"Authorization": "ApiKey {TOKEN}".Use your Elastic API key. Make sure to prefix it with
ApiKey. For example:ApiKey {TOKEN}.For the OpenTelemetry Signal, select Metric.
For the Data Model Version, select v2.
Select a test.
For more information on creating a test, see General Setup Instructions.
Click Save.
Using the ThousandEyes API
Create the HTTP stream programmatically:
Replace {TOKEN} and {STREAM_ENDPOINT_URL} with your Elastic API key and APM endpoint.
ThousandEyes Dashboard in Elastic
In Elastic, go to Observability > Metrics.
Use Metrics Explorer to search for ThousandEyes metrics and apply filters.

Stream OpenTelemetry Traces to Elastic
Step 1: Create a Traces Integration
Using the ThousandEyes UI
In ThousandEyes, go to Manage > Integration 1.0.
Click +New Integration and select OpenTelemetry Integration.
Enter a Name for the integration.
Set the Target to GRPC.
For the Endpoint URL, enter the Managed OTLP endpoint for your Elastic project (see Prerequisites).
For Preset Configurations, select Elastic.
For Auth Type, select Custom.
Add the following Custom Headers:
"Authorization": "ApiKey {TOKEN}"Use your Elastic API key. Make sure to prefix it with
ApiKey.For example:
ApiKey {TOKEN}.For the OpenTelemetry Signal, select Trace.
Select a test.
For more information on creating a test, see General Setup Instructions.
Click Save.
Using the ThousandEyes API
Create the HTTP stream programmatically:
Replace {TOKEN} and {STREAM_ENDPOINT_URL} with your Elastic API key and APM endpoint.
Step 2: Visualize Traces in Elastic
In Elastic, navigate to Observability > Applications > Traces.
Select the relevant service.
Open the Traces view and apply filters.

Stream OpenTelemetry Logs to Elastic
Step 1: Create a Logs Integration
Using the ThousandEyes UI
In ThousandEyes, go to Manage > Integration 1.0.
Click +New Integration and select OpenTelemetry Integration.
Enter a Name for the integration.
Set the Target to GRPC.
For the Endpoint URL, enter the Managed OTLP endpoint for your Elastic project (see Prerequisites).
For Preset Configurations, select Elastic.
For Auth Type, select Custom.
Add the following Custom Headers:
"Authorization": "ApiKey {TOKEN}"Use your Elastic API key. Make sure to prefix it with
ApiKey.For example:
ApiKey {TOKEN}.For the OpenTelemetry Signal, select Log.
Select a test.
For more information on creating a test, see General Setup Instructions.
Click Save.
Using the ThousandEyes API
Create the HTTP stream programmatically:
Replace {TOKEN} and {STREAM_ENDPOINT_URL} with your Elastic API key and APM endpoint.
Step 2: Visualize Logs in Elastic
In Elastic, navigate to Observability > Discover.
Use the Logs Explorer to search for ThousandEyes log entries and apply filters.
For example:
resource.attributes.thousandeyes.account.id : *

Last updated