prometheus

Configure Prometheus metric collection, PromQL queries, and Alertmanager routing.

53|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/cosmix/claude-code-setup --skill prometheus
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prometheus
Source: https://github.com/cosmix/claude-code-setup/tree/main/skills/prometheus
Command: npx skills add https://github.com/cosmix/claude-code-setup --skill prometheus

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prometheus offers robust metrics collection and alerting for cloud-native systems, enabling reliable monitoring and proactive operations.

Core Features & Use Cases

  • Metrics & PromQL: Time-series data collection and querying.
  • Alertmanager: Alert routing and deduplication.
  • Discoverability: Service discovery and exporters.
  • Use Case: Monitor a microservices app with custom metrics and alert rules.

Quick Start

Install and configure Prometheus and Alertmanager; add scrape configs and basic alert rules.

Frequently Asked Questions about prometheus

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

FAQPage Schema
How do I set up metrics collection and alerting for my cloud-native systems?

Prometheus collects time-series metrics from applications and infrastructure, then routes alerts through Alertmanager based on configured rules. Install Prometheus with scrape configs pointing to your services, define alert rules, and connect Alertmanager for notification routing.

What is PromQL and how do I query metrics in Prometheus?

PromQL is Prometheus's query language for analyzing time-series data. Use it to select metrics, aggregate values across dimensions, and calculate rates or percentiles. Queries power dashboards, alert conditions, and ad-hoc metric inspection.

Can I monitor Kubernetes services with Prometheus?

Yes, Prometheus supports Kubernetes service discovery to automatically detect and scrape pods and services. Configure scrape configs with Kubernetes SD to monitor microservices without manual endpoint management.

How do I integrate custom application metrics with Prometheus?

Instrument your application using Prometheus client libraries to emit Counter, Gauge, Histogram, and Summary metrics. Expose metrics on an HTTP endpoint, then add it to Prometheus scrape configs for collection.

What's the difference between Alertmanager routing and alert rules?

Alert rules define conditions that trigger alerts based on metric thresholds; Alertmanager routes triggered alerts to recipients via email, Slack, or webhooks, handling deduplication and grouping.

When should I use the Prometheus Pushgateway?

Use Pushgateway for short-lived batch jobs that finish before Prometheus can scrape them. Jobs push metrics to Pushgateway, which Prometheus then scrapes, preserving metrics from ephemeral workloads.