script to get various metrics and save hourly