Skills · Infrastructure & ops

Prometheus Configuration

Unverified27/40

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

Originally by wshobson · MIT

Claude CodePartialHas SKILL.md but declares no allowed-tools — Claude Code will ask for permission each time
Cursor·UnknownWe have not crawled the repo tree, so we will not guess
Codex·UnknownWe have not crawled the repo tree, so we will not guess
Gemini CLI·UnknownThe spec defines no detection rule for Gemini
Copilot·UnknownWe have not crawled the repo tree, so we will not guess
npx agentalley add prometheus-configuration

This command does not work yet — the CLI is still being built. Until then, use Raw in the reader below to take the file.

Who is stuck, and on what

Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.

The whole source

No sign-in, no blur, nothing truncated
prometheus-configuration/SKILL.md65 lines1.8 KBRawView on GitHub
Frontmatter — 2 properties
nameprometheus-configuration
descriptionSet up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
1---
2name: prometheus-configuration
3description: Set up Prometheus for comprehensive metric collection, storage, and monitoring of infrastructure and applications. Use when implementing metrics collection, setting up monitoring infrastructure, or configuring alerting systems.
4---A5No allowed-tools declared — no way to tell what this skill may touch
5 
6# Prometheus Configuration
7 
8Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.A4This skill pulls in web or user content but never says to treat that content as data. A signal, not proof.
9 
10## Purpose
11 
12Configure Prometheus for comprehensive metric collection, alerting, and monitoring of infrastructure and applications.
13 
14## When to Use
15 
16- Set up Prometheus monitoring
17- Configure metric scraping
18- Create recording rules
19- Design alert rules
20- Implement service discovery
21 
22## Detailed patterns and worked examples
23 
24Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
25 
26## Best Practices
27 
281. **Use consistent naming** for metrics (prefix_name_unit)
292. **Set appropriate scrape intervals** (15-60s typical)
303. **Use recording rules** for expensive queries
314. **Implement high availability** (multiple Prometheus instances)
325. **Configure retention** based on storage capacity
336. **Use relabeling** for metric cleanup
347. **Monitor Prometheus itself**
358. **Implement federation** for large deployments
369. **Use Thanos/Cortex** for long-term storage
3710. **Document custom metrics**
38 
39## Troubleshooting
40 
41**Check scrape targets:**
42 
43```bash
44curl http://localhost:9090/api/v1/targets
45```
46 
47**Check configuration:**
48 
49```bash
50curl http://localhost:9090/api/v1/status/config
51```
52 
53**Test query:**
54 
55```bash
56curl 'http://localhost:9090/api/v1/query?query=up'
57```
58 
59 
60## Related Skills
61 
62- `grafana-dashboards` - For visualization
63- `slo-implementation` - For SLO monitoring
64- `distributed-tracing` - For request tracing
65 

Reviews

Installed this one?Write the first review and take the Trailblazer badge.

Reviews only open after a real install, so this is empty — and we leave it empty rather than invent one.

Alternatives

Also in Infrastructure & ops