monitoring

monitoring is a cursor rule for Cursor from nedcodes-ok/cursor-doctor. It costs 513 tokens per session, scanned A, a copy of monitoring, MIT.

Rules for monitoring software services and infrastructure using measurements, service targets, and alerts. An SLO is a target for how reliably or quickly a service should work for users.

In plain words
What is it for?
Use it to define latency, traffic, error, and resource measurements; set availability or latency targets; and design actionable alerts.
Why use it?
It helps teams notice user-facing problems, avoid noisy alerts, and connect each alert to a response procedure.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc). Also seen: mentions Cursor.

Good fit Use it to define latency, traffic, error, and resource measurements; set availability or latency targets; and design actionable alerts.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/nedcodes-ok/cursor-doctor/monitoring
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/nedcodes-ok/cursor-doctor

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monitoring

README.md
[![agentmods](https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/monitoring/github.svg)](https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/monitoring)
Your own site
<a href="https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/monitoring"><img src="https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/monitoring/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for monitoring

Your own site · 80×15
<a href="https://agentmods.dev/rules/nedcodes-ok/cursor-doctor/monitoring"><img src="https://agentmods.dev/badge/rules/nedcodes-ok/cursor-doctor/monitoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 513 This file is loaded in full into every session.
When invoked 513 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00513 $0.00513
Opus 5.5 $0.00205 $0.00205
Sonnet 5.5 $0.00103 $0.00103
Haiku 4.5 $0.00051 $0.00051

Measured 3mo ago against content hash 2b42063f37a9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

monitoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to monitoring — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

pro-kit/templates/practices/monitoring.mdc · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Monitoring Cursor Rules

You are an expert at application monitoring. Follow these rules:

Four Golden Signals

  • Latency: track P50, P95, P99 — averages hide tail latency
  • Traffic: requests per second by endpoint and status code
  • Errors: error rate as percentage, broken down by type
  • Saturation: CPU, memory, disk, connection pool utilization

Metrics

  • USE method for infrastructure: Utilization, Saturation, Errors
  • RED method for services: Rate, Errors, Duration
  • Custom business metrics: signups/min, orders/hour, revenue
  • Use histograms for latency, not averages — P99 matters most
  • Label dimensions: service, endpoint, status_code, environment

Alerting

  • Alert on symptoms (high error rate), not causes (CPU spike)
  • Two tiers: page (P1, needs human now) and notify (P2, next business day)
  • Burn-rate alerts for SLO-based monitoring — catches slow degradation
  • Every alert needs a runbook link with triage steps
  • No alert without an actionable response — remove noisy alerts ruthlessly

SLOs

  • Define SLIs first: what indicates the service is working for users
  • Availability SLO: 99.9% = 43 min downtime/month — pick realistic targets
  • Latency SLO: 95% of requests under 200ms, 99% under 1s
  • Error budget: when budget is exhausted, freeze features and fix reliability
  • Review SLOs quarterly — adjust based on actual user impact

Dashboards

  • Service overview: golden signals at a glance
  • Dependency dashboard: health of all downstream services
  • Business dashboard: key metrics non-engineers care about
  • No dashboard with more than 10 panels — if everything is important, nothing is
  • Include links from dashboards to relevant logs and traces

Health Checks

  • /health for load balancers: returns 200 if the process is running
  • /ready for k8s readiness: returns 200 only when ready to serve traffic
  • Deep health checks: verify DB, cache, external service connectivity
  • Dont alert on brief health check failures — use consecutive failure thresholds
  • Synthetic monitoring: probe critical user flows every 1-5 minutes

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 51 lines · 513 tokens per session scan A 2b42063f37a9

Subscribe to this mod's changes

monitoring is a cursor rule published in the GitHub repository nedcodes-ok/cursor-doctor (10 stars, last pushed 8mo ago), licensed MIT. It adds 513 tokens to every session, about $0.0021 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to monitoring, differing in 0 lines, and is treated as a copy.

Related

monitoring compared with cursor rules from other repositories

monitoring next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
monitoringnedcodes-ok/cursor-doctorCursor rule108mo agoMITA513Cursor
test-patternstugkanboz/awesome-cursorrulesCursor rule242mo agoMITA2,177Cursor
testing-fundamentalstugkanboz/awesome-cursorrulesCursor rule242mo agoMITA26Cursor
componentskensaurus/cursor-kenjiCursor rule92mo agoMITA0Cursor
minimax-m3-self-evolutionmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA26Cursor
skill-authoringmadebyaris/advance-minimax-m3-cursor-rulesCursor rule1265mo agoMITA42Cursor
gitkensaurus/cursor-kenjiCursor rule92mo agoMITA5Cursor