Sets up monitoring, logging, and alerting for infrastructure and applications using Prometheus, Grafana, and Loki. Useful for implementing observability, creating dashboards, or configuring alerts.
Ships in devops-engineer. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
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"
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/devops-engineer:infrastructure-monitorfrom devops-engineer
npx claudepluginhub armanzeroeight/fastagent-plugins --plugin devops-engineer2 skills in this plugin
Other plugins' skills for the same job