refactoring method getting args and metrics.
add generator for storm-kafka