Brentford boss Andy Scott told the club's website: "I am delighted to get him to Griffin Park with his proven goal scoring record at this level.
"I am confident he will fit in here and he will give us the goals we need."
Alexander was with Millwall for three seasons, scoring 19 goals in 86 league appearances.
Source: BBC Sport
Source: BBC Sport