docker run --rm -v $PWD:/work -w /work prom/prometheus:latest promtool test rules tests/k8s-memory-alerts.test.yamlFix Kubernetes memory alerts without falling for the page cache trap
A practical Prometheus workflow so memory pages fire on RSS, OOMs, and real pressure, not because container_memory_usage_bytes wanted attention.
Learn how to redesign Kubernetes memory saturation alerts by comparing usage, working set, RSS, cache, limits, OOMKilled events, and promtool validation.
Created: August 26, 2026
Published: August 26, 2026
Docker
Validate alert rules locally with promtool and synthetic fixtures before changing the real Prometheus server.
Dockerrules.yamltests/*.yaml
docker run --rm -v $PWD:/work -w /work prom/prometheus:latest promtool check rules rules/k8s-memory-alerts.yamlContent locked
This guide requires both steps before full content is available.
- ○Click “Like” on this guide.
- ○Share on WhatsApp, X, LinkedIn, or copy the link.
Access is automatically unlocked as soon as both steps are completed.