Add connection timeout configuration for InfluxDB.
This commit is contained in:
@@ -34,6 +34,7 @@ type Config struct {
|
||||
Password string
|
||||
Database string
|
||||
UserAgent string
|
||||
Timeout time.Duration
|
||||
Tags map[string]string
|
||||
|
||||
agent *ast.Table
|
||||
@@ -243,6 +244,10 @@ url = "http://localhost:8086" # required.
|
||||
# The target database for metrics. This database must already exist
|
||||
database = "telegraf" # required.
|
||||
|
||||
# Timeout in seconds (for the connection with InfluxDB).
|
||||
# If not provided, will default to 0 (no timeout)
|
||||
# timeout = 5
|
||||
|
||||
# username = "telegraf"
|
||||
# password = "metricsmetricsmetricsmetrics"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user