> Observability Stack
Set up Grafana, Prometheus, and Loki for metrics, logs, and tracing.
fetch
$
curl "https://skillshub.wtf/skillshub-team/catalog-batch5/observability-stack?format=md"SKILL.md•Observability Stack
Observability Stack
Prometheus Metrics
import { Counter, Histogram, register } from 'prom-client';
const httpRequests = new Counter({ name: 'http_requests_total', help: 'Total HTTP requests', labelNames: ['method', 'path', 'status'] });
const httpDuration = new Histogram({ name: 'http_duration_seconds', help: 'Request duration', labelNames: ['method', 'path'] });
app.use((req, res, next) => {
const end = httpDuration.startTimer({ method: req.method, path: req.path });
res.on('finish', () => {
httpRequests.inc({ method: req.method, path: req.path, status: res.statusCode });
end();
});
next();
});
app.get('/metrics', async (req, res) => { res.set('Content-Type', register.contentType); res.send(await register.metrics()); });
Docker Compose Stack
Grafana (dashboards) + Prometheus (metrics) + Loki (logs) + Tempo (traces)
Key Metrics: request rate, error rate, latency (p50/p95/p99), saturation
> related_skills --same-repo
> Nix Dev Shells with direnv
Auto-activate reproducible dev environments with Nix flakes and direnv.
> Dagger with GitHub Actions
Run Dagger CI/CD pipelines in GitHub Actions for portable, testable builds.
> Bun + Hono API
Build fast APIs with Bun runtime and Hono framework.
> Deno Fresh Framework
Build full-stack web apps with Fresh on Deno. Islands, routes, and zero runtime overhead.
┌ stats
installs/wk0
░░░░░░░░░░first seenMar 18, 2026
└────────────