# LLM observability

> LLM observability is an open-source agent skill for developer tools. Guides an agent through metrics, tracing, logging, cost and alerting for LLM serving. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/ScaleDockHQ/better-supabase/tree/main/.agents/skills/llm-observability
- **Repository:** https://github.com/scaledockhq/better-supabase
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** llm-observability
- **Collection:** https://github.com/ScaleDockHQ/better-supabase
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through observing LLM serving stacks and LLM apps. It covers scraping Prometheus-format metrics from engines such as vLLM, SGLang, llama.cpp, TGI and llama-swap, collecting NVIDIA GPU telemetry, building Grafana views of latency, throughput, queueing and errors, and setting up request traces with OpenTelemetry GenAI conventions and backends like Langfuse or Phoenix.

The workflow is staged: it begins with read-only discovery of existing endpoints, Prometheus, Grafana and containers, then moves through metrics, then traces, then logs. It favours symptom-based paging over cause-based warnings, and it ships Prometheus scrape and alert-rule templates that the agent validates with promtool. Gateway work centres on LiteLLM callbacks, spend logs and per-key or team cost, with self-hosted models priced explicitly so spend does not read as zero.

The skill expects access to the running endpoints and their metrics URLs, and it asks the user about consumers, SLO targets, whether prompts may be stored, and where alerts should go. Its reference files cover privacy review of prompt and PII logging, retention and access.

## When your agent uses it

> Metrics, tracing, logging, cost tracking and alerting for LLM serving and LLM apps. Use when instrumenting or debugging vLLM, SGLang, llama.cpp server, TGI or llama-swap /metrics endpoints; scraping them with Prometheus and building Grafana dashboards (TTFT, inter-token latency, tokens/s, queue depth, KV-cache usage, errors); collecting NVIDIA GPU metrics with DCGM exporter or nvidia-smi (including unified-memory systems like DGX Spark/GB10); adding request tracing with OpenTelemetry GenAI semantic conventions, Langfuse, Arize Phoenix or OpenLLMetry; configuring LiteLLM gateway callbacks, Prometheus metrics, spend logs and per-key/team cost; writing Prometheus alert rules; or reviewing prompt/PII logging, redaction and retention. Also use when latency spikes, requests queue, GPUs look idle or full, costs jump, or a dashboard shows no data.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/llm-observability)
- [License: MIT](https://github.com/ScaleDockHQ/better-supabase/tree/HEAD/.agents/skills/llm-observability)

## Features

- **Engine metrics discovery:** Checks which vLLM, SGLang, llama.cpp, TGI or llama-swap metrics are exposed and records their prefixes and auth.
- **Prometheus and Grafana setup:** Provides scrape job templates, auth via credentials files, and dashboard and recording-rule guidance.
- **GPU telemetry:** Covers DCGM exporter and nvidia-smi, including caveats for unified-memory systems.
- **Request tracing:** Guides OpenTelemetry GenAI instrumentation and export to Langfuse, Phoenix or other OTLP backends.
- **LiteLLM spend tracking:** Configures gateway callbacks, spend logs and cost per team, key or model.
- **Alert rule templates:** Supplies symptom and cause alert examples and a promtool check step.
- **Prompt privacy review:** Lists where content can land and sets controls for logs, traces and retention.

## Good for

- Set up Prometheus to scrape my vLLM server and graph time to first token
- Find out why requests are queueing on my self-hosted model endpoint
- Add OpenTelemetry tracing to my LLM app without logging prompts
- Track LiteLLM spend per team and key across models
- Write Prometheus alert rules for latency and error-rate SLOs
- Diagnose why my Grafana LLM dashboard shows no data

## Install

### Claude Code

This skill ships in the `better-supabase` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add ScaleDockHQ/better-supabase
/plugin install better-supabase@better-supabase
```

Or copy only this skill to `~/.claude/skills/llm-observability`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/llm-observability &&
cp -R "$tmp/.agents/skills/llm-observability" ~/.claude/skills/llm-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/llm-observability` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/llm-observability` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/llm-observability &&
cp -R "$tmp/.agents/skills/llm-observability" ~/.agents/skills/llm-observability &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/llm-observability` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/llm-observability` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/llm-observability &&
cp -R "$tmp/.agents/skills/llm-observability" ~/.cursor/skills/llm-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/llm-observability` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/ScaleDockHQ/better-supabase.git --path .agents/skills/llm-observability
```

Or copy the folder to `~/.gemini/skills/llm-observability` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/llm-observability`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/llm-observability &&
cp -R "$tmp/.agents/skills/llm-observability" ~/.copilot/skills/llm-observability &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/llm-observability` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/ScaleDockHQ/better-supabase.git
```

Then copy `better-supabase/.agents/skills/llm-observability` into your agent's skills folder as `llm-observability`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before LLM observability starts?

It starts with read-only discovery of running containers, Prometheus, Grafana and the model endpoint's metrics, and it asks about consumers, SLO targets, prompt storage rules and alert destinations when discovery cannot answer them.

### Does LLM observability store or log prompts by default?

No. Prompt and completion content stays off in traces, logs and spend logs until someone approves it in writing, and the workflow includes a privacy review step.

### Which tools does LLM observability use?

It uses curl and jq for discovery, and the workflows reference Prometheus, Grafana, DCGM exporter, Langfuse or Phoenix as optional components to install or connect to.

### Does LLM observability cover Langfuse setup in depth?

No. Langfuse installation and operation are handled by a separate companion skill named langfuse; this skill covers the tracing integration points.

### How do I install LLM observability in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/llm-observability to use it in all your projects, or to .claude/skills/llm-observability in one project. Or install the better-supabase plugin, which includes it: /plugin marketplace add ScaleDockHQ/better-supabase, then /plugin install better-supabase@better-supabase.

### Does LLM observability run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use LLM observability?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to LLM observability?

The closest alternatives to LLM observability are LLM evals, API health monitoring, Go observability, Cost aware LLM pipeline and Workloads.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [LLM evals](https://ai-powered.com/skills/llm-evals): LLM evals is an open-source agent skill for developer tools.
- [API health monitoring](https://ai-powered.com/skills/api-health-monitoring): API health monitoring is an open-source agent skill for health and science.
- [Go observability](https://ai-powered.com/skills/go-observability): Go observability is an open-source agent skill for developer tools.
- [Cost aware LLM pipeline](https://ai-powered.com/skills/cost-aware-llm-pipeline): Cost aware LLM pipeline is an open-source agent skill for developer tools.
- [Workloads](https://ai-powered.com/skills/workloads): Workloads is an open-source agent skill for developer tools.
- [Phoenix CLI](https://ai-powered.com/skills/phoenix-cli): Phoenix CLI is an open-source agent skill for ai models and llm tooling.
- [Vllm plugin fl setup flagos](https://ai-powered.com/skills/vllm-plugin-fl-setup-flagos): Vllm plugin fl setup flagos is an open-source agent skill for developer tools.
- [Phoenix tracing](https://ai-powered.com/skills/phoenix-tracing): Phoenix tracing is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/llm-observability
