it flows eastward along the northern base of the santa monica mountains , runs through the narrows at glendale past downtown los angeles and through the gritty suburbs of vernon , bell , south gate and compton , finally entering san pedro bay in long beach .