HI,Is there any way to configure an alert firing when some metric has NaN as value?
Hi Brian,Works fine your trick, thanks!.Im using a custom exporter.It extracts data from a file created by a testing system, that is running like a cron, every 10 min.The testing system could produce some specific N/A metrics, or not be able to generate the file for some time.So, Im exporting to NaN in both cases.N/A --> NaNno file < 15 min --> NaNI also have another metric with the timestamp of the last OK metrics. its useful, but it doesnt cover the first case of N/A metrics
El jueves, 25 de mayo de 2017, 11:44:17 (UTC+2), Brian Brazil escribió:On 25 May 2017 at 10:37, <eem...@gmail.com> wrote:HI,Is there any way to configure an alert firing when some metric has NaN as value?The expression x != x should do the trick, as NaN doesn't equal itself.This seems like an unusual alert though, how are these NaNs occurring?--Brian Brazil
--
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+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fe29df42-0eb7-4e37-994a-75e8eaa0ed23%40googlegroups.com.