However, it is a common defense treaty, and as such each member is expected to contribute a proportionate amount to their own military. Most recently the agreed level was 2% of GDP, which Germany has consistently fallen short of. Both Obama and Bush complained about it as well, but they both had a reasonable understanding of how things worked.
The thing you (and Trump) are meaning is the total defense spending as percentage of GDP. Germany cannot be "delinquent" here by definition! Every country is legally free to spend whatever it wants on defense. The "2%"is an informal goal only, not backed by any international treaty!
Trump just doesn't understand the geostrategic position of the U.S., where troops stationed in critical countries prevent invasions which would upturn its imperial economic order. Trump thinks the U.S. has stationed troops in SK, Germany, Taiwan for the countries' interests, where they were clearly deployed there to defend its own.
If we had a democratic system we wouldn't waste so many resources on armaments. That's why the military-industrial complex destroyed our previously somewhat-democratic system.