/logfire:logfire-infrastructurefrom logfire
Monitors hosts, Docker containers, Kubernetes clusters, databases, queues, caches, and cloud provider metrics using Pydantic Logfire via the OpenTelemetry Collector, with no application code changes.
Ships in logfire. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Do not use this skill for application-level traces, logs, or AI/agent spans — that's logfire-instrumentation. The two compose: a full setup often runs both.
The OpenTelemetry Collector ships host, container, cluster, and infrastructure-service metrics to Logfire with no application code changes — Logfire is a fully compliant OTel backend and ingests standard OTLP traces, logs, and metrics from it (one narrow exception noted in the collector reference), so the Collector is the entire mechanism. This is optional and is an advanced tool: if the user only wants their app's own traces, logfire-instrumentation's language SDKs are enough on their own.
Read the repository's agent instructions first. Read-only inspection of infrastructure configuration does not require login. Before changing or starting an exporter, confirm the target and project through the shared authentication reference below, and obtain approval for deployment changes.
If the parent wizard already prepared the project, use its confirmed target and
project without rerunning account commands. Otherwise, use Authenticate and
Select the Exact Project for the
Rust CLI's target-aware identity check, OAuth session, and explicit
project selection, including its safe handoff for the write credential created
by init use.
Detect the infrastructure actually in play, don't assume:
docker-compose.yml / Dockerfiles for running containers.kubeconfig, or kubectl context.docker-compose.yml / pyproject.toml / package.json for Postgres, MySQL, Redis, MongoDB, Kafka, RabbitMQ, Nginx, Apache, Elasticsearch, or Memcached.More than one can apply at once — a single Collector can run multiple receivers in parallel pipelines.
Follow the collector reference for the receiver(s) identified in Step 2 — it covers the shared exporter setup, then a dedicated section per source: host metrics, Docker, Kubernetes, database/queue/cache servers, and cloud-provider metrics, each with the exact receiver name, a working config, and the caveats that actually bite (Docker socket permissions, API version pinning, host.docker.internal vs localhost, IAM permissions, ADOT vs. Contrib collector images).
Set the same service & resource metadata conventions the collector reference describes — host.name, service.name, service.instance.id — so data groups correctly across the Hosts, Kubernetes, and Metrics pages.
Before starting or restarting the Collector, validate the config file — a receiver typo or bad indentation should surface as a validation error, not a Collector that starts, logs nothing useful, and silently drops the pipeline:
Set COLLECTOR_CONFIG to the existing config path, or the file you created in Step 3. Reuse
that exact path for validation, the smoke test, and persistent deployment.
otelcol-contrib validate --config="$COLLECTOR_CONFIG"
# or, for the core (non-Contrib) distribution: otelcol validate --config="$COLLECTOR_CONFIG"
If neither binary is on PATH, inspect the running Collector container (for example with kubectl exec) or use the deployment-specific validation command from the image entrypoint, systemd unit, or Helm chart. docker compose config or kubectl get pod <name> -o yaml can show the command when it is explicitly configured.
Wiring a receiver isn't done when the Collector starts cleanly — confirm the data reached the right page for the right host, container, or cluster. Never report a metric as "arrived" without checking it in this same session — by an exact query when MCP or API access is available, or by finding the same exact identifier in the relevant Logfire page.
host.name / container / cluster you set in Step 3 and
require a datapoint newer than the recorded restart time — a query that
returns zero fresh rows for that exact identifier means it didn't land, even
if the page shows older data from something else. Otherwise, open the
specific product page — Hosts, Docker, or Kubernetes — or the
Metrics explorer for database/queue/cache/cloud sources, select a recent
time range, and inspect a latest timestamp/sample after the restart time for
that same exact identifier.service.pipelines), and that resource attributes (host.name, service.name) are set — the reference's own Verify section has the full troubleshooting path.Close with a final report built from what you just confirmed — the exact
org/project/region, active receiver(s), and host/container/cluster identifier,
not a template. Include a direct link to the relevant view (/hosts,
/docker, /kubernetes, or /metrics, based on the source) so the user can see
their own source arrive. Append the selected view's path to the validated project URL from project current
for standalone setup. After a parent-prepared wizard handoff, use
project open --no-open with the same target/org and --no-input --output json, then append the same path;
do not rerun project current. If the link cannot be resolved, report that
separately from telemetry verification rather than returning a placeholder.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Docker, Kubernetes, PostgreSQL, Redis, MongoDB, Kafka, AWS, GCP
10 skills in this plugin
/logfire-codex-connectionConnect Codex itself to Logfire, check connection status, or stop session recording. Use for this plugin's MCP access and optional native Codex telemetry, not application instrumentation or AI Gateway routing./logfire-coding-agentsConnect Claude Code or Codex itself to Logfire telemetry, or route a coding agent's model requests through Pydantic AI Gateway. Use for coding-session recording, capture policies, Gateway agent configuration, temporary proxy launches, status, or removal. Not for instrumenting an application or routing an application's model client./logfire-evalsRun offline Python (`pydantic_evals`) or Node.js (`logfire/evals`) evaluations and review them in Logfire. Also redirect existing Braintrust `Eval()` suites. Use for eval setup, test datasets, AI scoring, agent checks, LLM judges, Braintrust migration, or Logfire Datasets & Experiments. Not for live traffic or infrastructure monitoring./logfire-frontendSet up and troubleshoot Pydantic Logfire frontend observability and session replays in JavaScript/TypeScript browser applications. Use for browser errors, RUM, Web Vitals, replay recording, privacy controls, or reducing browser telemetry volume. Supports browser entrypoints, React/Vite, and the client side of Next.js; use logfire-instrumentation for server-side telemetry./logfire-gatewayConfigure an application's model calls to use the Pydantic AI Gateway. Use when the user asks to route application inference through Gateway, connect a Gateway key, or add a Gateway provider snippet. This does not configure or instrument coding agents./logfire-instrumentationAdd Pydantic Logfire observability to application code — traces, logs, metrics, and AI/agent spans. Use when the user asks to add or configure Logfire, observability, tracing, logging, or monitoring; maximize useful telemetry; or understand what an app is doing. Supports Python, JavaScript/TypeScript, Rust, and major AI agent frameworks. For browser RUM/errors/session replay use `logfire-frontend`; for infrastructure-only monitoring use `logfire-infrastructure`; for evaluations use `logfire-evals`.npx claudepluginhub pydantic/skills --plugin logfireOther plugins' skills for the same job