You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var db = 'kong'
var rp = 'autogen'
var measurement = 'kong_requests'
var groupBy = []
var whereFilter = lambda: TRUE
var name = 'test-kong'
var idVar = name
var message = ' {{.ID}}'
var idTag = 'alertID'
var levelTag = 'level'
var messageField = 'message'
var durationField = 'duration'
var outputDB = 'chronograf'
var outputRP = 'autogen'
var outputMeasurement = 'alerts'
var triggerType = 'threshold'
var crit = 0
var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
|eval(lambda: "request_time")
.as('value')
var trigger = data
|alert()
.crit(lambda: "value" > crit)
.stateChangesOnly()
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.log('/tmp/alerts.log')
.mode(0644)
trigger
|eval(lambda: float("value"))
.as('value')
.keep()
trigger
|httpOut('output')
Oops, I missed this notification, sorry. I know its a bit late in the game now :( If you had posted the example data that you used when you hit this issue, I might still be able to debug it.
This is my TICKScript:
After running a test, the only output I got is:
Nothing else.
I would expect some information if the alert was triggered or not?
The text was updated successfully, but these errors were encountered: