Closed nivancevic closed 7 years ago
Currently Kafka reporter publish measurements like this:
properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName()); properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName()); producer = new KafkaProducer<>(properties); partitionKey = Utils.getHostname(); producer.send(new ProducerRecord<>(measurement.name(), partitionKey, measurement.toJson()));
The problem is that kafka reporter can send measurements to an arbitrary topic. In case Sentinel has a single topic for accepting measurements, what partitioning should be optimal?
Covered by #220
Currently Kafka reporter publish measurements like this:
The problem is that kafka reporter can send measurements to an arbitrary topic. In case Sentinel has a single topic for accepting measurements, what partitioning should be optimal?