Logo Observability Monitoring

Observability Monitoring

Cộng đồng
AnastasiyaW
observability-monitoring

Thiết kế, kiểm tra và khắc phục sự cố giám sát cũng như khả năng quan sát trong môi trường production bằng các kiểm tra tác động đến người dùng, telemetry nhiều lớp, USE/RED, SLI/SLO/SLA, ngân sách lỗi, kiểm soát cardinality, cảnh báo có thể hành động, phản ứng theo burn rate và đánh giá sau sự cố. Dùng khi được hỏi về giám sát, khả năng quan sát, cảnh báo, Prometheus, Grafana, OpenTelemetry, log, trace, profile, tình trạng dịch vụ hoặc bằng chứng sự cố. Không dùng để chỉnh giao diện dashboard nói chung, làm UI chỉ ở frontend hoặc đánh giá mã không liên quan.

Add to TypingMind

Tổng quan

Nhà phát hànhAnastasiyaW
Kho mãcodex-claude-code-config
Tên kỹ năngobservability-monitoring
Sao
212
Bản fork
32
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được AnastasiyaW công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Observability Monitoring trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/operational/observability-monitoring
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AnastasiyaW/codex-claude-code-config.git /tmp/codex-claude-code-config
mkdir -p .claude/skills
cp -r /tmp/codex-claude-code-config/skills/operational/observability-monitoring .claude/skills/observability-monitoring
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Observability Monitoring trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Observability Monitoring ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Observability Monitoring với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Observability Monitoring

Use this skill to turn vague "is it working?" questions into evidence-backed monitoring, alerting, and incident workflows. Start from user or business impact, then move down through the system layers and choose the signal that can prove the current hypothesis.

Operating rule

Do not treat a green dashboard as proof of health. A monitoring claim is complete only when it names:

  1. the observed scope and time window;
  2. the user, business, or operator outcome being protected;
  3. the signal and exact query/probe that supports the claim;
  4. the threshold or SLO that defines bad;
  5. the next human action and its runbook/evidence link.

Keep code review, live runtime proof, UI/render proof, and release readiness as separate verdicts.

Investigation is read-only by default. A restart, alert suppression, metric-schema/label change, sampling or retention change, or vendor reconfiguration is a production mutation: involve the responsible owner or incident authority, preserve the relevant evidence first, capture the exact config/command diff, state the rollback condition, and verify the user probe plus SLI after the change.

Workflow

1. Freeze scope and collect live facts

Before changing a monitor, alert, host, or service:

  • Read the repository AGENTS.md, relevant rules, runbooks, and deployment docs.
  • Establish the actual checkout/branch, deployment, process, host, port, proxy/tunnel, and data source.
  • Record the observation time, environment, query/probe, and whether the result is current or historical.
  • Inspect the source code/config that emits or consumes the signal before changing it.
  • Never infer health from an old screenshot, a stale handoff, a single PID, or a dashboard with no successful user probe.

For infrastructure fixes, document the traffic path (DNS, proxy, tunnel, ingress, service, backend) before touching a surprising value such as 127.0.0.1, a non-default port, or a disabled check.

2. Define the outcome before the metric

Write the protected outcome in concrete terms:

  • User: can open the page, submit the request, download the result, or complete the workflow.
  • Business: orders, successful jobs, conversions, revenue, or another domain event continue to occur.
  • Operator: an on-call engineer receives a page early enough to act and can identify the next step.

Add at least one black-box or synthetic check for the user-facing path. Add real-user telemetry when the experience can vary by browser, geography, device, or network. Technical resource health is not a substitute for a user or business signal.

3. Map the monitored layers

Inspect the layers from bottom to top and state which ones are in scope:

  1. Hardware/infrastructure: CPU, memory, disk capacity and latency, network, temperature, power, GPU, host availability.
  2. Host/OS: load, processes, file descriptors, swap, service state, kernel/resource pressure.
  3. Network: reachability, packet loss, latency, port state, DNS, TLS, ingress/proxy health.
  4. Application/APM: request rate, errors, latency, saturation, dependency calls, queue depth.
  5. Databases and queues: throughput, slow queries, connection pools, replication lag, backlog, consumer health.
  6. Containers/orchestration: desired versus ready replicas, restarts, scheduling, evictions, resource limits, ephemeral identity.
  7. Business: successful workflows, jobs, orders, revenue, conversion, or domain-specific zero-activity checks.

Do not stop at the infrastructure layer when the business outcome is failing. A system with green CPU and memory can still have a broken payment, form, queue consumer, or model job.

4. Choose the right signal

Use the signal that answers the question instead of collecting everything indiscriminately:

QuestionPrimary signalPractical method
Is a resource busy, queued, or failing?MetricsUSE: utilization, saturation, errors
Is a service serving users correctly?MetricsRED: rate, errors, duration
What happened at a specific time?Structured logsSearch by timestamp, service, severity, request/trace ID
Where did a distributed request slow or fail?TracesFollow the trace across services and spans
Why is code or a process consuming resources?ProfilesInspect sampled stacks, CPU, memory, locks, or I/O
Do users actually succeed?Synthetic/RUM/business probesRun the workflow and inspect the domain result

Metrics answer aggregate how much/how often. Logs answer what happened. Traces answer where in the path. Profiles answer which code or process consumed the resource. Correlate them with stable resource identity, timestamps, and trace/request context.

5. Design metrics without cardinality accidents

Treat every unique metric-name plus label set as a time series. Before adding a label, estimate its possible values and lifetime.

  • Good metric dimensions are bounded and useful for aggregation: method, status class/code, service, region, queue, job type, or environment.
  • Keep high-cardinality or per-event values in logs/traces: user ID, request ID, email, raw URL with parameters, exception text, or arbitrary object IDs.
  • Prefer route templates over raw URLs.
  • Set explicit cardinality limits or views where the telemetry SDK supports them, and monitor overflow/dropped-attribute indicators.
  • Prefer histograms for fleet-wide aggregatable latency SLOs. Client-side summaries/quantiles generally cannot be aggregated across instances without changing their meaning; use them only when that limitation is understood. Never hide tail latency behind an average.

If a query needs a unique ID to be useful, that ID belongs in a trace or structured log field, not in a metric label.

6. Define SLI, SLO, SLA, and error budget

Use the terms precisely:

  • SLI: a measured indicator, such as successful requests divided by valid requests or p95 latency for a workflow.
  • SLO: the internal target and time window for that indicator.
  • SLA: an external agreement with consequences if the target is missed.
  • Error budget: the allowed unreliability implied by the SLO during the window.

Choose the SLI from the user-facing outcome, not from whichever metric is easiest to collect. Define the valid-request population, exclusions, time window, aggregation, and owner. Treat an SLO as a control loop: remaining budget informs release pace, risk, testing, and reliability work.

7. Build actionable alerts

Alert on symptoms that indicate user or service pain. Use dashboards and drill-downs to investigate causes.

Every paging alert must include:

  • symptom and affected scope;
  • exact query, threshold, duration, and evaluation window;
  • severity and owner;
  • a link to the dashboard/query and runbook;
  • concrete first actions, rollback criteria, and escalation path;
  • a test or smoke procedure proving the alert route works.

If no immediate action exists, make it a dashboard annotation, ticket, or recording rule instead of a page. Use a pending duration (for) to suppress short blips. If using hysteresis, define separate fire and clear thresholds; if using multi-window evaluation, define each window and its condition. Do not confuse either control with Slack/chat routing. Treat "more than two incidents per shift" as a review heuristic, not a universal law: frequent pages mean the system or alert policy needs repair.

Prefer multi-window or burn-rate alerts for SLOs when the backend supports them. A burn rate near 1 spends the budget at the planned rate; a materially higher rate requires faster response. Verify the math against the actual SLO window and alert implementation.

Portable examples

Adapt metric and label names to the live schema; these are patterns, not copy-paste production queries:

promql
# RED error ratio for one service over five minutes.
sum(rate(http_requests_total{service="checkout",code=~"5.."}[5m]))
/
sum(rate(http_requests_total{service="checkout"}[5m]))

# Aggregatable fleet-wide p95 from a histogram.
histogram_quantile(0.95,
  sum by (le, service) (
    rate(http_request_duration_seconds_bucket{service="checkout"}[5m])
  )
)

Use a synthetic/domain probe that asserts the real outcome, not only HTTP reachability. Prefer a read-only endpoint or a sandbox/test tenant. If a write path is unavoidable, require a dry-run or idempotency key, a bounded fixture, explicit cleanup, and an owner-approved change window: submit safe test request -> assert expected status and domain result/job ID -> record latency and trace ID -> clean up. Never send an arbitrary representative request into production.

A burn rate is observed error ratio / allowed error ratio, where allowed error ratio = 1 - SLO. Worked example: for an SLO of 99.9% (allowed = 0.001), a 5-minute observed error ratio of 1.0% (0.010) gives burn rate 10; if the local paging policy is the illustrative >=10 for 5m AND >=5 for 1h, page, otherwise route it according to the lower-severity policy. The query pattern is:

promql
(
  sum(rate(http_request_errors_total{service="checkout"}[5m]))
  /
  sum(rate(http_requests_total{service="checkout"}[5m]))
) / 0.001

The thresholds and windows are examples only; derive and test them from the real SLO, traffic population, exclusions, and paging budget.

8. Triage in evidence order

For a live incident, follow this sequence and keep a short timeline. Apply the change-control boundary above before any mutation:

  1. Confirm the user/business symptom with a fresh probe.
  2. Bound blast radius: service, region, tenant, job type, version, and start time.
  3. Check RED for the affected service and USE for saturated dependencies/resources.
  4. Correlate logs by time, service, severity, and trace/request ID.
  5. Follow a failing or slow trace to the first bad span/dependency.
  6. Use a profile only when resource/code attribution remains unclear or the issue is intermittent.
  7. Compare deploys, config changes, feature flags, capacity, and external dependencies.
  8. Apply the smallest reversible mitigation with an explicit rollback condition.
  9. Re-run the user probe and the relevant SLI query; confirm recovery over a meaningful window.
  10. Record the evidence, unresolved uncertainty, and follow-up owner.

Do not restart or reconfigure a service merely because a check is red. First establish whether the check is stale, misrouted, a false positive, or a real symptom, and preserve the evidence needed to explain the decision.

9. Close the loop

After recovery:

  • Verify the original symptom is gone, not only that the process is alive.
  • Record detection time, acknowledgement, mitigation, recovery, and customer impact.
  • Review alert quality: actionable, correctly routed, deduplicated, and linked to evidence.
  • Write a blameless postmortem for material incidents: timeline, impact, contributing/systemic causes, what went well, what failed, and tracked prevention items.
  • Update the runbook, monitor, test, or architecture so the same failure is easier to detect and diagnose next time.

Vendor mapping

Use the actual stack discovered in the repository/runtime. Common roles from the source video are:

  • Prometheus or VictoriaMetrics: scrape and store metrics;
  • Grafana: visualize and query multiple sources;
  • Loki or Elasticsearch/OpenSearch: logs;
  • Jaeger or Tempo: traces;
  • OpenTelemetry: vendor-neutral collection and export of telemetry signals;
  • Mimir or Thanos: longer-term or larger-scale metric storage;
  • Zabbix/Nagios: host and infrastructure checks.

Historical names in the video (ping, syslog, SNMP, MRTG/RRD, Nagios, and Cacti; 00:55-03:17) explain the evolution of monitoring and are not default deployment recommendations.

These are roles, not defaults. Do not install, replace, or reconfigure a vendor component without checking the live architecture, documentation, compatibility, retention, cost, authorization, and rollback path.

Minimal runbook template

Use this shape for every new page:

text
Name:
User symptom:
SLI/query:
Trigger and duration:
Scope labels:
Severity/owner:
Dashboard and raw query:
First safe action:
Rollback condition:
Verification probe:
Escalation:
Known false positives:
Last tested:

Gotchas

  • A host can be healthy while the business workflow is broken.
  • Averages hide tail latency; inspect percentiles and failed requests.
  • A metric label creates a new series for every unique combination; raw URLs and IDs can exhaust memory.
  • A trace without stable service/resource context is hard to correlate; a log without timestamps or IDs is weak evidence.
  • A page without a concrete action trains the operator to ignore pages.
  • A synthetics-only check misses real-user variance; RUM-only telemetry can discover pain too late.
  • Profiles are an attribution signal, not a replacement for service-level metrics, logs, or traces.
  • An SLO target is not an SLA promise unless an external contract says so.
  • Auto-generated captions and copied vendor names can be wrong; verify terms before putting them into code or runbooks. See references/source-notes.md.

Troubleshooting

SymptomLikely causeFix
Dashboard is green but users failMissing black-box/business SLI, wrong route, or stale data sourceRun a fresh user probe, verify timestamps/labels, add the missing outcome signal
One deploy creates a huge series spikeHigh-cardinality label or unbounded route/IDRemove the label from metrics, normalize routes, move detail to logs/traces, cap SDK cardinality
Alert fires but nobody actsAlert is a cause guess, too sensitive, unowned, or lacks a runbookAlert on a user symptom, add owner/action/query/runbook, add for; if using hysteresis define separate fire/clear thresholds, and if using multi-window define each condition; test delivery
Error rate rises but cause is unclearLogs are unstructured or traces are not correlatedAdd structured fields and trace IDs, sample a failing trace, inspect dependency spans
Service is slow but RED looks normalLow traffic, bad aggregation, or resource contention outside the appCheck synthetic latency, USE for host/queue/storage, tail percentiles, and profiles
Dashboard is blank or staleTarget/scrape/exporter/collector/backend failure, retention gap, or clock skewCheck last-sample time, target and collector health, dropped/ingestion counters, retention, and time synchronization; do not interpret blank as zero
A query shows zero but the system may be uninstrumentedThe series is absent, filtered out, or genuinely zeroTest absent-series semantics, inspect raw labels and last sample, and add an explicit freshness/telemetry-health check
Trace is incompleteSampling, context propagation, collector drops, or backend retentionCheck trace ID propagation, sampling decision, collector drop counters, backend ingestion, and clock synchronization
Page storm during one incidentNo grouping/deduplication or too many low-value alertsGroup by incident/service, keep one page for the symptom, demote diagnostic signals
Burn-rate alert disagrees with the dashboardDifferent SLI population, window, exclusions, or recording ruleReconcile the numerator/denominator, window, and query; test against known scenarios
Restart appears to fix it but it returnsMitigation hid a systemic cause or destroyed evidenceCapture logs/metrics first, record the restart, identify the recurring trigger, add prevention

Source and current-practice notes

The reusable concepts in this skill were extracted from the supplied video and cross-checked against current primary documentation. See references/source-notes.md for the source URL, timestamp map, caption corrections, and official references.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Observability Monitoring làm được gì?

Thiết kế, kiểm tra và khắc phục sự cố giám sát cũng như khả năng quan sát trong môi trường production bằng các kiểm tra tác động đến người dùng, telemetry nhiều lớp, USE/RED, SLI/SLO/SLA, ngân sách lỗi, kiểm soát cardinality, cảnh báo có thể hành động, phản ứng theo burn rate và đánh giá sau sự cố. Dùng khi được hỏi về giám sát, khả năng quan sát, cảnh báo, Prometheus, Grafana, OpenTelemetry, log, trace, profile, tình trạng dịch vụ hoặc bằng chứng sự cố. Không dùng để chỉnh giao diện dashboard nói chung, làm UI chỉ ở frontend hoặc đánh giá mã không liên quan.

Vì sao nên dùng Observability Monitoring trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Observability Monitoring là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Observability Monitoring trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/AnastasiyaW/codex-claude-code-config/tree/main/skills/operational/observability-monitoring. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Observability Monitoring?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Observability Monitoring với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Observability Monitoring với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Observability Monitoring có miễn phí không?

Có. Kỹ năng này được AnastasiyaW phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇