It could be either or. It could even be a faulty ground. I suggest taking the alternator and the battery to have them both tested. Most part stores do this for free. As well as check over the wiring to and from the battery/alternator and the grounds and fuses. This should fix you up. If not simply come back and we will access this further.
If satisfied, please accept this answer. Thank you.
__________________
Kevin Cagle
