props.put("client.id", "graylog2-radio-" + serverStatus.getNodeId().toString());
props.put("producer.type", configuration.getKafkaProducerType());
props.put("queue.buffering.max.ms", String.valueOf(configuration.getKafkaBatchMaxWaitMs()));
props.put("batch.num.messages", String.valueOf(configuration.getKafkaBatchSize()));
ProducerConfig config = new ProducerConfig(props);
producer = new Producer<>(config);
incomingMessages = metricRegistry.meter(name(KafkaProducer.class, "incomingMessages"));
rejectedMessages = metricRegistry.meter(name(KafkaProducer.class, "rejectedMessages"));
processTime = metricRegistry.timer(name(KafkaProducer.class, "processTime"));