absent_over_time(...) produces labels in some circumstances, but not in 
others:
https://prometheus.io/docs/prometheus/latest/querying/functions/#absent_over_time

I presume your expression is also one that has no labels, because otherwise 
the "OR" condition wouldn't work.

Anyway, this seems to work:

label_replace(vector(0), "foo", "bar", "__name__", ".*")


Or maybe a recording rule is cleaner.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/f2e2dcaf-b13d-4f99-b1f5-e0ef8e446634o%40googlegroups.com.

Reply via email to