cogni-dao/cogni / .claude/skills/monitoring-expert
monitoring-expert
VerifiedConfigures monitoring systems, implements structured logging pipelines, creates Prometheus/Grafana dashboards, defines alerting rules, and instruments distributed tracing. Implements Prometheus/Grafana stacks, conducts load testing, performs application profiling, and plans infrastructure capacity. Use when setting up application monitoring, adding observability to services, debugging production issues with logs/metrics/traces, running load tests with k6 or Artillery, profiling CPU/memory bottlenecks, or forecasting capacity needs.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 8.0 KB |
| references/alerting-rules.md | markdown | 3.6 KB |
| references/application-profiling.md | markdown | 6.6 KB |
| references/capacity-planning.md | markdown | 8.2 KB |
| references/dashboards.md | markdown | 3.9 KB |
| references/opentelemetry.md | markdown | 3.4 KB |
| references/performance-testing.md | markdown | 5.9 KB |
| references/prometheus-metrics.md | markdown | 3.2 KB |
| references/structured-logging.md | markdown | 3.0 KB |
references/dashboards.md
View on GitHub# Dashboards
## RED Method (Request-focused)
```
Rate - Requests per second
Errors - Failed requests per second
Duration - Response time distribution
```
```promql
# Rate
sum(rate(http_requests_total[5m]))
# Errors
sum(rate(http_requests_total{status=~"5.."}[5m]))
/
sum(rate(http_requests_total[5m]))
# Duration (p95)
histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m]))
```
## USE Method (Resource-focused)
```
Utilization - % time resource is busy
Saturation - Queue depth, backlog
Errors - Error events
```
```promql
# CPU Utilization
100 - (avg(rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)
# Memory Saturation
node_memory_SwapTotal_bytes - node_memory_SwapFree_bytes
# Disk Errors
rate(node_disk_io_time_weighted_seconds_total[5m])
```
## Dashboard Structure
```
┌─────────────────────────────────────────────────────────────┐
│ SERVICE OVERVIEW │
│ Request Rate │ Error Rate │ p50 Latency │ p99 Latency │
├─────────────────────────────────────────────────────────────┤
│ REQUEST METRICS │
│ [Graph: Requests/s by endpoint] │
│ [Graph: Error rate over time] │
├─────────────────────────────────────────────────────────────┤
│ LATENCY METRICS │
│ [Heatmap: Latency distribution] │
│ [Graph: p50, p95, p99 over time] │
├─────────────────────────────────────────────────────────────┤
│ INFRASTRUCTURE │
│ CPU │ Memory │ Disk │ Network │
└─────────────────────────────────────────────────────────────┘
```
## Key Panels
### Stat Panel (Single Value)
```promql
# Current RPS
sum(rate(http_requests_total[5m]))
# Error percentage
sum(rate(http_requests_total{status=~"5.."}[5m]))
/
sum(rate(http_requests_total[5m])) * 100
```
### Time Series
```promql
# Requests by status
sum by (status) (rate(http_requests_total[5m]))
# Latency percentiles
histogram_quantile(0.50, rate(http_request_duration_seconds_bucket[5m]))
histogram_quantile(0.95, rate(http_request_duration_seconds_bucket[5m]))
histogram_quantile(0.99, rate(http_request_duration_seconds_bucket[5m]))
```
### Table
```promql
# Top endpoints by error rate
topk(10,
sum by (path) (rate(http_requests_total{status=~"5.."}[5m]))
/
sum by (path) (rate(http_requests_total[5m]))
)
```
## Business Metrics Dashboard
```promql
# Orders per minute
sum(rate(orders_created_total[5m])) * 60
# Revenue (if tracked)
sum(increase(order_value_dollars_sum[1h]))
# Active users (gauge)
active_users_total
```
## Quick Reference
| Method | Focus | Metrics |
| ------ | --------- | ------------------------------- |
| RED | Services | Rate, Errors, Duration |
| USE | Resources | Utilization, Saturation, Errors |
| Panel Type | Use Case |
| ----------- | -------------------- |
| Stat | Single KPI |
| Time Series | Trends over time |
| Heatmap | Latency distribution |
| Table | Top N, details |
| Gauge | Current vs threshold |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |