Monitoring applications in the cloud