As I have grown older, I have realized more and more that the most important things can't really be measured directly. Yes you can measure some related things that give you some hints about the thing you care about, but they are fragile. To borrow from Goodhart, if you make the related things a target, they will stop giving you even these hints. This applies not just in software development, but life in general.
The problem is analyzing why or why not it's hitting your desired value.