Telegraf sends Username and password in clear text when sending data to influx

I have only the HTTP/UDP API for influx, which needs username and password in clear text. So any data which is sent from telegraf to influx will be sent over HTTP/UDP and will contain the username and password in clear text.

This seems to be a security concern to me. Is there is anything which i am missing?