Help with Deadman Alert Timing

kapacitor
influxdb

#1

Hi,

Need urgent help on deadman alter timings.

Below script is working fine, but am getting alert after 5 mins, where as i should trigger 4th Min.

Deadman takes minimum 5 min before it execute custom alert script. And it stop working if i reduce deadman timing to 2 mins.

var STRDOWN = 'FAILED'

var data = stream
	|from()
		.measurement('smoketest')
		.groupby('region', 'server', 'type')
	|window()
		.period(1m)
		.every(15s)
		.align()
	|httpOut('smoketest_out')
	|where(lambda: isPresent("status_str"))
	|last('status_str')
		.as('status_str')
	|log()
	

var apac = data
	|where(lambda: "region" == 'APAC')
	|eval(lambda: "region")
		.as('region')
		.keep()
	
	|httpOut('smoketest_APAC_OUT')
	
var deadman_out = data
	|log()
	|deadman(0.0, 3m)
		.critReset(lambda: "emitted" > 1)
		.log('/tmp/smoketest.log')
		.exec('CUSTOM ALERT SCRIPT')	 **## working fine, but alert coming after 5mins, expected 3 mins**
		.stateChangesOnly()
		.NoRecoveries()
	|log()

#2

Hi Pawan,

Were you able to figure out a workaround for this.?
I am in a similar situation adn would greatly appreciate any help.

Thanks