I think a more apt analogy (or cliche) is canary in the coalmine.