Hi All,
I am trying to write simple & single query to alert when a process is down and alert again when the same process is up. However, it seems there is no straightforward way.
used below query to get alert when process is down and it is working perfectly.
| mstats latest(_value) as RSS_Memory WHERE index=telegraf metric_name=procstat.memory_rss host=<hostname> process_name=<processname> by process_name pid
However, I am seeking help in writing single query alert when a process is down and alert again when the same process is up. Please help, struggling from many days on this.
--
Thanks
Sarves