Is on a wild goose chase an idiom or a simile?

It is a idiom.