monitoring example implementation