The Join node, joins points on time so unless the bash script is generating 
points with the ex act same time they are not getting joined. To make the 
points join you can add a tolerance option to the join node to tell it to 
treat points that arrive within the same tolerance time as the same point. 
See https://docs.influxdata.com/kapacitor/v0.13/nodes/join_node/#tolerance

On Thursday, August 18, 2016 at 8:26:56 AM UTC-6, [email protected] 
wrote:
>
> Hello
>
> I'm having a little difficulty with alerting in Kapacitor based on two 
> measurements.
>
> What I'm trying to do is alert if the latest value field in one 
> measurement is greater than the value in another. 
>
> var first = stream | from().measurement('first.measurement')
> var second = stream | from().measurement('second.measurement')
>
> first | join(second).as('first', 'second')
>   | alert()
>   .warn(lambda: "first.value" > "second.value")
>   .log('/tmp/blah')
>
> I'm inserting values to trigger this in a bash for loop every second that 
> should trigger this condition, but I can't seem to get it to write anything 
> to /tmp/blah
>
> This is probably painfully obvious to someone a little more familiar with 
> tickscript than I am, but if not, can anyone suggest some more debug steps? 
> I've tried short-circuiting the script alerting on everything in first ( with 
> first | alert().log("/tmp/short-circuit') ), but that didn't seem to work 
> either.
>

-- 
Remember to include the InfluxDB version number with all issue reports
--- 
You received this message because you are subscribed to the Google Groups 
"InfluxDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/influxdb.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/influxdb/ad982c43-e40b-4e61-9507-b129daf2c1d1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to