function logFailure(endpoint, code, action) {
  logger.error('Agent endpoint %s returned %s status. %s.', endpoint, code, action)
}
@param {string} endpoint called endpoint
@param {string} code http status code
@param {string} action describes collector action