---
title: "Observe SlashObserve"
description: "The internals dashboard that watches the server itself, what each row answers, and how compose and the Helm chart provision it."
---

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

# Observe SlashObserve

The internals dashboard shows the server's own [metrics](/docs/operate/metrics/): its API, the agent and the model provider, the query proxy, the database pool, the scheduler and the fleet.
Use it to see whether the server is answering quickly, whether agent runs succeed, and whether several servers share the work.
It is an ordinary provisioned dashboard titled SlashObserve internals, in the folder SlashObserve.

## Add the dashboard to your server

1. Make sure a datasource with uid `prom` is a Prometheus that scrapes the server's `/metrics`.
   [Scrape it](/docs/operate/metrics/#scrape-it) shows the scrape job.
2. Put `internals.json` in a `SlashObserve` directory of the server's [provisioning directory](/docs/operate/provisioning/).
   Copy it from `deploy/compose/dashboards/SlashObserve/internals.json`.
   On Kubernetes, the Helm chart does this for you; see [Add it with the Helm chart](#add-it-with-the-helm-chart).
3. Wait for the first scrapes.
   The dashboard appears in the folder SlashObserve within a minute or two of the first scrape.

Until Prometheus has scraped the server a few times, the panels return no data and the dashboard is not saved yet.
The provisioner tries again every 30 seconds.
Until then `GET /api/v1/provision` lists the file with its error.

The dashboard is provisioned like any other file.
An edit made in the app is replaced the next time the file changes, and stays in the version history.

## Add it with the Helm chart

The Helm chart carries its own copy of the file and mounts it as the folder `SlashObserve` while `provisioning.internals` is `true`, which is the default.
See [Run on Kubernetes](/docs/operate/kubernetes/).
Add a datasource with uid `prom` under `datasources` that points at a Prometheus scraping the pod.
`make lint` fails when the chart's copy differs from the compose copy.

## Look at the dashboard in the replicas stack

The replicas stack of the repository's load test mounts `deploy/compose/dashboards/SlashObserve` as its provisioning directory.
Its Prometheus scrapes both servers as the `slashobserve` job behind the `prom` datasource.
The [demo](/docs/operate/demo/) does not provision the dashboard, because its Prometheus does not scrape the server.

## Reference

### What it needs

Every panel queries the datasource with uid `prom`, so that datasource must be a Prometheus that scrapes the server's `/metrics`.
The queries have no `job` selector, so a Prometheus that scrapes several SlashObserve servers shows their sum.

### What each row answers

The top line holds six stats:

- API requests per second.
- The share of API requests that failed with a server error.
- The 95th percentile request time.
- Agent runs in the dashboard's range.
- Model tokens in the dashboard's range.
- The share of the database pool in use.

| Row | What it shows |
| --- | --- |
| Is the API answering quickly? | Requests per second by status, request time, and the 95th percentile request time by route. |
| Is the agent working? | Agent runs and model calls per minute by outcome, the 95th percentile model call time by model, and model tokens per minute by direction. |
| Are datasource queries fast? | The 95th percentile datasource query time by datasource type, queries per second by outcome, and result cache lookups by hit or miss. |
| Is the database pool keeping up? | Pool connections by state, acquires per second, and the average wait for a connection. |
| Is the scheduler running its jobs? | Scheduled job runs in the range by job and outcome, and the jobs running now. |
| Are the servers sharing the work? | The number of live servers, datasource slots in use against their limit by datasource, and the 95th percentile time agent requests wait for a worker. |

A server with no model configured shows zero agent runs and model calls rather than empty panels.
The scheduler panels group by `exported_job`, because Prometheus renames the `job` label of the scheduler series when it clashes with the scrape job; see [Labels](/docs/operate/metrics/#labels).
