Can we setup Logstash pipeline monitoring, that would for example trigger an alert when the number of events per second drops bellow certain threshold? in Kibana Pipeline Viewer there is nice visual overview on current pipeline performance, with number of event processed per second, however I was not able to find in documentation what is the source of truth for the number, where from are they derived and how the calculation is made. I observers stats from monitor APIs, even on pipeline level Monitoring Logstash with APIs, but could not correlate it with the ones in Pipeline Viewer.
Or is there a better way to do it? The goal would be to notice fast worsened performance on a pipeline and trigger an alert so it could be reacted upon.