A new approach to adaptive monitoring