gnmic icon indicating copy to clipboard operation
gnmic copied to clipboard

kafka key - ${source}_${subscription-name}

Open lzwaan opened this issue 5 months ago • 2 comments

Is possible to create a custome kafka key, as source + subscription-name is not enough to divide it more on partitions if i could combine things from the different tags then that would be helpful, see example below

Image

lzwaan avatar Jul 25 '25 11:07 lzwaan

Current key looks like this myhostname_telemetry-interface where the lastpart is always the same

lzwaan avatar Jul 25 '25 11:07 lzwaan

Currently, the Kafka output inserts a partition key if insert-key is set to true but its value is not customizable. Using tags as part of the key can be added if the format is event that's why it wasn't made possible so far. I could add a feature where the key is only customizable if the format is event. Would that work for you? Or is this something you could work on ?

karimra avatar Aug 18 '25 15:08 karimra