Agent skill

Observability Architecture

by majiayu000 in majiayu000/litellm-rs

LiteLLM-RS Observability Architecture. An agent skill from majiayu000/litellm-rs.

MITAuto-check passedDevOps & Cloud

Install Observability Architecture

skills CLI
$ npx skills add majiayu000/litellm-rs --skill observability-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install majiayu000/litellm-rs observability-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/majiayu000/litellm-rs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/observability-architecture .claude/skills/observability-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
observability-architecture
GitHub stars
118
Token cost
~1.3k tokens
SKILL.md length
302 words
Files
6
Skills in repo
9
Repo updated
First seen
Licence
MIT

At a glance

LiteLLM-RS Observability Architecture. An agent skill from majiayu000/litellm-rs.

  • Works in 3 steps: HTTP metrics — MetricsMiddleware… → Health/status routes —… → Callback exporters — configured under…
  • Changing metrics
  • SKILL.md covers Overview, Configuration and References
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Observability Architecture is an agent skill from majiayu000/litellm-rs. LiteLLM-RS Observability Architecture. Covers the Prometheus-format metrics rendered by the metrics middleware and /metrics endpoint, health/readiness endpoints, request logging, and the OpenTelemetry/Datadog/Langfuse callback exporters. Use when adding or changing metrics or log instrumentation, implementing or debugging health checks, wiring Prometheus alert rules, or configuring the monitoring stack.

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `reference/alerting.md`, `reference/best-practices.md` and `reference/health-checks.md`).

It sits in DevOps & Cloud, covering Observability, Monitoring and alerting and Model routing and gateways. It works with Prometheus, OpenTelemetry, Langfuse and Datadog. The repository describes itself as: Self-hosted Rust LLM gateway with OpenAI-compatible APIs, load balancing, failover, and a reusable Rust kernel. The licence is MIT.

When your agent uses it

  • Changing metrics
  • Log instrumentation
  • Debugging health checks
  • Wiring Prometheus alert rules

Example prompts

  • “/observability-architecture”

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. HTTP metrics — MetricsMiddleware (src/server/middleware/metrics.rs) counts requests with process-local atomics and renders Prometheus text…
  2. Health/status routes — src/server/routes/health.rs mounts /health, /health/ready, /health/detailed, /status, /version, and /metrics on the…
  3. Callback exporters — configured under monitoring.callbacks, the OpenTelemetryIntegration (OTLP/HTTP JSON), DataDogIntegration, and…

What it can do on your machine

Read from SKILL.md and the folder at commit ed3f4d9. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Observability Architecture loads about 1.3k tokens when it runs. Until then it costs about 108 tokens; SKILL.md has 302 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~108
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from majiayu000/litellm-rs at commit ed3f4d9, republished under its MIT licence (© majiayu000). 302 words, ~1,262 tokens.

Download SKILL.mdSave it as .claude/skills/observability-architecture/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
observability-architecture
description
LiteLLM-RS Observability Architecture. Covers the Prometheus-format metrics rendered by the metrics middleware and /metrics endpoint, health/readiness endpoints, request logging, and the OpenTelemetry/Datadog/Langfuse callback exporters. Use when adding or changing metrics or log instrumentation, implementing or debugging health checks, wiring Prometheus alert rules, or configuring the monitoring stack.

Observability Architecture Guide

Overview

Observability in LiteLLM-RS is built from three runtime pieces:

  1. HTTP metrics — MetricsMiddleware (src/server/middleware/metrics.rs) counts requests with process-local atomics and renders Prometheus text format on demand. No prometheus crate is used; series are hand-rendered and use the gateway_ prefix except the standalone rate_limiter_degraded_total counter.
  2. Health/status routes — src/server/routes/health.rs mounts /health, /health/ready, /health/detailed, /status, /version, and /metrics on the main HTTP server.
  3. Callback exporters — configured under monitoring.callbacks, the OpenTelemetryIntegration (OTLP/HTTP JSON), DataDogIntegration, and LangfuseIntegration receive real LLM lifecycle events through the CallbackDispatcher stored in AppState (exposed as RuntimeObservability).
┌─────────────────────────────────────────────────────────────────┐
│                    LiteLLM Gateway                              │
├─────────────────────────────────────────────────────────────────┤
│  ┌───────────────┐  ┌───────────────┐  ┌───────────────┐       │
│  │  Metrics      │  │ Health/status │  │  Callback     │       │
│  │  middleware   │  │ routes        │  │  dispatcher   │       │
│  └───────┬───────┘  └───────┬───────┘  └───────┬───────┘       │
└──────────┼──────────────────┼──────────────────┼───────────────┘
           ▼                  ▼                  ▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Prometheus       │ │ LB / K8s probes  │ │ OTLP / Datadog / │
│ scrapes /metrics │ │ + JSON status    │ │ Langfuse backends│
└──────────────────┘ └──────────────────┘ └──────────────────┘

Configuration

The section is monitoring: at the top level of config/gateway.yaml (deserialized as GatewayConfig.monitoring, src/config/models/gateway.rs). The outer monitoring models use #[serde(deny_unknown_fields)], but callback backend payloads such as OpenTelemetryConfig do not all make that guarantee; strictness follows the concrete deserialized struct.

yaml
monitoring:
  metrics:
    enabled: true          # gates MetricsMiddleware (src/server/http.rs)
    port: 9090             # default 9090; validated > 0 when enabled
    path: "/metrics"       # validated non-empty, starts with '/'
    interval_seconds: 15
  tracing:
    enabled: false
    endpoint: null         # REQUIRED when enabled: true (config validation)
    service_name: "litellm-rs"
    sampling_rate: 0.1
    jaeger: null           # or {agent_endpoint, service_name}
  health:
    path: "/health"
    detailed: true
  logging: null            # or {level, format: text|json|structured, outputs}
  callbacks:
    queue_capacity: 1024
    timeout_ms: 5000
    backends: []           # {type: opentelemetry|datadog|langfuse, config: {...}}

Wiring notes (verified against current code):

  • metrics.enabled is the only metrics key with runtime effect: it wraps the app in Condition::new(metrics_enabled, MetricsMiddleware) (src/server/http.rs). The /metrics route itself is hardcoded in routes::health::configure_routes; port, path, and interval_seconds are parsed and validated but not consumed by runtime wiring today.
  • tracing.enabled only appears in the startup summary log (src/lib.rs); OTLP trace export is configured through callbacks.backends, not the tracing: section.
  • logging is parsed/validated but the log subscriber is initialized in src/main.rs init_logging from the CLI/env level, not from this section.
  • health.path and health.detailed are parsed and validated, but route registration is hardcoded to /health, /health/ready, and /health/detailed; neither field changes the runtime health surface today.

References

© majiayu000, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in .claude/skills/observability-architecture of majiayu000/litellm-rs.

  • SKILL.md
  • reference/alerting.md
  • reference/best-practices.md
  • reference/health-checks.md
  • reference/metrics.md
  • reference/tracing-and-logging.md

Open the folder on GitHubat commit ed3f4d9

Compare with similar skills

Observability Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Observability Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Observability Architecture this skillmajiayu000/litellm-rs118—~1.3kAutomated safety check: PassMIT
Ag2 Telemetryag2ai/build-with-ag2252—~1.9kAutomated safety check: PassApache-2.0
Frontmcp Observabilityagentfront/frontmcp146—~4.6kAutomated safety check: PassApache-2.0
Monitoring Observabilityahmedasmar/devops-claude-skills203—~3.9kAutomated safety check: PassNone
ObservabilityTheBeardedBearSAS/claude-craft107—~547Automated safety check: PassMIT
Tsh Implementing ObservabilityTheSoftwareHouse/copilot-collections284—~2kAutomated safety check: PassMIT

Similar skills

  • Ag2 Telemetry

    ag2ai/build-with-ag2

    Add OpenTelemetry traces to an AG2 beta Agent via TelemetryMiddleware (autogen.beta.middleware.builtin).

    252 GitHub stars~1.9k tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed
  • Frontmcp Observability

    agentfront/frontmcp

    A skill your agent uses when adding tracing, structured logging, metrics, or monitoring to a FrontMCP server.

    146 GitHub stars~4.6k tokensUpdated today
    DevOps & CloudAuto-check passed
  • Monitoring Observability

    ahmedasmar/devops-claude-skills

    Monitoring and observability strategy, implementation, and troubleshooting.

    203 GitHub stars~3.9k tokensUpdated 6 mo ago
    DevOps & CloudAuto-check passed
  • Observability

    TheBeardedBearSAS/claude-craft

    OpenTelemetry, distributed tracing, structured logging, metrics (Prometheus, Grafana, Datadog).

    107 GitHub stars~547 tokensUpdated 26 days ago
    DevOps & CloudAuto-check passed
  • Tsh Implementing Observability

    TheSoftwareHouse/copilot-collections

    Observability patterns for logging, monitoring, alerting, and distributed tracing.

    284 GitHub stars~2k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Vigil Check

    jeremylongshore/tons-of-skills-marketplace

    Verify observability posture — audit monitoring coverage, find blind spots, prioritize gaps.

    2.8k GitHub stars~1k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes

More from majiayu000/litellm-rs

All 9 skills in this repo
  • Auth Architecture

    majiayu000/litellm-rs

    LiteLLM-RS Authentication Architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Caching Architecture

    majiayu000/litellm-rs

    LiteLLM-RS response caching architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Config Architecture

    majiayu000/litellm-rs

    LiteLLM-RS Configuration Architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Error Handling

    majiayu000/litellm-rs

    LiteLLM-RS Error Handling Architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • Provider Architecture

    majiayu000/litellm-rs

    LiteLLM-RS provider system in two tiers - data-driven OpenAI-compatible catalog entries auto-routed through OpenAILikeProvider, plus code-based provider modules implementing the LLMProvider trait…

    118 GitHub stars~4.9k tokensUpdated today
    Auto-check passed
  • Routing Architecture

    majiayu000/litellm-rs

    LiteLLM-RS Routing Architecture. An agent skill from majiayu000/litellm-rs.

    118 GitHub stars~1.9k tokensUpdated today
    Auto-check passed

Categories

Questions about Observability Architecture

What does Observability Architecture do?

LiteLLM-RS Observability Architecture. An agent skill from majiayu000/litellm-rs. Observability Architecture is an agent skill from majiayu000/litellm-rs. LiteLLM-RS Observability Architecture.

When should I use Observability Architecture?

Observability Architecture fits situations like: changing metrics; log instrumentation; debugging health checks; wiring Prometheus alert rules.

How do I install Observability Architecture in Claude Code?

Run `npx skills add majiayu000/litellm-rs --skill observability-architecture -a claude-code`. Or copy the skill folder (.claude/skills/observability-architecture in majiayu000/litellm-rs) into .claude/skills/observability-architecture in your project. Claude Code loads it when a task matches its description.

How do I install Observability Architecture in Codex?

Run `npx skills add majiayu000/litellm-rs --skill observability-architecture -a codex`. Or copy the skill folder (.claude/skills/observability-architecture in majiayu000/litellm-rs) into .agents/skills/observability-architecture in your project. Codex loads it when a task matches its description.

Can I use Observability Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add majiayu000/litellm-rs --skill observability-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/observability-architecture, .gemini/skills/observability-architecture, .github/skills/observability-architecture and .opencode/skills/observability-architecture in your project.

What does Observability Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: Observability Architecture is instructions for the agent only.

Does Observability Architecture access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Observability Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Observability Architecture use?

Observability Architecture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Observability Architecture use?

About 1.3k tokens (SKILL.md is roughly 5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Observability Architecture?

Skills that share tags, products or a category with Observability Architecture: Ag2 Telemetry (ag2ai/build-with-ag2, 252 stars), Frontmcp Observability (agentfront/frontmcp, 146 stars), Monitoring Observability (ahmedasmar/devops-claude-skills, 203 stars) and Observability (TheBeardedBearSAS/claude-craft, 107 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Observability Architecture?

majiayu000 (a GitHub user) maintains it in majiayu000/litellm-rs, which has 118 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 11, 2026.

Source: majiayu000/litellm-rs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.