Interview Prep/Monitoring & Observability/PromQL and recording rules

Memory dashboard uses `container_memory_usage_bytes` and shows pods near limit, yet no OOMKills happen

IntermediateTroubleshootingPromQL and recording rules
Answer

Likely causes → usage_bytes includes page cache that the kernel can reclaim. OOM decisions are based on working set.

Diagnose → Compare container_memory_working_set_bytes and container_memory_rss for the same pod.

Fix → Use container_memory_working_set_bytes for limit-based alerts and dashboards.

Prevent → Standardise memory panels across teams.

All Monitoring & Observability questions Roadmap: Monitoring & alerting

More on PromQL and recording rules