Agent for collecting various application metrics