1. A method for configuring a system to collect and aggregate datasets, the method, comprising: identifying a data source in the system from where dataset is to be collected; configuring a machine in the system that generates the dataset to be collected, to send the dataset to the data source; identifying an arrival location where the dataset that is collected is to be aggregated or written; configuring an agent node by specifying a source for the agent node as the data source in the system and specifying a sink for the agent node as the arrival location.