Fix setting the username and the password to the influxdb output. (#2401)
This commit is contained in:
parent
22243a8354
commit
45a168e425
|
@ -112,6 +112,8 @@ func (i *InfluxDB) Connect() error {
|
||||||
Timeout: i.Timeout.Duration,
|
Timeout: i.Timeout.Duration,
|
||||||
TLSConfig: tlsConfig,
|
TLSConfig: tlsConfig,
|
||||||
UserAgent: i.UserAgent,
|
UserAgent: i.UserAgent,
|
||||||
|
Username: i.Username,
|
||||||
|
Password: i.Password,
|
||||||
}
|
}
|
||||||
wp := client.WriteParams{
|
wp := client.WriteParams{
|
||||||
Database: i.Database,
|
Database: i.Database,
|
||||||
|
|
Loading…
Reference in New Issue