P
prometheus-configuration
About prometheus-configuration
A guide for configuring Prometheus to collect metrics and monitor infrastructure and applications. It covers scraping, recording and alert rules, service discovery, and operational practices.
Key features
- 01Metric scrape configuration
- 02Recording rule setup
- 03Alert rule design
- 04Service discovery guidance
- 05Prometheus troubleshooting
Use cases
- 01Setting up Prometheus monitoring
- 02Configuring metric targets
- 03Creating recording and alert rules
- 04Diagnosing scrape and query issues
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ wshobson/ agents --skill prometheus-configurationAfter installing, type/prometheus-configurationin Claude Code to confirm it loaded.
Bundled filesreferences/details.md
Details
From the project READMEPrometheus Configuration
Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.
Purpose
Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.
When to Use
- Set up Prometheus monitoring
- Configure metric scraping
- Create recording rules
- Design alert rules
- Implement service discovery
Detailed patterns and worked examples
Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.
Best Practices
- Use consistent naming for metrics (prefix_name_unit)
- Set appropriate scrape intervals (15-60s typical)
- Use recording rules for expensive queries
- Implement high availability (multiple Prometheus instances)
- Configure retention based on storage capacity
- Use relabeling for metric cleanup
- Monitor Prometheus itself
- Implement federation for large deployments
- Use Thanos/Cortex for long-term storage
- Document custom metrics
Troubleshooting
Check scrape targets:
curl http://localhost:9090/api/v1/targets
Check configuration:
curl http://localhost:9090/api/v1/status/config
Test query:
curl 'http://localhost:9090/api/v1/query?query=up'
Related Skills
grafana-dashboards- For visualizationslo-implementation- For SLO monitoringdistributed-tracing- For request tracing
Comments
Markdown supported