---
name: Monitoring and Alerting
slug: monitoring-and-alerting
category: DevOps
description: Monitoring and Alerting defines metrics, thresholds, and notification rules to keep systems stable. Use it when setting up error, latency, resource, and log-based alerts.
github: "https://github.com/echoVic/boss-skill/tree/main/skill/skills/devops/monitoring-alerting"
language: TypeScript
stars: 548
forks: 50
install: "npx degit https://github.com/echoVic/boss-skill/tree/main/skill/skills/devops/monitoring-alerting ~/.claude/skills/monitoring-alerting"
installs_to: ~/.claude/skills/monitoring-alerting
source_path: skill/skills/devops/monitoring-alerting/SKILL.md
collection_size: 25
category_size: 798
collection_url: "https://dirskills.com/collections/echoVic/boss-skill"
added: 2026-08-26T05:11:08.397Z
last_synced: 2026-08-26T05:11:08.397Z
canonical_url: "https://dirskills.com/skills/monitoring-and-alerting"
---

# Monitoring and Alerting

Monitoring and Alerting defines metrics, thresholds, and notification rules to keep systems stable. Use it when setting up error, latency, resource, and log-based alerts.

**Install:**

```bash
npx degit https://github.com/echoVic/boss-skill/tree/main/skill/skills/devops/monitoring-alerting ~/.claude/skills/monitoring-alerting
```

## README

# 监控告警

## 监控指标

| 类型 | 指标 | 阈值 |
|------|------|------|
| 应用 | 错误率 | < 1% |
| 应用 | 响应时间 | P99 < 500ms |
| 系统 | CPU使用率 | < 80% |
| 系统 | 内存使用率 | < 85% |
| 系统 | 磁盘使用率 | < 90% |

## 告警规则

| 级别 | 条件 | 通知方式 |
|------|------|----------|
| P0 | 服务不可用 | 电话 + 短信 + 邮件 |
| P1 | 错误率 > 5% | 短信 + 邮件 |
| P2 | 响应时间 > 1s | 邮件 |
| P3 | 资源使用率 > 80% | 邮件 |

## 日志管理

- 集中式日志收集
- 日志分级（ERROR, WARN, INFO, DEBUG）
- 日志保留策略（30天）
- 敏感信息脱敏
