Observabilityのロゴ

Observability

コミュニティ
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.

概要

公開者d-padmanabhan
リポジトリagent-engineering-handbook
スキル名observability
スター
20
フォーク
3
同梱ファイル
4
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 4個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    d-padmanabhanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルObservabilityをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/observability
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

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
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでObservabilityを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にObservabilityを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Observabilityは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

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.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「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.

TypingMindでObservabilityを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Observabilityはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにObservabilityをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/observabilityを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Observabilityを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Observabilityは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもObservabilityを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Observability」は無料ですか?

はい。d-padmanabhanがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇