agentleFS
nahid-sparktalesnahid-sparktales/agent-dispatcher/skills/devops/observability/SKILL.md

observability

Skill59 starsChanged 2 months agoMITView on GitHub

Instrument a service so the questions asked during an incident are answerable from data already being collected — rate, errors, latency distribution and saturation per route, structured events carrying a correlation id that survives process and queue boundaries, and alerts on symptoms users feel. Use before a service or a new critical path goes to production, after an incident that ended in "we had no data for that", or when adding a dependency, queue or job whose failure would be silent. Not for fighting a live outage (incident-response), not for profiling a known-slow path (performance-profiling), and not for tracing agent or LLM runs (llm-observability).

59 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use parallel-agent-orchestration, architecture-decisions and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • itallstartedwithaideaSkill

    parallel-agent-orchestration

    Parallel Agent Orchestration is the discipline of dispatching, coordinating, and aggregating results from multiple concurrent subagents to dramatically accelerate complex tasks.

    Also in 3 projects that use this

  • terrene-foundationSkill

    architecture-decisions

    Architecture decision guides for Kailash SDK including framework selection (Core SDK vs DataFlow vs Nexus vs Kaizen), runtime selection (Async vs Sync), database selection (PostgreSQL vs SQLite), node selection, and test tier selection. Use when asking about 'which framework', 'choose framework', 'which runtime', 'which database', 'which node', 'architecture decision', 'when to use', 'Core SDK vs DataFlow', 'PostgreSQL vs SQLite', 'AsyncLocalRuntime vs LocalRuntime', or 'test tier selection'.

    Also in 3 projects that use this

  • mmondoraSkill

    finops

    Cloud cost management as an architectural discipline. Unit economics, right-sizing, GCP free tier optimization, budget alerts, serverless-first. Use when making infrastructure decisions, estimating costs, or optimizing cloud spending.

    Also in 3 projects that use this

  • cryptofish7Skill

    ci-cd-pipeline

    Analyze a repo and maintain its GitHub Actions CI/CD pipeline. Detects language, tooling, test frameworks, Docker, and deploy targets, then adds or removes workflow actions to match the project's current state. Use when the user asks to "add CI/CD", "update CI", "review pipeline", "set up GitHub Actions", "audit CI", "improve CI/CD", or any request about CI/CD pipelines, GitHub Actions workflows, or continuous integration.

    Also in 3 projects that use this

  • korchard333Skill

    data-migration

    Data migration to and within Dataverse. Use when: data migration, data import, bulk load, CSV import, legacy CRM migration, data quality, deduplication, staging tables, KingswaySoft, Azure Data Factory, dataflows, Web API bulk, entity mapping.

    Also in 3 projects that use this

  • rohitg00Skill

    ci-cd-pipelines

    CI/CD pipeline patterns for GitHub Actions, GitLab CI, testing strategies, and deployment automation

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 42 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Record distributions, not averages: Keep p50/p95/p99 plus count.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 42 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Observability

Telemetry is written before the incident and read during it. A dashboard nobody had a question for is a screensaver; a log line nobody can correlate is a receipt for an event you cannot find.

When this fires

A service is about to carry real traffic, a new critical path is added, or a review asks how a failure here would be noticed. It fires hardest immediately after an incident where the answer was not in the data — that is the only moment the gap is precisely known.

It does not fire for a live outage (mitigate first), for a slow path you can already reproduce and measure, or for LLM/agent run traces.

Procedure

  1. Write the questions down first. "Is it up, is it wrong, is it slow, which dependency, which deploy, which tenant." Each signal you add answers a named question. Instrumentation added without one becomes cost and noise that later gets sampled away.
  2. Cover every request path with four numbers: request rate, error rate, duration distribution, and saturation of whichever resource is actually constrained (connections, workers, memory, queue depth). Per route, job and consumer — a global error rate hides one broken endpoint completely.
  3. Emit structured events, not prose. One event per unit of work, with stable field names: timestamp, service, version, environment, correlation id, route or job name, outcome, duration, error class. A field you can filter on beats a sentence you have to regex.
  4. Propagate one correlation id everywhere — inbound request, outbound calls, log lines, emitted messages, and the background job that consumes them. Most traces die at the queue boundary, which is exactly where the unexplained latency lives.
  5. Instrument the boundaries you do not control: database, cache, third-party APIs, queues. Record attempt, outcome, duration and retry count separately from the caller's total. Use the tracing library the project already depends on rather than inventing a span format, and check its current API instead of recalling it.
  6. Record distributions, not averages. Keep p50/p95/p99 plus count. Percentiles cannot be recovered from a mean after the fact, and the tail is what the complaint is about.
  7. Bound label cardinality deliberately. User id, email, session, full URL and raw paths containing ids do not belong in metric labels — they belong in logs and traces. Write the allowed label values per metric; an unbounded label is the usual cause of a telemetry bill.
  8. Redact at the boundary, before anything leaves the process. Decide per field: kept, hashed, truncated, dropped. Authorization headers, cookies, tokens, request bodies and payment data are dropped. Exporting telemetry to a third-party backend is a data-export decision — raise it, do not enable it as a default.
  9. Separate liveness, readiness and dependency health. A check that returns 200 because the process is alive, while its database is unreachable, teaches the load balancer to keep sending traffic to a broken instance.
  10. Instrument the silent failures by name: retries, timeouts, queue depth and age, dead letters, dropped messages, circuit-breaker state, cache hit rate, job lag, clock skew. Nothing pages when a backlog grows unless something counts it.
  11. Carry version and deploy identity in the telemetry so "which release" is answerable by filtering rather than by asking in chat.
  12. Alert on symptoms users feel — error rate, latency against the stated objective, queue age — not on causes like CPU. Each alert names the first thing the responder should do and links the query behind it. An alert nobody can act on gets muted, and the mute outlives the reason.
  13. Propose thresholds; do not arm them. Creating alert rules, dashboards, retention or sampling policy changes shared production configuration and usually costs money. Write the rule and the query, then stop and ask before creating anything in the account.
  14. Drill it before you need it. In a non-production environment force an error, a dependency timeout and a slow request, then answer the step-1 questions using only the queries and dashboards. Every question you could not answer is the gap — fix it now, not at 3am.

Checklist

  • The questions this telemetry answers are written down
  • Rate, errors, duration distribution and saturation exist per route and per job
  • Events are structured with stable field names, including version and environment
  • A correlation id crosses process, HTTP and queue boundaries end to end
  • External calls and retries are timed separately from the caller
  • Percentiles recorded, not averages
  • Metric labels bounded; no user-level identifiers in label sets
  • Redaction decided per field; third-party export raised rather than assumed
  • Queue age, retries, timeouts and dead letters are counted
  • Alerts are symptom-based and each links its query and first action
  • The failure drill was run and the unanswered questions listed

Failure handling

  • All signals green, users complaining — you are measuring the wrong point. Move measurement closer to what the user experiences, past the load balancer, CDN and client.
  • Telemetry cost spiked — look for an unbounded label or a debug-level log left on in production before touching sampling.
  • Trace stops halfway — context is not propagating across an async, queue or thread boundary. Fix the propagation; a partial trace invites a confident wrong conclusion.
  • Nothing was recorded for the window that mattered — sampling or retention dropped it. Say that plainly. Do not reconstruct the window from what seems likely.
  • No telemetry backend available — instrument to structured local logs with the same field names and say so. Local output is not evidence about production behaviour.

Evidence to report

Name what was instrumented (code emitting signals), what was observed (a real event or query result you read back), and what remains untested — these are different claims. Quote one emitted event with its real field names, and the query that returns it. Give the drill result as a list of the step-1 questions with answered / not answered against each. List alerts proposed separately from any created, and who approved the ones created. Code that compiles but has not been seen to emit anything is instrumented, not verified.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.