Fluentd plugin to calculate statistics and then thresholding