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

# SigNoz

> Connect SigNoz so agents can find slow operations, search logs and traces, and audit alert rules with a Service Account API key

Connect SigNoz Cloud or a self-hosted SigNoz instance to let CloudThinker agents rank a service's slowest operations, search and group logs, open a full trace waterfall, query metrics, and review alert rules and their history. You give CloudThinker two values: your SigNoz base URL and a Service Account API key. The setup is the same for SigNoz Cloud and self-hosted.

## Prerequisites

* A SigNoz Cloud or self-hosted SigNoz instance with at least one instrumented service sending telemetry. SigNoz creates services from your applications' telemetry, so agents can't create one for you.
* A SigNoz user with the SigNoz-Admin role, who can create a Service Account and its API key.
* Your SigNoz base URL: `https://<your-tenant>.signoz.cloud` for SigNoz Cloud, or the address you open SigNoz at for self-hosted, such as `https://signoz.internal.example.com`.
* For self-hosted SigNoz: the instance must accept connections from CloudThinker Cloud. To allowlist CloudThinker's egress IPs, you need the current list. These docs don't publish CloudThinker's egress IP list: ask your CloudThinker contact, or [contact us](https://cloudthinker.io/contact). See [Reaching private services](https://docs.cloudthinker.io/guide/connections/overview.md#reaching-private-services) for other options.
* The **Admin** role in the CloudThinker workspace, which you need to add connections. See [Roles](https://docs.cloudthinker.io/guide/security/roles.md).

## Setup

**1. Create a Service Account**

In SigNoz, open **Settings → Service Accounts**, click **New Service Account**, and name it something you'll recognize later, such as `cloudthinker`. The steps are the same on SigNoz Cloud and self-hosted.

**2. Pick its role**

On the account's **Overview** tab, pick the narrowest role from the **Roles** dropdown:

| You want agents to | Role |
| - | - |
| Investigate services, logs, traces, metrics, dashboards, and alerts | **SigNoz-Viewer** |
| Also create, update, or delete dashboards and alerts | **SigNoz-Editor** |
| Also manage saved views and notification channels | **SigNoz-Admin** |

Click **Save** before you create a key. SigNoz-Admin can also manage users, roles, and service accounts, so pick it only when you need it.

**3. Create an API key**

Open the account's **Keys** tab, click **Add Key**, name it (for example `cloudthinker-key`), set an expiration if your policy needs one, and copy the key. SigNoz shows it only once.

**4. Add the connection in CloudThinker**

In the sidebar, click **More → Workspace settings → Connections**, stay on the **Builtin Connections** tab, and select **SigNoz**. Fill in:

* **SIGNOZ\_URL**: the base URL only, for example `https://<your-tenant>.signoz.cloud`. Don't add `/api/v1` or any other path.
* **SIGNOZ\_API\_KEY**: the key you copied.
* **LOG\_LEVEL**: leave it at **Info**. It sets how much detail the connection writes to CloudThinker's diagnostic logs, which support uses when troubleshooting.

Click **Connect**.

**Success state:** SigNoz shows **Connected**.

## Connection details

| Field | Required | Description | Example |
| - | - | - | - |
| **SIGNOZ\_URL** | Yes | Base URL of your instance, with no path | `https://<your-tenant>.signoz.cloud` |
| **SIGNOZ\_API\_KEY** | Yes | Service Account API key | From the account's **Keys** tab |
| **LOG\_LEVEL** | No | Detail level for CloudThinker's internal connection logs, used by support. Default **Info** | **Info** |

## Required permissions

Agents can do exactly what the Service Account's role allows, and SigNoz enforces it.

* **SigNoz-Viewer** covers every read in the capability table below.
* **SigNoz-Editor** adds dashboard and alert writes. SigNoz doesn't document Editor access to saved views or notification channels, so use SigNoz-Admin for those.
* **SigNoz-Admin** adds every write, plus user, role, and service account management in SigNoz.

Every change an agent makes goes through your workspace's [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md) first. On the default **Auto · Rules + AI · Ask me** mode, AI judgment can let a safe change run without asking — and an Allow Rule can too, once CloudThinker turns on [Rule enforcement](https://docs.cloudthinker.io/guide/approvals/rules.md#troubleshooting) for your workspace. Choose **Manual** to approve every change yourself.

A [Rule](https://docs.cloudthinker.io/guide/approvals/rules.md) can make CloudThinker ask first for a write, or refuse it outright.

> [!TIP]
>
> Start with SigNoz-Viewer. Move to SigNoz-Editor for dashboard and alert changes, or SigNoz-Admin only when you want agents to manage saved views or channels for you.

## Agent capabilities

| Capability | What agents can do | Approval |
| - | - | - |
| **Services** | List instrumented services and rank a service's top operations by latency | No |
| **Logs** | Search logs with filters such as severity, and aggregate them by a field such as service | No |
| **Traces** | Search and aggregate traces, and open a full trace waterfall by trace ID | No |
| **Metrics** | List metrics and run time-series queries | No |
| **Dashboards** | List dashboards and templates, and read a dashboard's full definition | No |
| **Alerts** | List alert rules with their state, and read a rule's state-change history | No |
| **Saved views and channels** | Read saved query views and notification channels | No |
| **Writes** | Create, update, or delete alerts, dashboards, saved views, and notification channels, and import a dashboard from JSON. Needs SigNoz-Editor (dashboards, alerts) or SigNoz-Admin (saved views, channels) | Goes through Approvals |

Log, trace, and metric searches always run over a time window. Agents start with the last 15 minutes and widen it when nothing comes back, so name a window in your prompt if you care about a specific period.

> [!WARNING]
>
> A SigNoz delete can't be undone: a deleted alert loses its history, and deleting a notification channel leaves its routed alerts with nowhere to send. Agents show you the current record before an update or delete, so read it before you approve.

### Verify the connection

```text theme={null}
List my SigNoz services, dashboards, and alert rules, and tell me which alerts are firing
```

Expect a count and sample of services, dashboards, and alert rules, plus how many alerts are firing now.

### Example prompts

```text theme={null}
What are the slowest operations for the checkout service over the last hour?
Search ERROR logs from the last 30 minutes and group them by service
Review my SigNoz alert rules and flag any with no notification channel
```

## Troubleshooting

> [accordion] Every request returns 404
>
> **SIGNOZ\_URL** has a path on the end. Set it to the base URL only, such as `https://<your-tenant>.signoz.cloud`, with no `/api/v1`.

> [accordion] 401 Unauthorized
>
> The key is wrong, expired, or revoked. Create a new key on the Service Account's **Keys** tab and update **SIGNOZ\_API\_KEY**.

> [accordion] 403 Forbidden
>
> The Service Account's role doesn't allow the action. A SigNoz-Viewer key returns this on any write. A SigNoz-Editor key may return it on saved view and notification channel writes, since SigNoz doesn't document Editor access to those. Change the role in SigNoz if you want agents to make that change.

> [accordion] A log or trace search comes back empty
>
> Nothing matched in the window searched. Ask for a wider window, such as the last 6 hours, or drop the filter and add it back one clause at a time.

> [accordion] 429 or 503 errors
>
> Your SigNoz instance is rate limiting or restarting. Wait a minute and ask again. On self-hosted SigNoz, check the query service's health.

## Security

* **Least privilege** — grant only the permissions the agents need for your use case; start read-only and widen later.
* **Read-only by default** — use read-only credentials unless you want agents to make changes through this connection.
* **Rotate credentials** — rotate keys and tokens on your normal schedule; CloudThinker picks up the new value when you update the connection.
* **Revoke on offboarding** — remove the credential at the provider when you delete a connection or a teammate leaves.

- **One Service Account for CloudThinker**: don't reuse a teammate's key. A dedicated account lets you revoke CloudThinker's access without touching anyone else's.
- **Set a key expiration**: rotate the key and update **SIGNOZ\_API\_KEY** before it lapses, or the connection stops with 401 errors.

## Related

> [card] [Approvals](https://docs.cloudthinker.io/guide/approvals/overview.md)
>
> Decide which SigNoz writes run, wait for a person, or are refused.

> [card] [Grafana](https://docs.cloudthinker.io/guide/connections/grafana.md)
>
> Connect Grafana dashboards and data sources.


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