MQTT + Telegraf + InfluxDB integration

Please, I need your advice. I have a local server MQTT + telegraf+influxDB. MQTT broker collects temp/humidity from esp8266+dht sensor, but I can’t force telegraf to get this data and upload it to influxdb. I think my issue is the wrong telegraf config file. Can anyone help create the correct config file?