monitoring-alerting

Automate Prometheus/Grafana monitoring, alerting, and SLO/SLI definitions.

2|Updated Nov 13, 2025
One-click install
npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill monitoring-alerting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: monitoring-alerting
Source: https://github.com/ricardoroche/ricardos-claude-code/tree/main/.claude/skills/monitoring-alerting
Command: npx skills add https://github.com/ricardoroche/ricardos-claude-code --skill monitoring-alerting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires prometheus_client, fastapi, httpx, pydantic.

What problem does it solve?

This Skill simplifies the complex task of setting up robust monitoring and alerting for applications. It helps ensure system reliability by providing patterns for metric instrumentation, defining Service Level Objectives (SLOs), and configuring timely alerts, preventing outages and reducing manual incident response.

Core Features & Use Cases

  • Metric Instrumentation: Guides on using Prometheus client for counters, histograms, and gauges, including FastAPI middleware for automatic metric tracking.
  • SLO/SLI Definition: Provides structured patterns for defining Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with Prometheus queries.
  • Alerting & Dashboards: Offers patterns for defining alert rules, sending notifications (Slack, PagerDuty), and configuring Grafana dashboards for visualization.
  • Use Case: A DevOps engineer needs to ensure their new microservice meets a 99.9% availability target. This skill helps them instrument HTTP requests, define an SLO for success rate, create an alert if the error budget is exhausted, and build a dashboard to track performance.

Quick Start

Help me instrument my FastAPI application with Prometheus metrics for request rate and latency.

Frequently Asked Questions about monitoring-alerting

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

FAQPage Schema
How do I set up monitoring and alerting for my application?

Monitoring and alerting automates metric collection, threshold detection, and notifications to catch issues before they impact users. Start by instrumenting your application with Prometheus client libraries to track counters, histograms, and gauges, then configure alert rules and notification channels like Slack or PagerDuty to trigger when thresholds breach.

Can I use Prometheus and Grafana with FastAPI applications?

Yes. Prometheus client integrates directly with FastAPI through middleware to automatically instrument HTTP request rate and latency. Grafana queries Prometheus metrics to build dashboards visualizing this data, enabling real-time performance monitoring without manual metric wiring in each endpoint.

What's the difference between SLOs, SLIs, and SLAs in observability?

SLIs (Service Level Indicators) measure actual system performance like error rate or latency. SLOs (Service Level Objectives) are targets you set—for example, 99.9% availability. SLAs (Service Level Agreements) are commitments to customers with penalties. This skill helps define SLIs with Prometheus queries and set SLOs to track your error budget.

How do I define and track error budgets for my service?

Error budgets quantify how much failure you can tolerate within an SLO window. Define your SLO as a success rate target, calculate remaining budget in Prometheus, and create alerts that fire when budget exhaustion approaches, preventing reliability degradation before it violates your commitment.

What metrics should I instrument in a microservice?

Instrument request count, latency (histograms), error rates, and business metrics relevant to your SLO. For microservices, track per-endpoint metrics using Prometheus counters and gauges, expose them via FastAPI, and correlate with downstream service dependencies to diagnose failures end-to-end.

Do I need to manually configure Grafana dashboards or can they be generated?

This skill provides patterns to generate dashboards programmatically from your SLO and SLI definitions, reducing manual setup. Dashboards query Prometheus metrics automatically, display error budgets, alert status, and latency trends, giving operators visibility without dashboard rebuilding each release.