I have a question about using the labels from one metric to query for the presence/absence of another metric.
For example, I have some nodes that (when they are online) emit this metric:
up{name="node1"} 1
up{name="node2"} 1
At the same time, I am propagating cadvisor metrics from these nodes:
container_last_seen{name="grafana", node="node1"} 1587672314
container_last_seen{name="fluentd", node="node1"} 1587672284
container_last_seen{name="grafana", node="node2"} 1587672251
In this case, I would like to create an alert that triggers because "node2" is up but the container_last_seen metric is absent for grafana on node2. Is this possible to do?
Thanks.