If you measure the wrong thing, people will get remarkably good at doing the wrong thing.
The Great Hanoi Rat-Tail Economy
In 1902, French colonial administrators in Hanoi grew alarmed as rats swarmed through the city's newly built modern sewer system, threatening bubonic plague. To solve the infestation fast, officials offered a cash bounty for every rat killed - using severed rat tails as proof so inspectors wouldn't have to store mountains of carcasses.
Within weeks, tens of thousands of tails poured in, yet Hanoi's rat population somehow exploded. Health inspectors soon spotted tailless rats scurrying happily through the streets and uncovered makeshift rat-breeding farms just outside the city limits. Locals had realized a live rat without a tail was a renewable factory. Measure tails instead of rat-free sewers, and you'll get world-class tail farmers.
Source: 1902 Hanoi Rat Massacre (Michael G. Vann, 'Of Rats, Rice, and Race,' French Colonial History, 2003).