Any blood coming from somewhere that it's not supposed to (dog in heat etc) should be looked at by a vet promptly.

Discharge around a nipple or lumps in reproductive areas can be serious and need to be looked at.

Good luck, let us know what the vet says about it.