From devops-engineer
Sets up Prometheus metrics, Grafana dashboards, Loki logging, and alerting for Node.js apps and infrastructure.
How this skill is triggered — by the user, by Claude, or both
Slash command
/devops-engineer:infrastructure-monitorThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Set up comprehensive monitoring and observability.
Set up comprehensive monitoring and observability.
Use Prometheus for metrics, Grafana for dashboards, Loki for logs, set up alerts for critical issues.
Application instrumentation:
const prometheus = require('prom-client');
const httpRequestDuration = new prometheus.Histogram({
name: 'http_request_duration_seconds',
help: 'Duration of HTTP requests in seconds',
labelNames: ['method', 'route', 'status_code']
});
app.use((req, res, next) => {
const start = Date.now();
res.on('finish', () => {
const duration = (Date.now() - start) / 1000;
httpRequestDuration.labels(req.method, req.route?.path, res.statusCode).observe(duration);
});
next();
});
Prometheus config:
scrape_configs:
- job_name: 'app'
static_configs:
- targets: ['app:3000']
scrape_interval: 15s
Key metrics to monitor:
Structured logging:
const winston = require('winston');
const logger = winston.createLogger({
format: winston.format.json(),
transports: [
new winston.transports.Console()
]
});
logger.info('User logged in', { userId: user.id, ip: req.ip });
Alert rules:
groups:
- name: app_alerts
rules:
- alert: HighErrorRate
expr: rate(http_requests_total{status=~"5.."}[5m]) > 0.05
for: 5m
annotations:
summary: "High error rate detected"
npx claudepluginhub p/armanzeroeight-devops-engineer-plugins-devops-engineerSets up metrics collection, distributed tracing, log aggregation, and dashboards for full system observability. Guides through monitoring architecture, alerting, SLOs, and runbooks.
Sets up infrastructure monitoring with Prometheus, Grafana, and alerting for metrics, health checks, and performance tracking.
Implements monitoring and observability solutions including metrics collection, distributed tracing, log aggregation, Grafana dashboards, alerting, and SLOs.