Alert on New Data

I have a N ec2 instances. I have a single job that may or may not run on the instances. When the job runs, it sends metrics to InfluxDB.

I am trying to sort out a way to have Kapacitor send a slack alert the first time any job metrics are sent from a unique host. However, after that host has been initialized in InfluxDB as active, it should not send subsequent alerts.

Can you point me towards a way of solving that?

you could try .stateChangesOnly() in your alert node. That should only send an alert if the state changes. So if it register as acive, unless becomes inactive then it should not alert you.

Will consider the very first one, when it initially runs and defaults to OK, to be a state change?