I wrote a blog post a few months ago about Goodhart's Law in my life, titled "Gamification, life, and the pursuit of a gold badge".
https://web.eecs.utk.edu/~azh/blog/gamification.html
The Tyranny of Metrics is a good book that covers real-world cases of metrics gone wrong.