Hi,
I started to play with Kapacitor and I’m trying to set an alert with Deadman node type.
The alert is triggering OK and everything looks fine but it is setting the .Level as CRITICAL.
- There is some way to configure the level for Deadman?
TickScript
//TICKSCRIPT:
//================
var period = 1m
var message_deadman = '{{ .ID }} is {{ .Level }} no data reporting {{.Tags }} {{.TaskName}} {{.TaskName}} {{.Group}} {{.Time}}'
var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
|window()
.period(period)
.every(every)
|mean('field1')
.as('value')
//Deadman alert
var trigger = data
|deadman(threshold, period)
.message(message_deadman)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.log('/tmp/test_deadman.log')
Alert output on log /tmp/test_deadman.log
"id":"Instance::instance=XXXXXXX",
"message":"Instance::instance=XXXXXX is CRITICAL no data reporting map[instance:XXXXXXX] ...
Thanks,
Regards