I'm guessing she has a luxating patella which isn't an emergency, but needs to be checked by your vet asap. He will probably put her on an anti-inflammatory to see if he can calm things down.
Here is some information:
Luxating Patella: A Knee Problem in Dogs