Overriding flush function to publish metrics for every collector