Hi, I have the description for port utilization alert defined this way:
Interface Problem: Utilization OUT [[ $value ]]% (current: [[ printf "round(port_out_bps{port_id='%s'} / ignoring(job) port_speed{port_id='%s'} * 100, 0.1)" .Labels.port_id .Labels.port_id | query | first | value ]]%) Sometimes when I have no data from metric port_out_bps I got this error as description of alert: "<first>: error calling first: first() called on vector with no elements" Is there a way, how to check in template returned value and set fallback value for current utilization to "unknown" ? Thank you. -- 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 prometheus-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/51733a08-ebf4-4da8-acb3-58bd49456f31n%40googlegroups.com.