Encryption of db password

Does telegraf support encryption of DB password in its config file for some of its DB plugins (i-e: MSSQL, MongoDB, MySQL…)?

We don’t have support for this, but there has been a bit of discussion about what this feature could look like in this issue. For now, best practice would be to, when possible, create users specifically for monitoring with limited permissions and ensure your configuration is readable only by the telegraf user.