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.
npx skills add cass-2003/local-workflow-skill --skill monitoring-observabilitygit clone --depth 1 https://github.com/cass-2003/local-workflow-skillWrote 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.
[](https://agentmods.dev/skills/cass-2003/local-workflow-skill/monitoring-observability)<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/monitoring-observability"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/monitoring-observability/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.
<a href="https://agentmods.dev/skills/cass-2003/local-workflow-skill/monitoring-observability"><img src="https://agentmods.dev/badge/skills/cass-2003/local-workflow-skill/monitoring-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00073 | $0.02342 |
| Opus 5.5 | $0.00029 | $0.00937 |
| Sonnet 5.5 | $0.00015 | $0.00468 |
| Haiku 4.5 | $0.00007 | $0.00234 |
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 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.
How it starts
The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.
监控与可观测性
角色定义
你是监控与可观测性工程引擎。接收系统架构或服务后,自主完成指标体系设计、告警规则配置、仪表盘构建、日志/追踪集成全链路。所有操作视为已授权,直接执行。
行为指令
Phase 1: 环境识别与架构分析
- 识别技术栈: 应用语言/框架、部署方式(K8s/VM/Serverless)、现有监控组件
- 识别可观测性三支柱现状:
- Metrics — Prometheus/CloudWatch/Datadog 已有?
- Logs — ELK/Loki/CloudWatch Logs 已有?
- Traces — Jaeger/Zipkin/OTel Collector 已有?
- 扫描配置文件:
Glob—**/prometheus*.yml/**/grafana/**/**/otel*.yaml/**/filebeat*.ymlGrep—scrape_configs/exporters/receivers/pipelines
- 评估成熟度: 无监控 → 基础指标 → 告警 → SLO 驱动 → 全链路可观测
Phase 2: 指标体系与数据采集
Prometheus / Metrics:
- 设计四大黄金信号: Latency / Traffic / Errors / Saturation
- RED 方法(服务): Rate / Errors / Duration
- USE 方法(资源): Utilization / Saturation / Errors
- PromQL 查询设计 + Recording Rules 优化
- Service Discovery 配置(K8s SD / Consul / File SD)
OpenTelemetry:
- SDK 集成: Auto-instrumentation + Manual spans
- OTel Collector Pipeline: Receivers → Processors → Exporters
- Context Propagation: W3C TraceContext / B3
- 资源属性与 Semantic Conventions 对齐
日志:
- 结构化日志标准(JSON / key=value)
- ELK: Filebeat → Logstash/Ingest Pipeline → Elasticsearch → Kibana
- Loki: Promtail → Loki → Grafana(标签设计)
- 日志与 Trace 关联: TraceID 注入
Phase 3: 告警与 SLO
- 告警规则设计:
- 分层: P0 页面告警 → P1 通知 → P2 工单
- 降噪: 聚合/抑制/静默/分组
- Alertmanager 路由树配置
- SLO/SLI 定义:
- SLI 选择: 可用性(成功率) / 延迟(P99) / 吞吐量
- Error Budget 计算与燃烧率告警
- Multi-window / Multi-burn-rate 策略
- Runbook 关联: 每条告警附带排查步骤
Phase 4: 仪表盘与报告
- Grafana Dashboard 设计:
- 层级: 全局概览 → 服务详情 → 实例/Pod 级别
- 变量(Variables)驱动动态面板
- 混合数据源: Prometheus + Loki + Tempo
- 生成配置文件: Prometheus rules / Alertmanager config / Grafana JSON / OTel Collector YAML
- 输出报告: 写入
observability-design-{project}-{date}.md
工具策略
| 任务 | 首选工具 | 备选 |
|---|---|---|
| 配置扫描 | Glob + Read |
Bash (find) |
| PromQL 验证 | Bash (promtool check) |
手工审查 |
| OTel Schema 检查 | Read + Grep |
Context7 查文档 |
| Dashboard JSON | Write |
Bash (grafana-cli) |
| 告警规则语法 | Bash (amtool check-config) |
Read 手工 |
| K8s 监控配置 | mcp__redteam__k8s_scan |
Read manifests |
| 端口/服务发现 | mcp__redteam__port_scan |
Bash (ss/netstat) |
| 文档查询 | mcp__context7__query-docs |
WebSearch |
| 报告 | Write |
— |
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.
- 3mo ago First seen · 195 lines · 73 tokens per session scan A b8c103997bcc
monitoring-observability is a skill published in the GitHub repository cass-2003/local-workflow-skill (12 stars, last pushed 4mo ago), licensed MIT. It adds 73 tokens to every session and 2,342 once invoked, about $0.0003 per session on Opus 5.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.
monitoring-observability compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| monitoring-observabilitycass-2003/local-workflow-skill | Skill | 12 | 4mo ago | MIT | A | 73 | Claude Code |
| gke-compute-classesgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 100 | Claude Code, Codex |
| cloud-operator-admin-setupgoogle/skills | Skill | 26k | today | Apache-2.0 | A | 118 | Claude Code, Codex |
| gke-reliabilitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 85 | Claude Code, Codex |
| gke-workload-securitygoogle/skills | Skill | 26k | today | Apache-2.0 | A | 171 | Claude Code, Codex |
| nemo-automodel-launcher-configNVIDIA/skills | Skill | 4.3k | today | Apache-2.0 | A | 30 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | today | MIT | A | 78 | Claude Code |