I have configured a deadman to raise an alert if no data received in a measurement but it raises continuous false alerts.
The kapacitor and the influx are installed in different system.
//–Alerts for Inv1
var data_inv1 = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(input_inv01_measurement)
// Enable alert if no data
data_inv1
|log()
|deadman(1.0,deadman_value0p0_time)
.id(plantName + ‘: Inverter1 in task {{ .TaskName }}’)
.message(’{{ .ID }} is {{ if eq .Level “OK” }}alive{{ else }}dead{{ end }}’)
.messageField(’{{ .ID }} is {{ if eq .Level “OK” }}alive{{ else }}dead{{ end }}’)
.log(’/tmp/deadman.log’)