Automate threshold creation for data sources