o11y-metrics-prometheus-ops

Configure Prometheus metric scraping, alerting rules, and service discovery across Kubernetes and Docker Compose.

7|3|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/aRustyDev/ai --skill o11y-metrics-prometheus-ops
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: o11y-metrics-prometheus-ops
Source: https://github.com/aRustyDev/ai/tree/main/components/skills/o11y-metrics-prometheus-ops
Command: npx skills add https://github.com/aRustyDev/ai --skill o11y-metrics-prometheus-ops

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides comprehensive Prometheus setup, metric collection, storage, and alerting configurations for infrastructure and applications.

Core Features & Use Cases

  • Prometheus architecture, scrape configuration, and recording rules
  • Alert rules design and service discovery patterns
  • Multi-environment monitoring (Kubernetes, bare metal, VMs)

Quick Start

Copy and adapt the provided prometheus.yml.template, adjust external labels, and start Prometheus; verify targets and rules with the Prometheus UI and promtool.

Frequently Asked Questions about o11y-metrics-prometheus-ops

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

FAQPage Schema
How do I set up Prometheus to collect metrics from my infrastructure?

Prometheus monitoring requires configuring scrape targets in prometheus.yml to define which endpoints collect metrics. The Skill provides a template with global intervals, scrape configs, and service discovery patterns for Kubernetes, Docker Compose, and cloud environments. Copy the template, adjust external labels and target endpoints, then start Prometheus to begin metric collection.

Can I use Prometheus with Kubernetes service discovery?

Yes, Prometheus supports Kubernetes service discovery through SD configurations. This Skill covers Kubernetes SD setup alongside static targets and file-based discovery, enabling automatic target detection and metric scraping across containerized deployments without manual endpoint management.

How do I create alerting rules in Prometheus?

Alerting rules in Prometheus define conditions that trigger notifications when metrics cross thresholds. This Skill covers alert rule design, rule loading configuration, and alert integration patterns. Define rules in YAML, load them via prometheus.yml, and connect to alerting backends for notification delivery.

What's the difference between scrape config and recording rules in Prometheus?

Scrape configs define which targets Prometheus pulls metrics from and how often; recording rules pre-compute frequently queried metric expressions and store results as new time series. This Skill covers both: scraping handles collection and storage, while recording rules optimize query performance for complex calculations.

Does Prometheus work with Grafana for visualization?

Prometheus stores metrics that Grafana queries and visualizes through dashboards. This Skill configures the Prometheus backend—metric collection, alerting, and storage—which Grafana uses as a data source. The setup enables end-to-end monitoring pipelines combining Prometheus and Grafana.

How do I verify my Prometheus configuration before deployment?

Use promtool to validate prometheus.yml syntax and rule files for errors before starting Prometheus. The Skill recommends verifying targets and rules in the Prometheus UI after deployment. This prevents misconfiguration and ensures scrape intervals, service discovery, and alert rules load correctly.