update to alert example to use avg aggregator