diff --git a/plugins/inputs/postgresql/README.md b/plugins/inputs/postgresql/README.md index 0bbafa63a..63f9c0061 100644 --- a/plugins/inputs/postgresql/README.md +++ b/plugins/inputs/postgresql/README.md @@ -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 diff --git a/plugins/inputs/postgresql/sample.conf b/plugins/inputs/postgresql/sample.conf index f319924f3..4897dc938 100644 --- a/plugins/inputs/postgresql/sample.conf +++ b/plugins/inputs/postgresql/sample.conf @@ -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. ##