/observe-lens:observe-lens-telemetryfrom observe-lens
Query observability tools read-only for runtime evidence: logs (Loki, LogQL), traces (Tempo, TraceQL, spans and timings), metrics (Prometheus, PromQL: error rates, latency, restarts, CPU and memory), firing alerts and dashboards, through Grafana or directly against Prometheus, Loki and Tempo. Use this whenever the user asks what a service logged, why a request, order, call or job failed at runtime, which downstream call was slow or errored, whether errors or latency spiked, whether pods restarted, what an alert means, how a release changed error rates, or wants a dashboard or Explore link, even if they only give a trace id, request id, error message or time window and do not say Grafana, Loki, Tempo or Prometheus. Read-only; not for building or editing dashboards, alert rules or silences.
Ships in observe-lens. 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; scripts run unread.
Query logs, traces, metrics and alerts to back an investigation with runtime evidence: what the service logged, which span failed, whether errors spiked or pods restarted.
Run scripts with python3; on Windows use python or py -3 if python3 is not found. Paths below are relative to this skill's folder.
config list) and the environment, namespace or service label the user's notes define.The first time this skill is used in a session, before running any command, ask the user once (with the multiple-choice question tool if there is one):
observe-lens, observe-lens-pipelines, observe-lens-cd, observe-lens-db and observe-lens-telemetry for the rest of the session.Skip the question if the user already picked option 3 in another observe-lens skill this session, or option 2 for this skill. Keep the choice for the session; the user can change it at any time ("ask me again", "stop auto-running").
scripts/telemetry.py subcommand except config init and config add (whoami, datasources, dashboards, logs, labels, metric, metric-range, traces, trace, alerts, link, get, config list|check|path|knowledge). They only send GET requests (Grafana is queried through its datasource proxy).ls/dir/Get-ChildItem, cat/type/Get-Content, grep/findstr/Select-String). If a command could change anything, treat it as state-changing. Reading credential files is never covered (see Rules).config list marks confirm=yes (environment prod, production, prd or live unless the instance sets "confirm": false, or any instance with "confirm": true), name the instance and ask once. The scripts refuse a production instance unless the command includes --prod: add it only after the user says yes, then keep adding it to that instance's commands, which follow the choice above for the rest of the session. --prod never relaxes the read-only guards and never allows writes. Production systems are shared and hold real customer data, so a deliberate first look is worth one question.config init, editing files under the observe-lens config folder, installing anything. One yes covers that one action only. Creating or editing dashboards, alert rules, silences, annotations or datasources stays off even when asked: tell the user what to change instead.python3 scripts/telemetry.py config check, then python3 scripts/telemetry.py --instance <name> whoami (add --prod for a production instance, only after the user agreed). On an error, give the user the fix from references/setup.md.python3 scripts/telemetry.py config knowledge lists notes on datasources, label names, namespaces, service names, id fields and useful queries. Read them before writing a query; label names are the most common wrong guess.references/query-cookbook.md for ready-made LogQL, TraceQL and PromQL):
telemetry.py logs '<LogQL>' --from <T> --to <T> --limit 200. Unsure of label names? telemetry.py labels [<label>].telemetry.py traces '<TraceQL>' --from <T> --to <T> to find the trace, then telemetry.py trace <traceId> for its span tree with durations, status and errors.telemetry.py metric '<PromQL>' --at <T> for one instant, telemetry.py metric-range '<PromQL>' --from <T> --to <T> --step 1m for a trend (it prints min, max, first and last per series, not every point).telemetry.py alerts [--state firing].telemetry.py dashboards '<text>', or telemetry.py link logs|metrics|traces '<query>' --from <T> --to <T> for a Grafana Explore URL.
Times accept ISO 8601 (2026-01-15T09:40:00Z), epoch seconds, or relative (now-15m). Grafana instances choose the datasource by type from the instance config; override with --ds <uid>.--wide (up to 7 days); use it only when the user asks for a longer window. Always put a namespace or service label in the log stream selector and a line filter (|= "<id>") before regexes or parsers, and set --limit. Widen the window or selector only if nothing comes back.**Finding:** <one line>
| Time (UTC) | Source | Evidence |
| --- | --- | --- |
| 2026-01-15 09:45:12 | grafana-prod / Loki {namespace="shop", app="api"} | HTTP 500 "connection refused" calling payments |
<what it means for the question and what to check next>
Query: `<LogQL / TraceQL / PromQL>` on <instance>, <from> → <to>
Link: <Explore or dashboard URL, if useful>
get accepts only query and status API paths, because Loki and Tempo expose GET endpoints such as flush and shutdown that change state.{namespace=~".+"} over hours can time out and slow down a shared log store for everyone.[REDACTED:<kind>]; if a value still looks like a credential, do not repeat it. Say where it appears and recommend rotating it.scripts/_ol_common.py: shared helpers (config, secrets, HTTP, guards) imported by the scripts; not run directly.scripts/telemetry.py: read-only client for providers grafana (Loki, Tempo, Prometheus and alerts through the Grafana API), prometheus, loki and tempo (direct). --instance <name>, --ds <uid>, --json for raw output. Subcommands: whoami, datasources, dashboards, logs, labels, metric, metric-range, traces, trace, alerts, link, get <path>, config list|check|path|knowledge|init|add.references/query-cookbook.md: read before writing a query: LogQL, TraceQL and PromQL patterns for ids, errors, latency, restarts, deploy comparison.references/grafana.md: read for Grafana specifics: datasource proxy vs query API, service-account roles, Explore and dashboard URLs, alerting APIs.references/setup.md: read when access fails or a new instance is added: config fields per provider, tokens, troubleshooting.references/adding-a-provider.md: read when the user wants Elasticsearch/OpenSearch, Datadog, New Relic, CloudWatch, Jaeger or another backend.assets/knowledge-template.md: template for the user's telemetry notes (config init copies it).assets/config.example.json, assets/secrets.example.json: placeholder config and secret shapes (config init copies the config; secrets are added with config add).assets/config.example.json (opens in a new tab)assets/knowledge-template.md (opens in a new tab)assets/secrets.example.json (opens in a new tab)references/adding-a-provider.md (opens in a new tab)references/grafana.md (opens in a new tab)references/query-cookbook.md (opens in a new tab)references/setup.md (opens in a new tab)scripts/_ol_common.py (opens in a new tab)scripts/telemetry.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/observe-lensRead-only investigation across CI pipelines, CD deployments, databases and telemetry (logs, traces, metrics, alerts) to explain what happened to a build, a deploy, a request, an order, a test run or a feature, and why. Routes to observe-lens-pipelines (Jenkins, GitHub Actions), observe-lens-cd (Argo CD, Flux, Helm, Kubernetes rollouts), observe-lens-db (PostgreSQL, MySQL, MongoDB) and observe-lens-telemetry (Grafana, Loki, Tempo, Prometheus), and correlates their evidence on one timeline. Use this whenever a developer, tester, analyst or product owner asks why something failed, broke, is slow or behaves differently, whether a change is deployed or verified, what a service logged, what state a record is in, or wants a status or root-cause summary across systems, even if they only paste an id, a URL, an error message or a time window and do not name a tool. Also use it to set up or check observe-lens configuration. Never changes the systems it reads./observe-lens-cdRead continuous-delivery state read-only to explain what is deployed where and whether it is healthy: Argo CD applications (sync and health status, deployed revision, sync history, failing resources, events, conditions), Flux kustomizations and Helm releases, Helm release history, and Kubernetes rollouts, pods, restarts and events through guarded read-only kubectl, helm and flux commands. Use this whenever the user asks whether a commit, image tag or fix is deployed to an environment, when a deploy happened or finished, why an app is OutOfSync, Degraded, Progressing or crash-looping, what changed in the last release, or whether a rollback happened, even if they do not say Argo CD, Flux, Helm or Kubernetes. Read-only: it never syncs, rolls back, restarts, scales or edits anything; it tells the user how. For build and test results use observe-lens-pipelines; for logs and metrics use observe-lens-telemetry.Other plugins' skills for the same job
npx claudepluginhub evrentan/observe-lens --plugin observe-lens