TimeUnit durationUnit,
String kafkaTopic,
Properties kafkaProperties) {
super(registry, name, filter, rateUnit, durationUnit);
this.registry = registry;
mapper = new ObjectMapper().registerModule(new MetricsModule(rateUnit,
durationUnit,
false));
this.kafkaTopic = kafkaTopic;
kafkaProducer = new Producer<String, String>(new ProducerConfig(kafkaProperties));
}