docs: add timeout section (#11550)

This commit is contained in:
Mya 2022-07-26 10:07:34 -06:00 committed by GitHub
parent 911072c17b
commit 9a7c308ade
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

View File

@ -100,6 +100,15 @@ config file to use windows authentication.
servers = ["Server=192.168.1.10;Port=1433;app name=telegraf;log=1;",]
```
To set up a configurable timeout, add timeout to the connections string
in your config file.
```toml
servers = [
"Server=192.168.1.10;Port=1433;User Id=<user>;Password=<pw>;app name=telegraf;log=1;dial timeout=30",
]
```
## Configuration
```toml @sample.conf