fix: update influxdb_v2 error message (#10958)

This commit is contained in:
Joshua Powers 2022-04-11 14:45:48 -06:00 committed by GitHub
parent 777f8bf715
commit 66daef2f0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ func (i *InfluxDB) Write(metrics []telegraf.Metric) error {
i.Log.Errorf("When writing to [%s]: %v", client.URL(), err)
}
return err
return fmt.Errorf("failed to send metrics to any configured server(s)")
}
func (i *InfluxDB) getHTTPClient(address *url.URL, proxy *url.URL) (Client, error) {