Skill files8 files

references/

scripts/

templates/

SKILL.md102 lines
1
---
2
name: alert-management
3
description: >
4
Implement comprehensive alert management with PagerDuty, escalation policies,
5
and incident coordination. Use when setting up alerting systems, managing
6
on-call schedules, or coordinating incident response.
7
---
8
9
# Alert Management
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Design and implement sophisticated alert management systems with PagerDuty integration, escalation policies, alert routing, and incident coordination.
22
23
## When to Use
24
25
- Setting up alert routing
26
- Managing on-call schedules
27
- Coordinating incident response
28
- Creating escalation policies
29
- Integrating alerting systems
30
31
## Quick Start
32
33
Minimal working example:
34
35
```javascript
36
// pagerduty-client.js
37
const axios = require("axios");
38
39
class PagerDutyClient {
40
constructor(apiToken) {
41
this.apiToken = apiToken;
42
this.baseUrl = "https://api.pagerduty.com";
43
this.eventUrl = "https://events.pagerduty.com/v2/enqueue";
44
45
this.client = axios.create({
46
baseURL: this.baseUrl,
47
headers: {
48
Authorization: `Token token=${apiToken}`,
49
Accept: "application/vnd.pagerduty+json;version=2",
50
},
51
});
52
}
53
54
async triggerEvent(config) {
55
const event = {
56
routing_key: config.routingKey,
57
event_action: config.eventAction || "trigger",
58
dedup_key: config.dedupKey || `event-${Date.now()}`,
59
payload: {
60
summary: config.summary,
61
// ... (see reference guides for full implementation)
62
```
63
64
## Reference Guides
65
66
Detailed implementations in the `references/` directory:
67
68
| Guide | Contents |
69
|---|---|
70
| [PagerDuty Client Integration](references/pagerduty-client-integration.md) | PagerDuty Client Integration |
71
| [Alertmanager Configuration](references/alertmanager-configuration.md) | Alertmanager Configuration |
72
| [Alert Handler Middleware](references/alert-handler-middleware.md) | Alert Handler Middleware |
73
| [Alert Routing Engine](references/alert-routing-engine.md) | Alert Routing Engine |
74
| [Docker Compose Alert Stack](references/docker-compose-alert-stack.md) | Docker Compose Alert Stack |
75
76
## Best Practices
77
78
### ✅ DO
79
80
- Set appropriate thresholds
81
- Implement alert deduplication
82
- Use clear alert names
83
- Include runbook links
84
- Configure escalation properly
85
- Test alert rules
86
- Monitor alert quality
87
- Set repeat intervals
88
- Track alert metrics
89
- Document alert meanings
90
91
### ❌ DON'T
92
93
- Alert on every anomaly
94
- Ignore alert fatigue
95
- Set thresholds arbitrarily
96
- Skip runbooks
97
- Alert without action
98
- Disable alerts in production
99
- Use vague alert names
100
- Forget escalation policies
101
- Re-alert too frequently
102

© 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…