my yellow lab / female at that age did that but she did go outside, luckly, and it was a uti, said it is common in labs and goldens so i be that is it... they gave her meds and she was all set in a few days...
Call the vet who gave the shots and talk to him/her. Could be a UTI but your dog needs to be seen and tested.