something that gives an early warning of danger or failure, in the way that, in the past, a canary taken into a mine (= an underground place for digging coal or minerals) would die if the air was not safe to breathe, warning the people working there: