A lot of the funding comes from seizures of cars, houses, cash, anything that can be grabbed. Then it's up to the citizen to "prove" it isn't ill-gotten goods.
I don't have any figures for local municipalities, but US Attorneys have been pretty prosperous. In 2010, the seizure total for the Feds was over $1 billion.