monitoring-setup

Configure Prometheus, Grafana, and Alertmanager monitoring with SLO tracking and alert rules.

1|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill monitoring-setup-kalilurrahman
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: monitoring-setup
Source: https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts/tree/main/02-devops-infra/monitoring-setup
Command: npx skills add https://github.com/kalilurrahman/kr-claudiator-skills-original-prompts --skill monitoring-setup-kalilurrahman

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up production observability from scratch requires stitching together metrics, logs, traces, and alerting across many tools, and teams often end up with dashboards but no actionable alerts or SLO definitions. ## Core Features & Use Cases - Metrics Instrumentation: Prometheus counters, gauges, histograms, and summaries with Express.js and Python examples, plus scrape configuration and Kubernetes service discovery. - Alerting & SLOs: Alert rules for error rate, latency, CPU, and disk, routed through Alertmanager to PagerDuty or Slack, with error budget burn-rate alerts. - Full Observability Stack: Grafana RED dashboards, Loki structured logging, Jaeger distributed tracing, on-call runbooks, and a Docker Compose deployment. - Use Case: You are deploying a new API and need production monitoring. Use this Skill to instrument the app with Prometheus metrics, define a 99.9% availability SLO, create Grafana dashboards, and wire critical alerts to PagerDuty with runbooks. ## Quick Start Set up a Prometheus and Grafana monitoring stack for my Express.js API with a 99.9% availability SLO, error-rate alerts to PagerDuty, and an on-call runbook.

Frequently Asked Questions about monitoring-setup

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

FAQPage Schema
How do I set up Prometheus monitoring for a Node.js API?

Use the prom-client library to define counters and histograms, add middleware that records request counts and durations, and expose a /metrics endpoint. Then configure a Prometheus scrape job targeting that endpoint every 15 seconds.

How do I create alert rules in Prometheus?

Define rules in an alerts.yml file with a PromQL expression, a for duration, severity labels, and annotations. Reference the file under rule_files in prometheus.yml and route notifications through Alertmanager to PagerDuty or Slack.

What is the difference between Prometheus histogram and summary metrics?

Histograms bucket observations into configurable ranges and support server-side quantile calculation via histogram_quantile, making them aggregable across instances. Summaries calculate quantiles client-side and cannot be aggregated, so histograms are preferred for latency tracking.

How do I track SLOs and error budgets with Prometheus?

Define an availability target such as 99.9%, which allows 43 minutes of downtime per month. Create a burn-rate alert comparing the observed error ratio against the allowed budget, paging when the budget is being consumed faster than sustainable.

Can Grafana display logs alongside Prometheus metrics?

Yes, pair Grafana with Loki and promtail to collect structured JSON logs, then query them with LogQL such as {job="app"} |= "error". This lets you correlate log lines with metrics and traces in the same dashboard.

Why should alerts avoid high-cardinality labels like user IDs?

High-cardinality labels create a new time series per unique value, exploding memory usage and slowing queries in Prometheus. Use bounded labels such as endpoint, method, and status code instead of unbounded identifiers.