The usual way to measure job satisfaction is with some kind of survey.
To obtain a survey instrument, an excellent place to begin is with one of the many established scales.
Job Descriptive Index
Exit interview: meeting of the departing employee with the supervisor and/or HR specialist to discuss the employee’s reasons for leaving.
Nonverbal measure of job satisfaction