Observability & Monitoring

Implement structured logging, metrics, distributed tracing, and alerting for production systems.

Updated Jul 16, 2026
One-click install
npx skills add https://github.com/pjherron/hypoc --skill observability-monitoring-pjherron
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: Observability & Monitoring
Source: https://github.com/pjherron/hypoc/tree/main/hypoc/skills/observability-monitoring
Command: npx skills add https://github.com/pjherron/hypoc --skill observability-monitoring-pjherron

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Production systems fail in ways you cannot predict, and without proper instrumentation you cannot diagnose why. This Skill provides patterns for making systems observable through structured logging, metrics, distributed tracing, and actionable alerting. ## Core Features & Use Cases - Structured Logging: JSON-formatted logging patterns in Python and Node.js (Winston) with request ID tracking and guidance on what to log and what to exclude (secrets, PII). - Metrics & Tracing: Prometheus instrumentation using the RED method and Golden Signals, plus OpenTelemetry distributed tracing with Jaeger export. - Alerting & SLOs: Prometheus AlertManager rules, severity levels, Grafana dashboard design, and SLO/SLI definitions with error budget calculations. - Use Case: When preparing a service for production deployment, use this Skill to add Prometheus metrics middleware, configure latency and error-rate alerts with runbook links, and build a service health dashboard. ## Quick Start Add observability to my Node.js API service with structured logging, Prometheus metrics, and alerting rules for high error rates.

Frequently Asked Questions about Observability & Monitoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Prometheus metrics to a Node.js application?▼

Use the prom-client library to define Counter, Histogram, and Gauge metrics, then register middleware that records request duration and counts per route. Expose a /metrics endpoint returning prometheus.register.metrics() for Prometheus to scrape.

What is the difference between monitoring and observability?▼

Monitoring tracks known unknowns like whether a system is up, while observability handles unknown unknowns like why the system is slow for users in a specific region. Good observability lets you ask questions you did not anticipate.

How do I set up distributed tracing with OpenTelemetry?▼

Initialize the OpenTelemetry NodeSDK with auto-instrumentations and a Jaeger exporter, then create manual spans with tracer.startActiveSpan for key operations. Set attributes and record exceptions on spans to capture context across service calls.

What should I never put in application logs?▼

Never log passwords, tokens, API keys, credit card numbers, SSNs, or other PII. Also avoid full request bodies that may contain secrets and binary data, while still logging authentication events, errors, and business events with context.

How do I calculate an error budget from an SLO?▼

Error budget equals 100% minus the SLO target. For a 99.9% availability SLO, the error budget is 0.1%, which equals about 43 minutes of downtime per month, and you alert when consumption approaches the budget limit.