monitoring-setup

Implement logging, metrics, tracing, health checks, alerting, and dashboards for Python/React services.

8|1|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/hieutrtr/ai1-skills --skill monitoring-setup-hieutrtr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: monitoring-setup
Source: https://github.com/hieutrtr/ai1-skills/tree/main/skills/monitoring-setup
Command: npx skills add https://github.com/hieutrtr/ai1-skills --skill monitoring-setup-hieutrtr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a structured, repeatable approach to adding full observability to Python/React services, eliminating blind spots in production.

Core Features & Use Cases

  • Logging: structured JSON logs via structlog with request context and correlation IDs.
  • Metrics: Prometheus RED/USE instrumentation for endpoints, resources, and business signals.
  • Tracing & Health: OpenTelemetry tracing integrated with FastAPI, plus health endpoints for liveness and readiness.
  • Alerts & Dashboards: ready-made alert rules and Grafana dashboard templates to monitor SLIs and dependencies.
  • Use Case: bootstrap a new FastAPI service with end-to-end observability and quick remediation workflows.

Quick Start

Integrate the monitoring-setup templates into your FastAPI project, expose /metrics and health endpoints, and wire Prometheus, OpenTelemetry, and Sentry per the templates. Then customize Grafana dashboards and alert rules to match your SLOs.

Frequently Asked Questions about monitoring-setup

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

FAQPage Schema
How do I create Grafana dashboards and alerts for my application metrics?

Create Grafana dashboards by customizing the provided ready-made dashboard templates and alert rules to match your SLOs. This allows you to visualize SLIs, monitor dependencies, and trigger alerts for quick remediation workflows.

What is the best way to monitor API latency and errors with Prometheus in Python?

Monitor API latency and errors by applying Prometheus RED instrumentation to track rate, errors, and duration for endpoints. This approach provides ready-made metrics exposure and alert rules to track service level indicators and dependencies.

Does OpenTelemetry tracing work with FastAPI for request monitoring?

Yes, OpenTelemetry tracing integrates directly with FastAPI. It provides framework-level templates to implement distributed tracing, which maps request flows across services and helps quick remediation by pinpointing bottlenecks.

How do I set up liveness and readiness health checks for a Python application?

Set up health checks by exposing dedicated liveness and readiness endpoints in your Python application. These endpoints verify service availability and dependency status, allowing orchestration platforms to manage traffic routing effectively.

Can I use this monitoring setup for existing brownfield Python projects?

Yes, this monitoring setup supports existing brownfield Python projects. It provides integration guidance and templates specifically designed to retrofit comprehensive logging, metrics, and tracing into current services without requiring a full rewrite.

How do I create Grafana dashboards and alerts for my application metrics?

Create Grafana dashboards by customizing the provided ready-made dashboard templates and alert rules to match your SLOs. This allows you to visualize SLIs, monitor dependencies, and trigger alerts for quick remediation workflows.