Prometheus Configuration

Prometheus Configuration

Guides setting up Prometheus for metric collection, scrape configuration, recording rules, alert rules and service discovery, with best practices and troubleshooting commands.

Skill files2 files

references/

SKILL.md65 lines
1
---
2
name: prometheus-configuration
3
description: 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
---
5
6
# Prometheus Configuration
7
8
Complete guide to Prometheus setup, metric collection, scrape configuration, and recording rules.
9
10
## Purpose
11
12
Configure 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
24
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
25
26
## Best Practices
27
28
1. **Use consistent naming** for metrics (prefix_name_unit)
29
2. **Set appropriate scrape intervals** (15-60s typical)
30
3. **Use recording rules** for expensive queries
31
4. **Implement high availability** (multiple Prometheus instances)
32
5. **Configure retention** based on storage capacity
33
6. **Use relabeling** for metric cleanup
34
7. **Monitor Prometheus itself**
35
8. **Implement federation** for large deployments
36
9. **Use Thanos/Cortex** for long-term storage
37
10. **Document custom metrics**
38
39
## Troubleshooting
40
41
**Check scrape targets:**
42
43
```bash
44
curl http://localhost:9090/api/v1/targets
45
```
46
47
**Check configuration:**
48
49
```bash
50
curl http://localhost:9090/api/v1/status/config
51
```
52
53
**Test query:**
54
55
```bash
56
curl '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

© Seth Hobson · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…