docs(inputs.postgresql): Provide socket connection details (#12584)

This commit is contained in:
Joshua Powers 2023-02-02 06:15:49 -07:00 committed by GitHub
parent 0ade9e1a88
commit 6e2d8137e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -18,10 +18,12 @@ See the [CONFIGURATION.md][CONFIGURATION.md] for more details.
```toml @sample.conf
# Read metrics from one or many postgresql servers
[[inputs.postgresql]]
## specify address via a url matching:
## Specify address via a url matching:
## postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]&statement_timeout=...
## or a simple string:
## host=localhost user=pqgotest password=... sslmode=... dbname=app_production
## Users can pass the path to the socket as the host value to use a socket
## connection (e.g. `/var/run/postgresql`).
##
## All connection parameters are optional.
##
@ -71,6 +73,9 @@ Or via an url matching:
postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=[disable|verify-ca|verify-full]
```
Users can pass the path to the socket as the host value to use a socket
connection (e.g. `/var/run/postgresql`).
It is also possible to specify a query timeout maximum execution time (in ms)
for any individual statement passed over the connection

View File

@ -1,9 +1,11 @@
# Read metrics from one or many postgresql servers
[[inputs.postgresql]]
## specify address via a url matching:
## Specify address via a url matching:
## postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]&statement_timeout=...
## or a simple string:
## host=localhost user=pqgotest password=... sslmode=... dbname=app_production
## Users can pass the path to the socket as the host value to use a socket
## connection (e.g. `/var/run/postgresql`).
##
## All connection parameters are optional.
##