Before setting up our thresholds, we'll need some data. For this chapter, we'll continue to leverage our ElasticSearch/Logstash pairing, similar to the data pipeline we set up in the previous chapter. However, we'll be storing a much smaller—primarily numerical—dataset, rather than the text-driven data we used previously.
Getting this data into ElasticSearch via Logstash can get a little technical in places, but it's not unmanageable. We don't need a lot of data series to work through the threshold and alerting features, so the Logstash pipeline will be relatively straightforward. So, let's get started, shall we?
Before running any commands, first cd into the Chapter09 directory of this book's repository at https://github.com/PacktPublishing/Learn-Grafana-7.0.
Capturing real-time data
Our dataset will be gathered directly from the computer hardware, namely the CPU and fans of a...