How do you know if your panels are still working?

So you installed a solar system a few years ago and it has been working great but how do you know if it’s still producing as much power as it can? Maybe you’re worried that one of the panels is broken or the trees that were small a few years ago have grown and are now creating too much shade …