Surging inflation, an economic slowdown, and uncertainty over how long the energy shock set will last has forced central banks to adjust.