MQTT topic subscription

Is it possible to add/modify MQTT topic subscriptions on running telegraf instance? I found that topic is defined in telegraf’s config file, but is there any api that would let me to change it while telegraf is running?

Unfortunately no, telegraf doesn’t allow for runtime changes. You would need to restart the telegraf binary when you’ve updated your telegraf.conf