2007 Pontiac G6 2.4 charging problem

Really don’t think it’s the battery leaking but more of a boiling over. Guessing now that the battery drops its voltage-perhaps a short-and the alternator kicks in hard to compensate by charging.
Again, no stored fault codes. Another guess is that there is no technology on my G6 recording the condition of the battery but only what charges it. Am I right?
Purchasing a new battery tomorrow.