Configure the monitoring agent