Astrology was widely in use in the period of Mahabharata.
Various Rishis had predicted the war beforehand and its outcome.