monitoring-setup
Skill4 starsChanged 4 months agoMITView on GitHub
Instruments a service so problems are visible before users report them — metrics, logs, traces, dashboards, and alerts people will actually act on. Use this whenever the user is adding monitoring, mentions Prometheus, Grafana, OpenTelemetry, SLOs, dashboards, or alerting, has a service nobody is watching, or is drowning in alerts nobody reads. For instrumenting an AI agent specifically, use agent-observability.
6 other projects use a version of this.
Adopted by
Most recently taken up by
- xcrrr/claude-skillstheir own version, first seen Mar 19, 2026
- inbharatai/claude-skillstheir own version, first seen Mar 14, 2026
- accolver/skill-makertheir own version, first seen Mar 10, 2026
- Dokkabei97/forged-claude-codetheir own version, first seen Mar 1, 2026
- hieutrtr/ai1-skillstheir own version, first seen Feb 5, 2026
- agentsdance/agentskillstheir own version, first seen Jan 15, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- inbharatai/claude-skills★ 37same name
- hieutrtr/ai1-skills★ 8same name
- xcrrr/claude-skills★ 6same name
- accolver/skill-maker★ 4same name
- agentsdance/agentskills★ 3same name
- Dokkabei97/forged-claude-code★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository61 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- agent-deploymentSkill
- agent-designSkill
- agent-evaluationSkill
- agent-hardeningSkill
- agent-implementationSkill
- agent-observabilitySkill
- agent-scopingSkill
- api-designSkill
- code-templatingSkill
- dependency-upgradeSkill
- error-handlingSkill
- feature-implementationSkill
- project-scaffoldingSkill
- refactoringSkill
- data-analysisSkill
- data-migrationSkill
- data-modelingSkill
- sql-queriesSkill
- ci-pipelinesSkill
- containerizationSkill
- deployment-strategiesSkill
- infrastructure-as-codeSkill
- debuggingSkill
- issue-investigationSkill
- issue-triageSkill
- log-analysisSkill
- network-troubleshootingSkill
- performance-profilingSkill
- api-documentationSkill
- commit-messagesSkill
- diagrammingSkill
- markdown-docsSkill
- plain-languageSkill
- pr-descriptionsSkill
- release-notesSkill
- browser-testingSkill
- integration-testingSkill
- load-testingSkill
- test-dataSkill
- test-driven-developmentSkill
- unit-testingSkill
- deep-researchSkill
- feed-digestSkill
- summarizationSkill
- accessibility-reviewSkill
- code-analysisSkill
- code-lintingSkill
- code-reviewSkill
- auth-designSkill
- dependency-auditSkill
- secrets-managementSkill
- security-analysisSkill
- threat-modelingSkill
- capacity-planningSkill
- disaster-recoverySkill
- incident-responseSkill
- root-cause-analysisSkill
- runbooksSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 6 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Use OpenTelemetry rather than a vendor SDK.
- Distinctive: line 52
Every unique label combination is a separate time series.
- Distinctive: line 60
Done when: every label has a knowable, small set of values.
- Distinctive: line 83
Done when: every alert would change someone's behaviour at 3am.
- Distinctive: line 94
Put the most important graph top-left, and annotate deploys onto the timeline.
- Distinctive: line 105
Do not define an SLO for every metric.
“Common” is measured: kept by at least 6 in 10 of the 5 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.
Files
Monitoring setup
Two failure modes, and most teams manage both simultaneously: nothing is monitored, so problems surface as customer complaints; and everything is alerted, so the channel is noise and real alerts are missed.
The target is a small number of signals that mean something, and an even smaller number of alerts that always warrant waking someone.
1. Instrument the four signals that matter
For any request-serving system, start here and resist adding more until these are solid:
- Rate: requests per second, by endpoint and status
- Errors: failures per second, by type. Distinguish client errors from server errors; a rise in 400s is a different problem from a rise in 500s
- Duration: latency as a histogram, not an average. You cannot recover percentiles from a mean, and the mean hides the tail where the pain is
- Saturation: how full the constrained resource is: connection pool, thread pool, queue depth, memory, disk
For queues and batch systems, substitute queue depth, age of the oldest item, and processing lag. Age of the oldest unprocessed item is usually the single best health signal for a queue — better than depth, which can look fine while one item is stuck.
Done when: you can answer "is it healthy?" from four graphs.
2. Use the standard instrumentation
Use OpenTelemetry rather than a vendor SDK. Instrumentation is expensive to write and painful to replace; the standard keeps you able to change backends without re-instrumenting.
Take the automatic instrumentation for your framework, HTTP client, and database first — it covers most of what you need for no effort. Add manual spans only for meaningful business operations.
Propagate trace context across service boundaries from the start. Retrofitting it means touching every call site, and without it you cannot follow a request through the system.
Done when: one request produces one connected trace across every service it touches.
3. Keep cardinality under control
The most common way monitoring becomes expensive and then gets switched off.
Every unique label combination is a separate time series. A label with a user ID, a request ID, or a raw URL path creates unbounded series and will eventually take down the metrics backend or the budget.
- Labels must be bounded: endpoint template (
/orders/:id), status class, region, version - Never user ID, request ID, email, session, or full path
- High-cardinality detail belongs in traces and logs, which are built for it
Done when: every label has a knowable, small set of values.
4. Alert on symptoms, not causes
Alert on what users experience. Cause-based alerts fire constantly and often for conditions nobody needs to act on.
- Good: error rate above X for 5 minutes; p99 latency above target; queue age above the SLA; a job that did not run
- Bad: CPU above 80%. Sometimes that is fine. If high CPU is not causing user-visible problems, it is a dashboard line, not a page
Every alert needs:
- A runbook: what to check, what to do. An alert without one is an interruption, not information
- A severity that matches reality. Page only for things that need a human now. Everything else is a ticket
- A tuned threshold and duration. An alert that fires on a 30-second blip trains people to ignore it
If an alert has fired ten times and nobody acted, delete it. That is the discipline that keeps the channel meaningful.
Done when: every alert would change someone's behaviour at 3am.
5. Build dashboards for a question
A dashboard with forty panels is used by nobody. Build one per question:
- Service health: the four signals, one screen, readable in ten seconds during an incident
- Dependency health: what this service calls, and how those calls are doing
- Business metrics: orders, signups, whatever the system exists to do. Frequently the fastest indicator that something is wrong
Put the most important graph top-left, and annotate deploys onto the timeline. Correlating a change with a deploy is the most common thing anyone does with a dashboard.
Done when: the health dashboard answers "is it broken?" without scrolling.
6. Define what good means
Pick one or two SLOs — a target and a window — for the things users actually care about, and set an error budget. This turns "is it slow?" into a question with an answer, and turns alerting thresholds into something derived rather than guessed.
Do not define an SLO for every metric. Two meaningful ones beat twelve nobody references.
Done when: you can say whether the service met its target last month.
Report
State what is instrumented, what is alerted and at what threshold, what the dashboards answer, and — importantly — what is not covered. The uninstrumented path is where the next surprise comes from, and naming it is more useful than a longer list of what is covered.
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
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.

