# Custom recommendation policies

> ZopNight now lets you write your own recommendation policies. Pick the resources and a metric, set a threshold over a time window, and choose what ZopNight should raise when that threshold is crossed. Custom recommendations appear beside the built-in ones and behave the same way, each explaining why it was raised and what to do about it.

Source: https://zop.dev/changelog/v1-38-0
Published: 2026-08-17 · Tags: zopnight, recommendations, policies, automation, cost

---

Custom recommendation policies

## New

- ZopNight: custom recommendation policies. Pick the resources and a metric such as CPU, set a threshold over a time window, and choose what ZopNight should raise when that threshold is crossed: Idle, Schedule, Rightsize, Retire, or a category you name yourself
- ZopNight: custom recommendations sit beside the built-in ones and work the same way. Each explains why it fired, estimates the savings, and warns before you stop something critical such as a database. Rules also catch short spikes, so a brief burst above a threshold like 80% CPU no longer slips through
