A method for performing data collection in a computer network at at least one network node of the computer network belonging to a set of one or more network nodes corresponding to a first depth level of a routing tree that represents nodes of the computer network and edges respectively corresponding to neighboring relations between two nodes of the computer network and according to which data are transmitted from the nodes to a root node of the computer network, the first depth level corresponding to a number of edges in the routing tree between nodes of the set and the root node, wherein the performing the data collection comprises: - receiving first data collection configuration data from a parent node of the at least one network node in the routing tree of the computer network, wherein the parent node corresponds to a depth level of the routing tree which precedes the first depth level in a sequence of depth levels of the routing tree, and wherein the first data collection configuration data comprises an estimate of resource needed for collecting data at nodes corresponding to the first depth level of the routing tree; - generating second data collection configuration data for collecting data from at least one child node, in the routing tree, of the at least one network node of the computer network, based on the first data collection configuration data, wherein the second data collection configuration data comprises scheduling data for collecting data from each of the at least one child node, and wherein the at least one child node corresponds to a second depth level of the routing tree which immediately follows the first depth level in the sequence of depth levels of the routing tree; and - collecting data from each of the at least one child node according to the second data collection configuration data, wherein the first data collection configuration data is received from the root node, and comprises respective estimates of resource needed for collecting data from nodes corresponding to each depth level of the routing tree. - receiving first data collection configuration data from a parent node of the at least one network node in the routing tree of the computer network, wherein the parent node corresponds to a depth level of the routing tree which precedes the first depth level in a sequence of depth levels of the routing tree, and wherein the first data collection configuration data comprises an estimate of resource needed for collecting data at nodes corresponding to the first depth level of the routing tree; - generating second data collection configuration data for collecting data from at least one child node, in the routing tree, of the at least one network node of the computer network, based on the first data collection configuration data, wherein the second data collection configuration data comprises scheduling data for collecting data from each of the at least one child node, and wherein the at least one child node corresponds to a second depth level of the routing tree which immediately follows the first depth level in the sequence of depth levels of the routing tree; and - collecting data from each of the at least one child node according to the second data collection configuration data,