Global middleware

Hi, is there somehow I can add a "global" middleware to blacklist all calls to /metrics and "/health*"?