Creating an Alarm from a Metric on a Graph