fix: update influxdb_v2 error message (#10958)
This commit is contained in:
parent
777f8bf715
commit
66daef2f0c
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue