Logo vun Observability

Observability

Communautéit
d-padmanabhan
observability

Designs and reviews production observability using structured logging, NDJSON, metrics, SLIs and SLOs, distributed tracing, OpenTelemetry, dashboards, alerts, telemetry pipelines, redaction, retention, and cost controls. Use when instrumenting services, defining log schemas, correlating microservices, designing monitoring or alerting, reviewing telemetry cardinality, or diagnosing whether production signals can answer operational questions.

Iwwersiicht

Editeurd-padmanabhan
Repositoryagent-engineering-handbook
Skill-Nummobservability
Stären
20
Forks
3
Matgeliwwert Fichieren
4
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 4 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Vum d-padmanabhan op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Observability an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/observability
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/d-padmanabhan/agent-engineering-handbook.git /tmp/agent-engineering-handbook
mkdir -p .claude/skills
cp -r /tmp/agent-engineering-handbook/skills/observability .claude/skills/observability
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Observability an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Observability automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Observability net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Observability

Design observability from operational questions and user-visible outcomes. Do not add logs, metrics, or spans merely to satisfy a three-pillars checklist. Each signal must support a diagnostic, reliability, security, or business decision at an acceptable cost.

Observability Contract

  • Start with critical journeys, SLIs, SLOs, failure modes, and the questions an operator must answer during an incident.
  • Use metrics for bounded aggregate behavior, traces for request and dependency paths, and logs for discrete events requiring detailed context.
  • Emit structured logs. For container streams, prefer one JSON object per physical line on stdout or stderr; let the platform collect and rotate logs.
  • Propagate W3C trace context across process boundaries and correlate logs with valid trace and span identifiers when context exists.
  • Keep metric labels and span names bounded. Never use user IDs, request IDs, email addresses, raw URLs, or other unbounded values as metric labels.
  • Treat telemetry as sensitive data. Minimize, classify, redact, retain, and authorize it deliberately.
  • Keep security audit events separate from ordinary application logs when integrity, access, or retention requirements differ.
  • Bound telemetry queues, retries, memory, disk, network, and cost. Define which data may be sampled or dropped under pressure.
  • Alert on actionable user impact or imminent budget exhaustion. Every page needs an owner, urgency, evidence, and runbook.
  • Instrument the telemetry pipeline itself so loss, refusal, delay, and cost are visible.

Workflow

1. Define Questions and Reliability Targets

State:

  • critical user journeys and owners;
  • availability, latency, correctness, freshness, and durability SLIs;
  • SLO windows and error budgets;
  • known failure and overload modes;
  • forensic or regulatory requirements;
  • incident questions the current system cannot answer.

Do not begin with a vendor, agent, collector, dashboard, or list of fields.

2. Select the Smallest Useful Signals

Choose signals by purpose:

  • Metrics: rates, ratios, distributions, saturation, queue age, and resource budgets that need efficient aggregation and alerting.
  • Traces: end-to-end latency, dependency paths, retries, fan-out, and request-scoped failure analysis.
  • Logs: state transitions, classified failures, policy decisions, recovery actions, and bounded diagnostic details.
  • Profiles: code-level resource attribution when sampling overhead and runtime support are acceptable.

One event may contribute to several signals, but avoid recording the same large payload in each.

3. Define Signal Contracts

For logs, define:

  • event name and schema version;
  • event and observed timestamps;
  • severity semantics;
  • service resource identity and deployment environment;
  • trace, span, request, correlation, and causation identifiers where relevant;
  • allowed attributes, sensitivity classification, size limit, and retention;
  • exception shape and redaction behavior.

For metrics, define:

  • user-visible or resource outcome;
  • type, unit, monotonicity, and aggregation;
  • bounded label set and estimated worst-case series count;
  • collection interval and retention;
  • SLI numerator, denominator, exclusions, and missing-data behavior.

For traces, define:

  • propagation format and trust boundary;
  • stable low-cardinality span names;
  • semantic attributes and error status;
  • head or tail sampling policy;
  • baggage allowlist, size, and sensitivity policy;
  • maximum attributes, events, links, and payload sizes.

Use the structured logging reference (${HANDBOOK_ROOT}/skills/observability/references/structured-logging.md), the metrics and alerting reference (${HANDBOOK_ROOT}/skills/observability/references/metrics-slos-alerting.md), and the tracing and pipeline reference (${HANDBOOK_ROOT}/skills/observability/references/tracing-telemetry-pipelines.md) for detailed contracts.

4. Design Collection and Export

Prefer vendor-neutral instrumentation and OpenTelemetry Protocol (OTLP) at service boundaries where ecosystem support is mature. Keep instrumentation libraries separate from exporter and backend selection.

Define:

  • process, node, sidecar, agent, and gateway responsibilities;
  • batching, queue, retry, timeout, and backpressure limits;
  • behavior during backend outage or collector saturation;
  • egress allowlists, authentication, encryption, and tenant isolation;
  • schema transformation and enrichment ownership;
  • data residency, retention, deletion, and archive policy;
  • cost budgets by signal, tenant, service, and environment.

A persistent collector queue reduces some losses but is not a no-loss guarantee. Document overflow, expiry, disk failure, and shutdown behavior.

5. Build Dashboards and Alerts

Start service dashboards with:

  • SLI attainment and error-budget consumption;
  • request or job rate, errors, and latency distribution;
  • saturation, queue age, rejected work, and dependency health;
  • deployment, configuration, and feature-flag changes;
  • telemetry pipeline health and data freshness.

Use multi-window burn-rate alerts where an SLO supports them. Page only for urgent, actionable conditions. Route slower budget consumption and maintenance risks to tickets or planned work.

6. Verify End to End

Test:

  • schema validity and single-line encoding;
  • redaction against representative secrets and sensitive fields;
  • trace propagation through asynchronous and synchronous boundaries;
  • metric cardinality under worst-case inputs;
  • SLI calculations, alert firing, inhibition, routing, and recovery;
  • collector backpressure, queue overflow, restart, and backend outage;
  • telemetry delay, duplication, sampling, and loss;
  • dashboard and runbook usability during a controlled failure.

Verify from generated telemetry in the target backend, not only from unit tests or local console output.

Required Review Output

For an observability design or review, provide:

  1. operational questions, critical journeys, and SLOs;
  2. signal contracts and correlation strategy;
  3. sensitivity, redaction, retention, and access policy;
  4. metric cardinality and telemetry volume estimates;
  5. collection, export, buffering, retry, and loss behavior;
  6. dashboards, alerts, owners, and runbooks;
  7. verification plan and known blind spots;
  8. cost budget and conditions for reducing telemetry.

Anti-Patterns

  • Logging prose and parsing it later with fragile regular expressions.
  • Writing application log files inside containers without an explicit platform requirement.
  • Treating NDJSON as the only valid telemetry transport.
  • Logging raw request or response bodies, tokens, credentials, or unrestricted exception context.
  • Putting user, request, session, or raw path identifiers in metric labels.
  • Generating a new trace or correlation ID at every service hop.
  • Marking every span as an error because the business operation was declined.
  • Sampling required audit events without a policy that preserves obligations.
  • Alerting on CPU alone without connecting it to user impact or capacity risk.
  • Unbounded collector queues or retries presented as loss prevention.
  • Assuming observability storage is an immutable audit system.

Matgeliwwert Fichieren

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Observability?

Designs and reviews production observability using structured logging, NDJSON, metrics, SLIs and SLOs, distributed tracing, OpenTelemetry, dashboards, alerts, telemetry pipelines, redaction, retention, and cost controls. Use when instrumenting services, defining log schemas, correlating microservices, designing monitoring or alerting, reviewing telemetry cardinality, or diagnosing whether production signals can answer operational questions.

Firwat Observability op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Observability besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Observability an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/observability an. TypingMind liest d'Datei SKILL.md, bündelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Observability benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Observability benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Observability domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Observability gratis?

Jo. De Skill gëtt vum d-padmanabhan ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇