The COAT approach to adaptive monitoring