monitoring-observability

monitoring-observability is a cursor rule for Cursor from MN-Lizard-Team/aiyu-multi-agent. It costs 14 tokens per session (1,436 once invoked), scanned A, original, Apache-2.0.

A guide to observing running software through logs, metrics, and traces. Logs record events, metrics measure values over time, and traces show how a request moves through a system.

In plain words
What is it for?
It is for designing logging, monitoring dashboards, alerts, and request tracing for production systems.
Why use it?
It helps developers find and diagnose failures or slowdowns in production when the problem cannot be reproduced locally.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions Cursor.

Good fit It is for designing logging, monitoring dashboards, alerts, and request tracing for production systems.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/mn-lizard-team/aiyu-multi-agent/monitoring-observability
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/MN-Lizard-Team/aiyu-multi-agent

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-observability

README.md
[![agentmods](https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/monitoring-observability.svg)](https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/monitoring-observability)
Your own site
<a href="https://agentmods.dev/rules/mn-lizard-team/aiyu-multi-agent/monitoring-observability"><img src="https://agentmods.dev/badge/rules/mn-lizard-team/aiyu-multi-agent/monitoring-observability.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,436 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found 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.00014 $0.01436
Opus 5 $0.00007 $0.00718
Sonnet 5 $0.00003 $0.00287
Haiku 4.5 $0.00001 $0.00144

Measured 4d ago against content hash 9e558e313ae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

monitoring-observability 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 4d 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.

.cursor/rules/skills/monitoring-observability.mdc · 220 lines

How it starts

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

Skill: monitoring-observability

Cursor Agent-Requested Rule — applied when AI determines relevance.


Monitoring & Observability - See What Your System Is Doing

You can't fix what you can't see. Observability is debugging production.


The Three Pillars

┌─────────────────────────────────────────┐
│           OBSERVABILITY                 │
├─────────────┬─────────────┬─────────────┤
│   METRICS   │    LOGS     │   TRACES    │
├─────────────┼─────────────┼─────────────┤
│  Numerical  │   Events    │  Request    │
│   data      │   over      │   flows     │
│  over time  │   time      │             │
├─────────────┼─────────────┼─────────────┤
│  "What is   │  "What      │  "Where is  │
│ happening?" │ happened?"  │ the issue?" │
└─────────────┴─────────────┴─────────────┘

Logging

Log Levels

Level Use Case Example
ERROR Failures requiring intervention Database connection failed
WARN Unexpected but handled Retry attempt 3/5
INFO Normal operations User login successful
DEBUG Development troubleshooting Variable values
TRACE Detailed execution flow Function entry/exit

Structured Logging

# ✅ GOOD — Structured, queryable logs
import logging
import json

logger = logging.getLogger(__name__)

logger.info(
    "User action completed",
    extra={
        "user_id": user.id,
        "action": "purchase",
        "item_id": item.id,
        "amount": 99.99,
        "duration_ms": 245
    }
)
# Output: {"message": "User action completed", "user_id": 123, "action": "purchase", ...}

# ❌ BAD — Unstructured, hard to query
logger.info(f"User {user.id} purchased item {item.id} for {amount}")

Log Best Practices

  • Correlation IDs: Track requests across services
  • Context: Include relevant identifiers
  • No Sensitive Data: Never log passwords, tokens
  • Rate Limiting: Prevent log flooding

Metrics

Read the full file on GitHub · 220 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. 4d ago First seen · 220 lines · 14 tokens per session scan A 9e558e313ae0

Subscribe to this mod's changes

monitoring-observability is a cursor rule published in the GitHub repository MN-Lizard-Team/aiyu-multi-agent (7 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 14 tokens to every session and 1,436 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.