a dashboard showing the ping status of a number of systems (perhaps a table of system names and their status)
alerts indicating when systems have stopped responding to the last X ping attempts.
I currently have Heartbeat pinging a number of systems and am getting an index with @timestamp, but it's not clear to me how to set up the alerts or dashboard from there. Any help would be appreciated.
Then for Altering I use Watcher which is part of X-Pack. This will create a watch that queries the data every 60s and looks for hosts that were down and sends me a Slack notification.
I built mine before TSVB existed so I used a Line Chart. But conceptually they will be the same. It's a metric agg on the max icmp.rtt.us value. And each line represents a single monitor.ip so group by that value.
The up/down metrics are unique counts of the monitor.id with a query of either monitor.status:up or monitor.status:down.
I haven't managed to reproduce the line chart. On the Metrics Y-axis I have max icmp.rtt.us. In the Buckets section I have X-Axis date histogram by @timestamp, 30m interval, and Split Series terms by monitor.host. I see some dots/circles but no lines.
For the up/down metrics I managed to get something approximately like what you have by using a metric of unique count of monitor.id with buckets split group by terms on monitor status. But otherwise I didn't see how/where to specify a query of either monitor.status:up or monitor.status:down ...
monitor.status: up would go into the text box that says "Search...". This will filter things such that the aggregation only includes those that are up.
Thanks Andrew, your screenshot helped me reproduce the line chart.
For the up/down metric, I didn't see any text box that says "Search..." (there's "JSON Input", "Exclude", "Include") but I found under Buckets > Split Group > Aggregation > Filters that I can filter for "monitor.status:down".
But it looks like for the up/down metric to be useful I would also need it to only count ping records that are from the last X minutes only, and it's not clear how to do that at the same time as having that filter.
Ah, thanks Andrew! I didn't realize that that bar was part of the visualization definition ... I was only looking under Data and Options under the index pattern.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.