Skill站外收录 @skilllib/skill-2014279365259898882
gamma-incident-runbook
提供针对 Gamma 集成故障的标准化应急响应流程,覆盖状态核查、指标分析、日志排查及分场景处置策略,支持从 P1 严重故障到 P4 轻微问题的分级响应与协同沟通。
开发运维 AI 技能
Skills.MD
# Gamma Incident Runbook
## Overview
Systematic procedures for responding to and resolving Gamma integration incidents.
## Prerequisites
- Access to monitoring dashboards
- Access to application logs
- On-call responsibilities defined
- Communication channels established
## Incident Severity Levels
| Level | Description | Response Time | Escalation |
|-------|-------------|---------------|------------|
| P1 | Complete outage, no presentations | < 15 min | Immediate |
| P2 | Degraded, slow or partial failures | < 30 min | 1 hour |
| P3 | Minor issues, workaround available | < 2 hours | 4 hours |
| P4 | Cosmetic or non-urgent | < 24 hours | None |
## Quick Diagnostics
### Step 1: Check Gamma Status
```bash
# Check Gamma status page
curl -s https://status.gamma.app/api/v2/status.json | jq '.status'
# Check our integration health
curl -s https://your-app.com/health/gamma | jq '.'
# Quick connectivity test
curl -w "\nTime: %{time_total}s\n" \
-H "Authorization: Bearer $GAMMA_API_KEY" \
https://api.gamma.app/v1/ping
```
### Step 2: Review Key Metrics
```bash
# Check error rate (Prometheus)
curl -s 'http://prometheus:9090/api/v1/query?query=rate(gamma_requests_total{status=~"5.."}[5m])' | jq '.data.result'
# Check latency P95
curl -s 'http://prometheus:9090/api/v1/query?query=histogram_quantile(0.95,rate(gamma_request_duration_seconds_bucket[5m]))' | jq '.data.result'
# Check rate limit
curl -s 'http://prometheus:9090/api/v1/query?query=gamma_rate_limit_remaining' | jq '.data.result'
```
### Step 3: Review Recent Logs
```bash
# Last 100 error logs
grep -i "gamma.*error" /var/log/app/gamma-*.log | tail -100
# Rate limit hits
grep "429" /var/log/app/gamma-*.log | wc -l
# Timeout errors
grep -i "timeout" /var/log/app/gamma-*.log | tail -50
```
## Incident Response Procedures
### Scenario 1: API Returning 5xx Errors
**Symptoms:**
- High error rate in monitoring
- Users reporting failed presentations
- 500/502/503 responses from Gamma
**Actions:**
1. Verify Gamma status: https://status.gamma.app
2. If Gamma outage confirmed:
- Enable degraded mode / show maintenance message
- Monitor status page for updates
- No action needed on our side
3. If Gamma is operational:
```bash
# Check our request patterns
grep "5[0-9][0-9]" /var/log/app/gamma-*.log | \
awk '{print $1}' | sort | uniq -c | sort -rn
# Look for malformed requests
grep -B5 "500" /var/log/app/gamma-*.log | grep "request"
```
4. Rollback recent deployments if issue correlates
### Scenario 2: Rate Limit Exceeded (429)
**Symptoms:**
- 429 responses in logs
- Rate limit metrics at zero
- Slow or queued requests
**Actions:**
1. Immediate mitigation:
```bash
# Enable request throttling
curl -X POST http://localhost:8080/admin/throttle \
-d '{"gamma": {"rps": 10}}'
```
2. Check for runaway processes:
```bash
# Find high-volume clients
grep "gamma" /var/log/app/*.log | \
awk '{print $5}' | sort | uniq -c | sort -rn | head -20
```
3. Enable circuit breaker:
```bash
curl -X POST http://localhost:8080/admin/circuit-breaker \
-d '{"service": "gamma", "state": "open"}'
```
4. Long-term: Review rate limit tier with Gamma
### Scenario 3: High Latency
**Symptoms:**
- Slow presentation creation
- Timeouts in logs
- P95 latency > 10s
**Actions:**
1. Check Gamma latency vs our latency:
```bash
# Direct Gamma latency
for i in {1..5}; do
curl -w "%{time_total}\n" -o /dev/null -s \
-H "Authorization: Bearer $GAMMA_API_KEY" \
https://api.gamma.app/v1/ping
done
```
2. If Gamma is slow:
- Increase timeouts temporarily
- Enable async mode for non-critical operations
- Queue heavy operations
3. If our infrastructure is slow:
- Check CPU/memory on app servers
- Review connection pool settings
- Check network connectivity
### Scenario 4: Authentication Failures (401/403)
**Symptoms:**
- All requests failing with 401
- "Invalid API key" errors
- Sudden authentication failures
**Actions:**
1. Verify API key:
```bash
# Test key directly
curl -H "Authorization: Bearer $GAMMA_API_KEY" \
https://api.gamma.app/v1/ping
# Check key format
echo $GAMMA_API_KEY | head -c 20
```
2. If key is invalid:
- Check if key was rotated
- Deploy backup key: `GAMMA_API_KEY_SECONDARY`
- Generate new key in Gamma dashboard
3. Notify team and update secrets
## Communication Templates
### Internal Notification
```
INCIDENT: Gamma Integration Issue
Severity: P[X]
Status: Investigating / Identified / Mitigating / Resolved
Impact: [Description of user impact]
Start Time: [ISO timestamp]
Summary: [Brief description]
Current Actions:
- [Action 1]
- [Action 2]
Next Update: [Time]
```
### User-Facing Message
```
We're currently experiencing issues with presentation generation.
Our team is actively working to resolve this.
Workaround: [If available]
Status updates: [Link to status page]
ETA: [If known]
```
## Post-Incident Checklist
- [ ] Incident timeline documented
- [ ] Root cause identified
- [ ] User impact quantified
- [ ] Fix verified in production
- [ ] Monitoring gaps identified
- [ ] Preventive measures documented
- [ ] Post-mortem scheduled (for P1/P2)
## Resources
- [Gamma Status](https://status.gamma.app)
- [Gamma Support](https://gamma.app/support)
- [Internal Runbook Wiki]()
- [On-Call Schedule]()
## Next Steps
Proceed to `gamma-data-handling` for data management.
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「gamma-incident-runbook」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次