Inline Voltage Divider - do they exist?
An image search for "glanded miniature terminal box" shows up the following products.



Figure 1. Something like this should do the trick. You need three terminals for cable termination and resistive divider component termination.