Alert templating question.
I have an issue where some targets have a hostname label. When there is no
hostname label the instance label should be used.
Would this work in a prometheus alert annotation:
{{ or $labels.hostname $labels.instance }}
?
--
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/dc4da945-8fd1-41dc-9c10-ced090a1ca2d%40googlegroups.com.