Prometheus Monitoring

Prometheus Monitoring

Teaches an AI agent to set up Prometheus monitoring: custom metrics, scrape configs, service discovery, alert rules and Docker Compose setup.

Skill files8 files

references/

scripts/

templates/

SKILL.md97 lines
1
---
2
name: prometheus-monitoring
3
description: >
4
Set up Prometheus monitoring for applications with custom metrics, scraping
5
configurations, and service discovery. Use when implementing time-series
6
metrics collection, monitoring applications, or building observability
7
infrastructure.
8
---
9
10
# Prometheus Monitoring
11
12
## Table of Contents
13
14
- [Overview](#overview)
15
- [When to Use](#when-to-use)
16
- [Quick Start](#quick-start)
17
- [Reference Guides](#reference-guides)
18
- [Best Practices](#best-practices)
19
20
## Overview
21
22
Implement comprehensive Prometheus monitoring infrastructure for collecting, storing, and querying time-series metrics from applications and infrastructure.
23
24
## When to Use
25
26
- Setting up metrics collection
27
- Creating custom application metrics
28
- Configuring scraping targets
29
- Implementing service discovery
30
- Building monitoring infrastructure
31
32
## Quick Start
33
34
Minimal working example:
35
36
```yaml
37
# /etc/prometheus/prometheus.yml
38
global:
39
scrape_interval: 15s
40
evaluation_interval: 15s
41
external_labels:
42
cluster: production
43
44
alerting:
45
alertmanagers:
46
- static_configs:
47
- targets: ["localhost:9093"]
48
49
rule_files:
50
- "/etc/prometheus/alert_rules.yml"
51
52
scrape_configs:
53
- job_name: "prometheus"
54
static_configs:
55
- targets: ["localhost:9090"]
56
57
- job_name: "node"
58
static_configs:
59
- targets: ["localhost:9100"]
60
61
- job_name: "api-service"
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Prometheus Configuration](references/prometheus-configuration.md) | Prometheus Configuration |
72
| [Node.js Metrics Implementation](references/nodejs-metrics-implementation.md) | Node.js Metrics Implementation |
73
| [Python Prometheus Integration](references/python-prometheus-integration.md) | Python Prometheus Integration |
74
| [Alert Rules](references/alert-rules.md) | Alert Rules |
75
| [Docker Compose Setup](references/docker-compose-setup.md) | Docker Compose Setup |
76
77
## Best Practices
78
79
### ✅ DO
80
81
- Use consistent metric naming conventions
82
- Add comprehensive labels for filtering
83
- Set appropriate scrape intervals (10-60s)
84
- Implement retention policies
85
- Monitor Prometheus itself
86
- Test alert rules before deployment
87
- Document metric meanings
88
89
### ❌ DON'T
90
91
- Add unbounded cardinality labels
92
- Scrape too frequently (< 10s)
93
- Ignore metric naming conventions
94
- Create alerts without runbooks
95
- Store raw event data in Prometheus
96
- Use counters for gauge-like values
97

© AJ Geddes · 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…