Dishwasher noise/whine

Over the past 6 months or so our dishwasher has gotten louder and louder when it operates. My thinking is it’s the motor/ water pump because you hear it when it’s running and the noise is more like a whining noise. My dishes are coming out clean so it’s still doing the job. Any suggestion on what’s causing the noise and is there something simple that I can do to stop it.