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/3e6e6cb0-1ea4-4e3b-a821-baa9dcd15d69%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.