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

# Tsuga

> Connect Tsuga live cluster metrics to Costory with an Operation API key, then query them in Advanced Explorer.

Connect Tsuga to query metrics, log aggregations, and trace aggregations live in Costory. Use them for unit economics (Financial metrics expressed on a per-unit basis, such as cost per customer, cost per API call, or cost per transaction.) or as an allocation key when you split shared costs. The **Tsuga** tile is **Live cluster metrics**.

![Connect Tsuga page with Operation API Key field and live-query explanation](https://mintcdn.com/costory/7N_qRRx_7ACcj7QT/images/external-metrics/connect-tsuga.png?fit=max\&auto=format\&n=7N_qRRx_7ACcj7QT\&q=85\&s=45b6675bc9c8a708dc02d50768872485)

Connect Tsuga: Operation API Key on the right, instructions on the left

[Tsuga integration walkthrough](https://www.youtube.com/embed/uBgBZcgXjrU)

Tsuga connector walkthrough

> [!TIP]
>
> Before you begin, make sure you have:
>
> * A **Tsuga account** with at least one metric, log stream, or trace
> * Permission to create **Operation API Keys** in your Tsuga workspace

> [tab] Manual setup
>
> **1. Create an Operation API Key in Tsuga**
>
> Go to [Settings > API Keys](https://app.tsuga.com/settings/api-keys?operation=true) and create a key with the **Operation** type. The value starts with `tsuga_`. Copy it. Tsuga shows the value only once.
>
> **2. Open the Tsuga tile**
>
> Go to [Integrations](https://app.costory.io/integration), click **+ Add integration**, then under **External metric** choose **Tsuga**. The connect URL is `/integration/new/tsuga/connect`.&#x20;
>
> **3. Connect your workspace**
>
> Set a **Connection name**, paste the **Operation API Key**, then click **Validate** and **Save connection**. Costory talks to `https://api.tsuga.com`, resolves your cluster, and makes metrics available in Advanced Explorer.
>
> ## Query metrics
>
> Once connected, pick Tsuga in Advanced Explorer (or ask an agent through [Costory MCP](https://docs.costory.io/features/mcp.md)). Click **+ Add Metric**, open **integrations**, and choose Tsuga. You can group by attributes, paste a Tsuga filter in the condition field, and use the series as a usage driver when splitting a shared cost.
>
> Costory queries Tsuga live. There is no sync job. Timestamps are UTC. How far back you can go depends on retention in your Tsuga workspace.
>
> See [Query after you connect](https://docs.costory.io/setup/usage-metrics#query-after-you-connect).
>
> ## Supported signals
>
> | Signal | What you can use |
> | - | - |
> | Metrics | Counters, gauges, and histograms |
> | Logs | Aggregations from log streams (for example error rate) |
> | Traces | Aggregations from distributed traces (for example p99 latency) |
>
> ## FAQ
>
> > [accordion] What is an Operation API Key?
> >
> > Tsuga has two key types. **Ingestion** keys are write-only and send data to Tsuga. **Operation** keys are read-only and query data. Costory needs an Operation key that starts with `tsuga_`.
>
> > [accordion] Can I use log or trace aggregations, not just raw metrics?
> >
> > Yes. Error rate, p99 latency, and similar aggregations work as usage metrics the same way raw metrics do.
>
> > [accordion] Can I filter by service or environment?
> >
> > Yes. Scope the metric with a Tsuga filter string in the condition field when you build the query or allocation.
>
> > [accordion] How do I find metric names in my workspace?
> >
> > Call Tsuga's `GET /v1/metrics` endpoint, or browse the API reference at [app.tsuga.com/swagger](https://app.tsuga.com/swagger).
>
> > [accordion] When will I see data after setup?
> >
> > As soon as the connection validates. Historical range follows the retention configured in your Tsuga workspace.

> [tab] Terraform
>
> Not supported.

## Next steps

> [card] [Build unit economics](https://docs.costory.io/features/unit-economics.md)
>
> Divide cloud costs by Tsuga metrics (cost per request, cost per user, and similar).

> [card] [Metrics Correlation](https://docs.costory.io/setup/usage-metrics)
>
> Query live external metrics in Advanced Explorer.

> [card] [Connect events](https://docs.costory.io/setup/events)
>
> Add deploys and incidents so you can correlate them with metric changes.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.