> ## Documentation Index
> Fetch the complete documentation index at: https://docs.odigos.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Better Stack

> Configuring the Better Stack backend (Managed)

### Getting Started

<img src="https://d15jtxgb40qetw.cloudfront.net/betterstack.svg" alt="betterstack" className="not-prose h-20" />

{/*
  !! Do not remove this comment, this acts as a key indicator in `docs/sync-dest-doc.py` !!
  !! END CUSTOM EDIT !!
*/}

### Configuring Destination Fields

<Accordion title="Supported Signals:">
  ❌ Traces
  ✅ Metrics
  ✅ Logs
  ❌ Profiles
</Accordion>

* **BETTERSTACK\_TOKEN** `string` : Better Stack Source Token.
  * This field is required

<Check>
  We handle the endpoint internally, so you don't need to provide it.

  * The endpoint for metrics is `https://in-otel.logs.betterstack.com/metrics`
  * The endpoint for logs is `https://in-otel.logs.betterstack.com:443`
</Check>

### Adding Destination to Odigos

There are two primary methods for configuring destinations in Odigos:

##### **Using the UI**

<Steps>
  <Step>
    Use the [Odigos CLI](https://docs.odigos.io/cli/odigos_ui) to access the UI

    ```bash theme={null}
    odigos ui
    ```
  </Step>

  <Step>
    Click on `Add Destination`, select `Better Stack` and follow the on-screen instructions
  </Step>
</Steps>

##### **Using Kubernetes manifests**

<Steps>
  <Step>
    Save the YAML below to a file (e.g. `betterstack.yaml`)

    ```yaml theme={null}
    apiVersion: odigos.io/v1alpha1
    kind: Destination
    metadata:
      name: betterstack-example
      namespace: odigos-system
    spec:
      data: {}
      destinationName: betterstack
      secretRef:
        name: betterstack-secret
      signals:
      - METRICS
      - LOGS
      type: betterstack

    ---

    apiVersion: v1
    data:
      BETTERSTACK_TOKEN: <Base64 Better Stack Source Token>
    kind: Secret
    metadata:
      name: betterstack-secret
      namespace: odigos-system
    type: Opaque
    ```
  </Step>

  <Step>
    Apply the YAML using `kubectl`

    ```bash theme={null}
    kubectl apply -f betterstack.yaml
    ```
  </Step>
</Steps>
