prometheus-configuration

Configure Prometheus scrape jobs, recording rules, and alert rules for infrastructure monitoring.

Updated Apr 23, 2026
One-click install
npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill prometheus-configuration-sanketadlak
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prometheus-configuration
Source: https://github.com/SanketAdlak/PDMProjectDesign/tree/main/.agents/skills/prometheus-configuration
Command: npx skills add https://github.com/SanketAdlak/PDMProjectDesign --skill prometheus-configuration-sanketadlak

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up Prometheus monitoring from scratch involves complex YAML configuration for scrape targets, service discovery, recording rules, and alerting, which is error-prone and time-consuming without a structured reference. ## Core Features & Use Cases - Scrape Configuration: Set up static targets, file-based service discovery, and Kubernetes service discovery with relabeling rules. - Recording & Alert Rules: Create pre-computed metrics for rates, error percentages, and latency percentiles, plus alert rules for availability and resource usage. - Deployment Options: Install via Helm on Kubernetes or Docker Compose, and validate configurations with promtool. - Use Case: You need to monitor a Kubernetes cluster and its applications. Use this Skill to generate a complete prometheus.yml with pod annotation-based discovery, CPU/memory recording rules, and critical alerts for service downtime. ## Quick Start Set up a Prometheus configuration that scrapes my Kubernetes pods and alerts me when any service is down for more than one minute.

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 to scrape Kubernetes pods?

Use kubernetes_sd_configs with the pod role and relabel_configs that keep pods annotated with prometheus.io/scrape: true. Additional relabel rules map the prometheus.io/path and prometheus.io/port annotations to the metrics path and target address.

How do I create Prometheus recording rules?

Define rule groups in a YAML file loaded via rule_files, with each rule specifying a record name and a PromQL expression. Common examples include pre-computing 5-minute request rates, error rate percentages, and P95 latency using histogram_quantile.

How do I install Prometheus on Kubernetes with Helm?

Add the prometheus-community Helm repository and install the kube-prometheus-stack chart into a monitoring namespace. You can set retention and storage size via values such as prometheus.prometheusSpec.retention and storageVolumeSize.

How do I validate a Prometheus configuration file?

Run promtool check config prometheus.yml to validate the main configuration and promtool check rules on your rules files to verify recording and alert rule syntax. You can also test queries with promtool query instant against a running server.

What is the difference between static configs and file-based service discovery in Prometheus?

Static configs hardcode targets directly in prometheus.yml, requiring a reload for changes. File-based service discovery reads target lists from JSON or YAML files on a refresh interval, letting you update targets without restarting Prometheus.