I think that attaching a UPS (uninterruptible power supply) to your Macintosh is an excellent idea, even if you don't live in an area with unreliable power. I've noticed that Macs attached to UPS's tend to have way fewer problems than those that are not. Most importantly, Macs with rotating disk hard drives tend to have RDHD's that last way longer if they are attached to a UPS.
There are several factors to take into account in choosing a UPS for your computer. The first is the draw of your computer and vital accessories (such as an external hard drive and monitor). You need to choose a UPS that can allow your computer setup to run for five or ten minutes during a blackout to give you enough time to save your work and shut down everything properly. Here is a model selection tool from CyberPower that will help:
https://www.cyberpowersystems.com/tools/ups-selector/
Make sure that you get a UPS with AVR (automatic voltage regulation). Cheap and poorly made UPS's don't have this feature, and trust me, you really want it. It protects your computer from sags in the power, in addition to surges. Note that APS brand UPS's sometimes curiously don't have AVR (this isn't always the case, but you should be careful to check), even if their price would indicate that they should.
Just a short story. I was once hired by this office to fix a problem where their Macs randomly and spontaneously shut down all the time. They were at their wit's end trying to figure out what was causing the problem.
To make a long story short, there was a break room with a refrigerator. When the refrigerator cycled on, it caused such a sag in the power to the entire office of Macs would shut down because of it. Putting APS UPS's on the Macs didn't help at all. Putting good UPS's with AVR on the Macs fixed everything.
This is the brand and model of UPS that I most often recommend (CyberPower products usually offer an excellent combination of features, reliability and price):
CyberPower 1000AVR ($110 with free shipping)
https://www.amazon.com/dp/B000QZ3UG0/?tag=macforums0e4-20
or
http://is.gd/iaxI4
You only need to plug things into the battery-backed outlets of your UPS that need power to allow you to have time to save your work and properly shut down in the advent of a brownout or a blackout. That means your computer, monitor, any external hard drives, and that's about it. *NEVER* attach a printer to a UPS, that will usually be far too much of a draw. Any other peripheral (including your printer) can be attached to a surge-only outlet on your UPS, or to a separate surge suppressor.
Note that your UPS can be set to automatically shut down your Macintosh properly if it is unattended and there is a blackout or brownout. The software to to do this is included in the MacOS. See:
https://support.apple.com/kb/PH18593?viewlocale=en_US&locale=en_US
http://www.cyberpowersystems.com/support/faqs/faq_OSX_UPS.html
I hope this helps.