You can use either; however, this is the usage note from Random House Dictionary that might be of help:
"As a collective noun, variety, when preceded by a, is often treated as a plural: A variety of inexpensive goods are sold here. When preceded by the, it is usually treated as a singular: The variety of products is small."