Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

2.0 KB
Raw Blame
<Frame>
  <img src="/images/hyperdx-dashboard-1.png" />
  <img src="/images/hyperdx-dashboard-2.png" />
</Frame>

<Frame>
  <img src="/images/hyperdx-dashboard-3.png" />
</Frame>

To send OpenTelemetry metrics and traces generated by OpenLIT from your AI Application to HyperDX, follow the below steps.

### 1. Get your Credentials

1. **Sign in to your HyperDX account**
1. **Get your API Key**:
   - Navigate to your HyperDX settings or API keys section
   - Generate or copy your existing API key
   - Example format: `x6xx7265-43x3-476x-1112-x9x52x29xxxx`

### 2. Configure OpenTelemetry Collector

HyperDX requires an OpenTelemetry Collector as an intermediary to receive and forward telemetry data.

**Install OpenTelemetry Collector (if not already running)**

For detailed installation instructions, refer to the [OpenTelemetry Collector Documentation](https://opentelemetry.io/docs/collector/installation/).

**Configure the Collector**

1. **Configure HTTP Receiver**: In the `receivers` section, ensure the `otlp` receiver is set with `endpoint: 0.0.0.0:4318`.
2. **Define HyperDX Exporter**: Add `otlphttp/hdx` exporter to send data to HyperDX.
3. **Assign to Pipelines**: Link the exporter to traces and metrics pipelines.

<Accordion title="Complete Collector Configuration">
```yaml
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

processors:
  batch:
  memory_limiter:
    # 80% of maximum memory up to 2G
    limit_mib: 1500
    # 25% of limit up to 2G
    spike_limit_mib: 512
    check_interval: 5s

exporters:
  otlphttp/hdx:
    endpoint: 'https://in-otel.hyperdx.io'
    headers:
      authorization: YOUR_HYPERDX_API_KEY_HERE
    compression: gzip

service:
  pipelines:
    traces:
      receivers: [ otlp ]
      processors: [ memory_limiter, batch ]
      exporters: [ otlphttp/hdx ]
    metrics:
      receivers: [ otlp ]
      processors: [ memory_limiter, batch ]
      exporters: [ otlphttp/hdx ]
```

Replace `YOUR_HYPERDX_API_KEY_HERE` with your actual HyperDX API Key.
</Accordion>