```promql rate(http_requests_total[5m]) ``` - rate(): Extracts per-second value - [5m]: 5-minute window
Scanned 9/10/2026
Install to Claude Code
npx -y skills add snoodleboot-io/prompticorn --skill minimal --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Minimal?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/snoodleboot-io-minimal-a120691c)More formats (shields.io, HTML) on the badges page.
# Prometheus Query Patterns (Minimal)
## Core Queries
### Request Rate (per second)
```promql
rate(http_requests_total[5m])
```
- rate(): Extracts per-second value
- [5m]: 5-minute window
### Error Rate
```promql
rate(http_requests_total{status=~"5.."}[5m]) /
rate(http_requests_total[5m])
```
### Latency (P95)
```promql
histogram_quantile(0.95,
rate(http_request_duration_seconds_bucket[5m])
)
```
### Availability
```promql
sum(rate(http_requests_total{status="200"}[1h])) /
sum(rate(http_requests_total[1h]))
```
## Common Functions
| Function | Purpose | Example |
|----------|---------|---------|
| rate() | Per-second rate | rate(counter[5m]) |
| increase() | Total increase | increase(counter[1h]) |
| histogram_quantile() | Percentile | histogram_quantile(0.99, histogram) |
| sum() | Add series | sum(metric) |
| avg() | Average series | avg(metric) |
## Alerts
```promql
# Error rate alert
rate(errors_total[5m]) > 0.01 # >1% error rate
# Latency alert
histogram_quantile(0.95, latency) > 0.5 # >500ms
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!