> For the complete documentation index, see [llms.txt](https://docs.thousandeyes.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/observability-platforms/splunk-observability-cloud.md).

# Splunk Observability Cloud

Splunk Observability Cloud is a real-time observability platform purpose-built for monitoring metrics and traces at scale. It ingests OpenTelemetry data and provides advanced dashboards and analytics to help teams detect and resolve performance issues quickly. This guide explains how to integrate ThousandEyes telemetry with Splunk Observability Cloud using OpenTelemetry.

For more information about sending metrics to Splunk Observability Cloud using OpenTelemetry, see [Splunk Observability Cloud: Manage Data](https://help.splunk.com/en/splunk-observability-cloud/manage-data).

## Prerequisites

* You have [created a ThousandEyes test](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/observability-platforms#create-a-test).
* You know your Splunk Observability Cloud **realm** (for example **us0**, **us1**, **eu0**). To find your realm, see [About Splunk Observability Cloud Realms](https://help.splunk.com/en/splunk-observability-cloud/manage-data/available-data-sources/supported-integrations-in-splunk-observability-cloud/login-services#d261e29fd18ca4b2884e699792c604105--en__about-realms).
* You use an ingest hostname supported by Splunk. You can use the current hostname `ingest.{REALM}.observability.splunkcloud.com` or the legacy hostname `ingest.{REALM}.signalfx.com`. Splunk documents both hostnames for OTLP/HTTP in [OTLP/HTTP exporter](https://help.splunk.com/en/splunk-observability-cloud/manage-data/splunk-distribution-of-the-opentelemetry-collector/get-started-with-the-splunk-distribution-of-the-opentelemetry-collector/collector-components/exporters/otlphttp-exporter).
* You have created a Splunk Observability Cloud access token with permission to send data:
  1. In the Splunk Observability Cloud platform, go to **Settings > Access Token**.
  2. Click **Create Token**.
  3. Enter a **Name**.
  4. Select the **Ingest** scope.
  5. Click **Create** to generate your access token.
  6. Copy the access token and store it securely.

     You need the access token to send telemetry data to Splunk Observability Cloud.

For more information, see [Create and manage organization access tokens using Splunk Observability Cloud](https://help.splunk.com/en/splunk-observability-cloud/administer/authentication-and-security/authentication-tokens/org-access-tokens).

## Stream OpenTelemetry Metrics to Splunk Observability Cloud

### Step 1: Create a Metrics Integration

#### Using the ThousandEyes Platform

1. In ThousandEyes, go to **Manage > Integration 1.0**.
2. Click **+New Integration** and select **ThousandEyes for OpenTelemetry**.
3. Enter a **Name** for the integration.
4. Set the **Target** to **HTTP**.
5. In **Target**, enter the OTLP/HTTP metrics ingest URL:

   `https://ingest.{REALM}.observability.splunkcloud.com/v2/datapoint/otlp`

   Replace `{REALM}` with your realm (for example `us1`). If your organization still uses the legacy hostname, use `https://ingest.{REALM}.signalfx.com/v2/datapoint/otlp` instead.
6. For **Preset Configurations**, select **Splunk Observability Cloud**.
7. For **Auth Type**, select **Custom**.
8. Add the following **Custom Headers**:
   * `X-SF-Token`: your Splunk Observability Cloud access token from [Prerequisites](#prerequisites).
   * `Content-Type`: `application/x-protobuf`.
9. For the OpenTelemetry **Signal**, select **Metric**.
10. For the **Data Model Version**, select **v2**.
11. Select a **test**.

    For more information on creating a test, see [General Setup Instructions](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/observability-platforms#general-setup-instructions).
12. Click **Save**.

#### Using the ThousandEyes API

Create the HTTP stream programmatically:

```curl
curl -v -XPOST https://api.thousandeyes.com/v7/streams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -d '{
    "type": "opentelemetry",
    "testMatch": [{
      "id": "281474976717575",
      "domain": "cea"
    }],
    "endpointType": "http",
    "signal": "metric",
    "dataModelVersion": "v2",
    "streamEndpointUrl": "https://ingest.{REALM}.observability.splunkcloud.com/v2/datapoint/otlp",
    "customHeaders": {
      "X-SF-Token": "{TOKEN}",
      "Content-Type": "application/x-protobuf"
    }
  }'
```

**Using gRPC (optional)**

```curl
curl -v -XPOST https://api.thousandeyes.com/v7/streams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -d '{
    "type": "opentelemetry",
    "testMatch": [{
      "id": "281474976717575",
      "domain": "cea"
    }],
    "endpointType": "grpc",
    "signal": "metric",
    "dataModelVersion": "v2",
    "streamEndpointUrl": "https://ingest.{REALM}.observability.splunkcloud.com:443",
    "customHeaders": {
      "X-SF-Token": "{TOKEN}",
      "Content-Type": "application/x-protobuf"
    }
  }'
```

Replace `{REALM}`, `{TOKEN}`, and the `testMatch` values with your Splunk realm, access token, and test identifiers.

### ThousandEyes Dashboard in Splunk Observability Cloud

When metrics from your integration appear in Splunk Observability Cloud, you can use the ThousandEyes Network Monitoring Dashboard. The dashboard includes:

* **HTTP Server Availability (%)**: Availability of monitored HTTP servers.
* **HTTP Throughput (bytes/s)**: Data transfer rate over time.
* **Client Request Duration (seconds)**: Latency of client requests.
* **Web Page Load Completion (%)**: Percentage of successful page loads.
* **Page Load Duration (seconds)**: Time taken to load pages.

![ThousandEyes Dashboard in Splunk Observability Cloud](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-0673ad460013145189027163aa18bcbaafebc9df%2Fsplunk-observability-cloud-thousandeyes-dashboard.png?alt=media)

You can download the dashboard template from [ThousandEyes Splunk Observability Cloud dashboard template](https://github.com/thousandeyes/thousandeyes-observability-dashboards/blob/main/splunk/ThousandEyesDashboard.json) on GitHub.

## Stream OpenTelemetry Traces to Splunk Observability Cloud

You can export two trace sources to Splunk Observability Cloud:

| Trace source     | Example use                                                                              | Supported tests                                                                                                                                            |
| ---------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **HAR**          | Inspect the HTTP requests and timing of a page load, web transaction, or API test.       | Page load, web transaction, and API tests.                                                                                                                 |
| **Network Path** | Inspect the topology from the source agent through intermediate hops to the destination. | Agent-to-server and agent-to-agent tests. Other supported test types require network measurements; see Support and Limitations for test-specific settings. |

For the complete list of tests and configuration requirements, see [Support and Limitations](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/support-and-limitations.md). For trace attributes and timing, see [Data Model v2 - Traces](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/data-model/data-model-v2/traces.md).

### Step 1: Create a Traces Integration

#### Using the ThousandEyes Platform

1. In ThousandEyes, go to **Manage > Integration 1.0**.
2. Click **+New Integration** and select **ThousandEyes for OpenTelemetry**.
3. Enter a **Name** for the integration.
4. Set the **Target** to **HTTP**.
5. In **Target**, enter the OTLP/HTTP trace ingest URL:

   `https://ingest.{REALM}.observability.splunkcloud.com/v2/trace/otlp`

   Replace `{REALM}` with your realm. If your organization uses the legacy hostname, use `https://ingest.{REALM}.signalfx.com/v2/trace/otlp` instead.
6. For **Preset Configurations**, select **Splunk Observability Cloud**.
7. For **Auth Type**, select **Custom**.
8. Add the following **Custom Headers**:
   * `X-SF-Token`: your Splunk Observability Cloud access token from [Prerequisites](#prerequisites).
   * `Content-Type`: `application/x-protobuf`.
9. For the OpenTelemetry **Signal**, select **Trace**.
10. Confirm that **Data Model Version** is **v2**.
11. Under **Data Sources**, select the source to export:
    * For the HAR example, select **HAR** and clear **Network Path**.
    * For the Network Path example, select **Network Path** and clear **HAR**.
    * To export both sources, select both checkboxes and choose a test that supports both, such as a page load test with **Perform Network Measurements** enabled.
12. Select a test that supports the selected source.
13. Click **Save**.

#### Using the ThousandEyes API

The following examples create separate HAR and Network Path streams. Replace `{REALM}`, `{TOKEN}`, and `{TEST_ID}` with your Splunk realm, access token, and ThousandEyes test ID. Set `$BEARER_TOKEN` to your ThousandEyes API bearer token.

**Example: Export HAR Application Traces**

Use a page load, web transaction, or API test. This example enables HAR input and disables Network Path input:

```curl
curl -X POST https://api.thousandeyes.com/v7/streams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -d '{
    "type": "opentelemetry",
    "testMatch": [{
      "id": "{TEST_ID}",
      "domain": "cea"
    }],
    "endpointType": "http",
    "signal": "trace",
    "dataModelVersion": "v2",
    "inputConfig": {
      "trace": {
        "har": { "enabled": true },
        "netpath": { "enabled": false }
      }
    },
    "streamEndpointUrl": "https://ingest.{REALM}.observability.splunkcloud.com/v2/trace/otlp",
    "customHeaders": {
      "X-SF-Token": "{TOKEN}",
      "Content-Type": "application/x-protobuf"
    }
  }'
```

**Example: Export Network Path Traces**

Use an agent-to-server or agent-to-agent test, or enable network measurements on another supported test type. See [Support and Limitations](https://docs.thousandeyes.com/product-documentation/integration-guides/opentelemetry/support-and-limitations.md) for test-specific settings. This example enables Network Path input and disables HAR input:

```curl
curl -X POST https://api.thousandeyes.com/v7/streams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -d '{
    "type": "opentelemetry",
    "testMatch": [{
      "id": "{TEST_ID}",
      "domain": "cea"
    }],
    "endpointType": "http",
    "signal": "trace",
    "dataModelVersion": "v2",
    "inputConfig": {
      "trace": {
        "har": { "enabled": false },
        "netpath": { "enabled": true }
      }
    },
    "streamEndpointUrl": "https://ingest.{REALM}.observability.splunkcloud.com/v2/trace/otlp",
    "customHeaders": {
      "X-SF-Token": "{TOKEN}",
      "Content-Type": "application/x-protobuf"
    }
  }'
```

To export both sources through one stream, set both `har.enabled` and `netpath.enabled` to `true` and select a test that supports both. Each source produces its own traces. Use the test ID, source agent, and test-run time to compare the results.

When creating a stream, enable each source you want to export in `inputConfig`. Omitted sources are disabled, and at least one source must be enabled. If you omit `inputConfig` entirely on create, HAR is enabled and Network Path is disabled. When updating a stream, omitted sources remain unchanged.

**Using gRPC (optional)**

For gRPC, use `endpointType: "grpc"` and the realm's ingest hostname on port `443`. The trace source settings are the same as for HTTP. This example exports Network Path traces:

```curl
curl -X POST https://api.thousandeyes.com/v7/streams \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $BEARER_TOKEN" \
  -d '{
    "type": "opentelemetry",
    "testMatch": [{
      "id": "{TEST_ID}",
      "domain": "cea"
    }],
    "endpointType": "grpc",
    "signal": "trace",
    "dataModelVersion": "v2",
    "inputConfig": {
      "trace": {
        "har": { "enabled": false },
        "netpath": { "enabled": true }
      }
    },
    "streamEndpointUrl": "https://ingest.{REALM}.observability.splunkcloud.com:443",
    "customHeaders": {
      "X-SF-Token": "{TOKEN}",
      "Content-Type": "application/x-protobuf"
    }
  }'
```

### Step 2: Visualize Traces in Splunk Observability Cloud

After the selected test runs, use Trace Analyzer to find its traces:

1. In Splunk Observability Cloud, select **APM > Trace analyzer**.
2. Set the time range to include a recent test run.
3. First, select **All environments**. Direct ThousandEyes streams do not set a deployment environment by default, so Splunk can display their environment as `<unknown>`.
4. Set the sample ratio to **1:1** to search all traces.
5. Add a tag filter for `thousandeyes.test.id` with your test ID, or `thousandeyes.stream.id` with the ID returned when you created the stream.

Trace Analyzer supports filters on indexed and unindexed span tags. For filtering options, see [Filter data in Splunk APM](https://help.splunk.com/en/splunk-observability-cloud/monitor-application-performance/filter-data-in-splunk-apm). For time ranges, sampling, and result limits, see [Search traces using Trace Analyzer](https://help.splunk.com/en/splunk-observability-cloud/monitor-application-performance/manage-services-spans-and-traces-in-splunk-apm/search-traces-using-trace-analyzer).

#### Visualizing HAR Application Traces

1. To narrow the results to the application being tested, select its request domain in **Services**, such as `www.example.com`. HAR spans use the HTTP request domain as `service.name`, so requests to additional domains can appear as additional services.
2. Select a trace ID to open its **Waterfall**.
3. Expand the root operation, `HTTP <domain>`, to inspect the individual HTTP request spans. Their timing represents the requests recorded in the HAR data.
4. Select a request span and inspect `http.request.method`, `url.full`, and `http.response.code` in its metadata. Use `thousandeyes.test.id` and `thousandeyes.source.agent.id` to confirm the test and agent.

To focus on particular requests within a trace, enter a resource name in the waterfall search field and enable **Matches only**. Clear the service filter within the trace if you also want to inspect requests to other domains. The following example isolates font requests.

![Splunk Observability Cloud HAR waterfall filtered to font requests with HTTP response details](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-17a96e124da65b50cdd61c0e710587ca0db6325c%2Fsplunk-observability-har-waterfall.jpg?alt=media)

#### Visualizing Network Path Traces

1. In **Services**, select the source service, such as `ThousandEyes Agent 42`, where `42` is the source agent ID.
2. Select a trace ID to open its **Waterfall**.
3. Expand the `ThousandEyes test task` root operation, then the `network path attempt observed` operations. Each attempt contains paired client and server edge spans named `network path edge to <node>` and `network path edge from <node>`.
4. Select an edge span and inspect `network.path.hop.index`, `network.local.address`, and `network.peer.address` to identify the topology edge. When available, `network.path.hop.rtt` reports the RTT in milliseconds from the source agent to the receiving hop.
5. Expand **Trace flow** above the waterfall to see the services and their parent-child relationships. Network Path services represent the source agent, intermediate hops, and destination. An unknown intermediate node can appear as `unknown hop 3`.

![Splunk Observability Cloud Network Path trace flow, waterfall, and selected hop RTT](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-45ad3ba4297e57a75a5fbf2077d57307d3a57122%2Fsplunk-observability-network-path.jpg?alt=media)

Network Path attempt and edge spans are point observations with equal start and end timestamps. Their waterfall duration does not measure link latency. Use `network.path.hop.rtt` for source-to-hop RTT; it is not the delay between adjacent hops. Network Path traces do not currently include Forward Loss or Link Delay from Path Visualization.

For waterfall controls and span metadata, see [View and filter for spans within a trace](https://help.splunk.com/en/splunk-observability-cloud/monitor-application-performance/manage-services-spans-and-traces-in-splunk-apm/view-and-filter-for-spans-within-a-trace).

If a service chart has no data, check Trace Analyzer before changing the stream. Splunk's service metrics depend on span kinds, so a trace can be available even when a service chart has no request metrics. See [Learn about Monitoring MetricSets](https://help.splunk.com/en/splunk-observability-cloud/monitor-application-performance/analyze-services-with-span-tags-and-metricsets/learn-about-monitoring-metricsets).

If you also link ThousandEyes tests to Splunk APM, see [Distributed Tracing with Splunk Observability APM](https://docs.thousandeyes.com/product-documentation/integration-guides/custom-built-integrations/distributed-tracing/distributed-tracing-splunk-apm).
