the stream/batch was a type, it is stream.
do you suggest that multiple values can only be handled with multiple stream that are then joined in the end?
it works but i have to create a stream for every filed i want to join in the end.
if like, i have, you have 3 fields you would need 3 streams and join them in order to get the data in db.
Yep that’s how i understand it. AFAIK you stream them, do any aggregations on them that you want to do and store the value of that. Then you join them together to build the alert. i think it joins them back together based on the UNIX time stamp in the database.
Also, I’m not sure if you’re using telegraf but your script is looking for data every second but i think the default for telegraf itself is 10s so you might end up with points where there is no data. That might actually cause it to not work if there is no data. Or you might get false alarms.
There might be an easier or better way to do this but i haven’t found it yet. I don’t do much streaming based on multiple measurements. A majority of scripts i write i’m told which measurement i need to alert on and use that.
If you can define and enable your script in Kapacitor then a good tool to use is ‘kapacitor show task_name’ once it is running - That should give you an idea as to where abouts your script gets to before it stops working. I’ve found it quite useful over the last few days.