Overriding flush function to publish metrics for every collector

Overriding flush method to publish metrics for every collector.
This would avoid incomplete publishing of metrics for any collector to by httpHandler to my Http End Point.