implements metrics and health check