Decode Base16 payload and add values to datapoint


I would like to use Telegraf to write Base16 encoded payloads to InfluxDB. Telegraf would gather the data through a MQTT feed. When a datapoint is received, I would like to decode it and store the decoded values as part of the datapoint.
I have found two different approaches suggested in the community forum:

  1. Using the processors.execd plugin
  2. Using Kapacitor

Any recommendations which route to choose?

Many thanks,