<< All versions
Skill v1.0.0
Automated scanaj-geddes/useful-ai-prompts/prometheus-monitoring
──Details
PublishedMarch 27, 2026 at 04:09 AM
Content Hashsha256:e3b0c44298fc1c14...
Git SHAdiscovery:a4
──Files
Files (1 file, 2.5 KB)
SKILL.md2.5 KBactive
SKILL.md · 98 lines · 2.5 KB
version: "1.0.0" name: prometheus-monitoring description: > Set up Prometheus monitoring for applications with custom metrics, scraping configurations, and service discovery. Use when implementing time-series metrics collection, monitoring applications, or building observability infrastructure.
Prometheus Monitoring
Table of Contents
Overview
Implement comprehensive Prometheus monitoring infrastructure for collecting, storing, and querying time-series metrics from applications and infrastructure.
When to Use
- Setting up metrics collection
- Creating custom application metrics
- Configuring scraping targets
- Implementing service discovery
- Building monitoring infrastructure
Quick Start
Minimal working example:
yaml
# /etc/prometheus/prometheus.ymlglobal:scrape_interval: 15sevaluation_interval: 15sexternal_labels:cluster: productionalerting:alertmanagers:- static_configs:- targets: ["localhost:9093"]rule_files:- "/etc/prometheus/alert_rules.yml"scrape_configs:- job_name: "prometheus"static_configs:- targets: ["localhost:9090"]- job_name: "node"static_configs:- targets: ["localhost:9100"]- job_name: "api-service"// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
| Guide | Contents | |
|---|---|---|
| Prometheus Configuration | Prometheus Configuration | |
| Node.js Metrics Implementation | Node.js Metrics Implementation | |
| Python Prometheus Integration | Python Prometheus Integration | |
| Alert Rules | Alert Rules | |
| Docker Compose Setup | Docker Compose Setup |
Best Practices
✅ DO
- Use consistent metric naming conventions
- Add comprehensive labels for filtering
- Set appropriate scrape intervals (10-60s)
- Implement retention policies
- Monitor Prometheus itself
- Test alert rules before deployment
- Document metric meanings
❌ DON'T
- Add unbounded cardinality labels
- Scrape too frequently (< 10s)
- Ignore metric naming conventions
- Create alerts without runbooks
- Store raw event data in Prometheus
- Use counters for gauge-like values