-
Notifications
You must be signed in to change notification settings - Fork 490
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with join & multiple alerts #752
Comments
Another issue that may be related is that
The |
@phemmer Yes, I can confirm that using For now I have written a test case that defines the expected behavior for the I am still looking into the original issue about duplicate points. |
I think I understand what you mean by the "knowing what fields to fill". |
@phemmer That would make sense yes. But currently it doesn't work that way. Currently the default node only sets nodes that do not exist at all, indpendent of their value. But having the default node set default on I'll create a separate issue to track that change. |
Assuming #755 is the issue you created to track the change, this issue isn't quite what I meant. For example, if there is no data point from the
...but with the fields being prefixed with |
Hi @phemmer @nathanielc Below are my references for tickscript and alert log file generated. The log file generated based on alert is shown below. For better debugging I have just applied Bold Characters and add new line. I expect to get only one line in log file based on the alert but I get 4 lines instead. Kapacitor version: Tickscript: stream
Log File: {"id":"sensor_data:nil","message":"OFF","details":"","time":"2019-09-16T11:38:55.709039Z","duration":12606938663000,"level":"CRITICAL","data":{"series":[{"name":"sensor_data","tags":{"apartmentId":"6","deviceType":"Temperature","floorId":"2","senesorGroupId":"100","smuMacId":"a2:b3:33:45"},"columns":["time","battery","rssi","sensorData","sensorMacid"],"values":[["2019-09-16T11:38:55.709039Z",72,-47,52.9,"22:45:45:11"]]}]},"previousLevel":"CRITICAL","recoverable":true} {"id":"sensor_data:nil","message":"OFF","details":"","time":"2019-09-16T11:38:55.709039Z","duration":12606938663000,"level":"CRITICAL","data":{"series":[{"name":"sensor_data","tags":{"apartmentId":"6","deviceType":"Temperature","floorId":"2","senesorGroupId":"100","smuMacId":"a2:b3:33:45"},"columns":["time","battery","rssi","sensorData","sensorMacid"],"values":[["2019-09-16T11:38:55.709039Z",72,-47,52.9,"22:45:45:11"]]}]},"previousLevel":"CRITICAL","recoverable":true} {"id":"sensor_data:nil","message":"OFF","details":"","time":"2019-09-16T11:38:55.709039Z","duration":12606938663000,"level":"CRITICAL","data":{"series":[{"name":"sensor_data","tags":{"apartmentId":"6","deviceType":"Temperature","floorId":"2","senesorGroupId":"100","smuMacId":"a2:b3:33:45"},"columns":["time","battery","rssi","sensorData","sensorMacid"],"values":[["2019-09-16T11:38:55.709039Z",72,-47,52.9,"22:45:45:11"]]}]},"previousLevel":"CRITICAL","recoverable":true} {"id":"sensor_data:nil","message":"OFF","details":"","time":"2019-09-16T11:38:55.709039Z","duration":12606938663000,"level":"CRITICAL","data":{"series":[{"name":"sensor_data","tags":{"apartmentId":"6","deviceType":"Temperature","floorId":"2","senesorGroupId":"100","smuMacId":"a2:b3:33:45"},"columns":["time","battery","rssi","sensorData","sensorMacid"],"values":[["2019-09-16T11:38:55.709039Z",72,-47,52.9,"22:45:45:11"]]}]},"previousLevel":"CRITICAL","recoverable":true} |
Creating from a discussion on the mailing list: https://groups.google.com/forum/#!topic/influxdb/0LdRf5QIm_I
I'm trying to add the ability to put hosts into a "maintenance mode" which will prevent kapacitor from sending out alerts. In order to do this, I've created a "maintlock" measurement, which tracks a counter on the host. When the "count" field in this measurement is 0, kapacitor is free to send an alert.
I have this mostly working, except only when a tick script stream has a single alert() method. As soon as it has a second alert() method, the "count" field appears to get zeroed out.
For example, this is my kapacitor tick script:
This is a few lines of the output from the log() method:
Notice how each entry is logged twice. One of the times
maintlock.count:1
, and the other timemaintlock.count:0
. If I remove one of thealert()
methods, it behaves fine, properly tracking the value ofmaintlock.count
. It's only when I add the secondalert()
that themaintlock.count:0
starts showing up.The above is experienced with kapacitor 1.0beta2. After upgrading to 1.0beta3 the
log()
output started showing 4 lines per data point:The text was updated successfully, but these errors were encountered: