add timeout to update-metrics script