An expression referring to caged canaries (birds) that miners would carry down into the mine tunnels with them as a warning system. Any dangerous gases collected in the mine would kill the canary before killing the miners, thus signalling to the miners to exit the tunnels immediately.