prometheus-configuration

Configure Prometheus scrape targets, rules, and TLS settings for Kubernetes and Docker Compose.

Updated Apr 5, 2026
One-click install
npx skills add https://github.com/Jhabbig/Habbig --skill prometheus-configuration-jhabbig
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prometheus-configuration
Source: https://github.com/Jhabbig/Habbig/tree/main/.claude/plugins/wshobson/observability-monitoring/skills/prometheus-configuration
Command: npx skills add https://github.com/Jhabbig/Habbig --skill prometheus-configuration-jhabbig

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Prometheus monitoring setups often become fragmented across scrape targets, rule files, TLS settings, and alert definitions. This Skill gives you a single practical reference for building reliable metrics collection and alerting without missing important operational details.

Core Features & Use Cases

  • Scrape configuration for static targets, file-based service discovery, and Kubernetes services or pods.
  • Recording rules to precompute expensive queries such as request rates, error rates, latency percentiles, and resource utilization.
  • Alert rules for service outages, high error rates, latency spikes, CPU, memory, and disk pressure.
  • Operational guidance covering validation, troubleshooting, retention, relabeling, and long-term monitoring patterns.
  • Use case: Set up a production-ready monitoring stack for an application fleet and standardize how metrics are collected, stored, and alerted on.

Quick Start

Use the prometheus-configuration skill to generate a Prometheus configuration for my services with scrape jobs, recording rules, and alerts.

Frequently Asked Questions about prometheus-configuration

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

FAQPage Schema
How do I configure Prometheus scrape configs for Kubernetes pods and static targets?

Prometheus scrape configuration defines metric collection jobs for Kubernetes services, static targets, and file-based service discovery workflows. You specify target endpoints, scrape intervals, and TLS settings to ensure reliable metrics gathering across your infrastructure.

What's the best way to precompute expensive Prometheus metrics like request rates and latency percentiles?

Recording rules precompute expensive Prometheus queries such as request rates, error rates, latency percentiles, and resource utilization. Configuring these rules saves computational overhead during dashboard rendering and alert evaluation.

How do I set up Prometheus alert rules for high error rates and CPU pressure?

Prometheus alert rules define threshold conditions for service outages, high error rates, latency spikes, CPU, memory, and disk pressure. You write PromQL expressions that trigger alerts when infrastructure or application metrics breach defined limits.

Can I use file-based service discovery to monitor a Docker Compose application fleet with Prometheus?

File-based service discovery supports monitoring Docker Compose application fleets by dynamically loading target configurations from JSON or YAML files. This approach standardizes metric collection across dynamic infrastructure without requiring manual static target updates.

Do I need TLS settings and relabeling to secure and organize Prometheus metric collection?

TLS settings secure scrape traffic between Prometheus and targets, while relabeling standardizes metric labels before ingestion. Both are required operational details for building a reliable, production-ready monitoring stack.