diff --git a/plugins/outputs/influxdb/influxdb.go b/plugins/outputs/influxdb/influxdb.go index 5a5899a602d57..6c19a35fc8312 100644 --- a/plugins/outputs/influxdb/influxdb.go +++ b/plugins/outputs/influxdb/influxdb.go @@ -112,6 +112,8 @@ func (i *InfluxDB) Connect() error { Timeout: i.Timeout.Duration, TLSConfig: tlsConfig, UserAgent: i.UserAgent, + Username: i.Username, + Password: i.Password, } wp := client.WriteParams{ Database: i.Database,