Lights dimming and brightening

Can this be a bad alternator or voltage regulator?

Lights all brighten up when you rev up and dim back down when the car idles.

Is the voltage regulator built into the alternator ?

Don;t wnat the battery to overcharge and blow up.

Any help here? Thanks