Document port specification in postgres input plugins (#7132)
This commit is contained in:
parent
dfa4d1bf8e
commit
1ce56f8b59
|
@ -5592,10 +5592,10 @@
|
||||||
# # Read metrics from one or many pgbouncer servers
|
# # Read metrics from one or many pgbouncer servers
|
||||||
# [[inputs.pgbouncer]]
|
# [[inputs.pgbouncer]]
|
||||||
# ## specify address via a url matching:
|
# ## specify address via a url matching:
|
||||||
# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
# ## postgres://[pqgotest[:password]]@host:port[/dbname]\
|
||||||
# ## ?sslmode=[disable|verify-ca|verify-full]
|
# ## ?sslmode=[disable|verify-ca|verify-full]
|
||||||
# ## or a simple string:
|
# ## or a simple string:
|
||||||
# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
# ## host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||||
# ##
|
# ##
|
||||||
# ## All connection parameters are optional.
|
# ## All connection parameters are optional.
|
||||||
# ##
|
# ##
|
||||||
|
@ -5605,10 +5605,10 @@
|
||||||
# # Read metrics from one or many postgresql servers
|
# # Read metrics from one or many postgresql servers
|
||||||
# [[inputs.postgresql]]
|
# [[inputs.postgresql]]
|
||||||
# ## specify address via a url matching:
|
# ## specify address via a url matching:
|
||||||
# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
# ## postgres://[pqgotest[:password]]@host:port[/dbname]\
|
||||||
# ## ?sslmode=[disable|verify-ca|verify-full]
|
# ## ?sslmode=[disable|verify-ca|verify-full]
|
||||||
# ## or a simple string:
|
# ## or a simple string:
|
||||||
# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
# ## host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||||
# ##
|
# ##
|
||||||
# ## All connection parameters are optional.
|
# ## All connection parameters are optional.
|
||||||
# ##
|
# ##
|
||||||
|
@ -5617,7 +5617,7 @@
|
||||||
# ## connection with the server and doesn't restrict the databases we are trying
|
# ## connection with the server and doesn't restrict the databases we are trying
|
||||||
# ## to grab metrics for.
|
# ## to grab metrics for.
|
||||||
# ##
|
# ##
|
||||||
# address = "host=localhost user=postgres sslmode=disable"
|
# address = "host=localhost port=5432 user=postgres sslmode=disable"
|
||||||
# ## A custom name for the database that will be used as the "server" tag in the
|
# ## A custom name for the database that will be used as the "server" tag in the
|
||||||
# ## measurement output. If not specified, a default one generated from
|
# ## measurement output. If not specified, a default one generated from
|
||||||
# ## the connection address is used.
|
# ## the connection address is used.
|
||||||
|
@ -5640,10 +5640,10 @@
|
||||||
# # Read metrics from one or many postgresql servers
|
# # Read metrics from one or many postgresql servers
|
||||||
# [[inputs.postgresql_extensible]]
|
# [[inputs.postgresql_extensible]]
|
||||||
# ## specify address via a url matching:
|
# ## specify address via a url matching:
|
||||||
# ## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
# ## postgres://[pqgotest[:password]]@host:port[/dbname]\
|
||||||
# ## ?sslmode=[disable|verify-ca|verify-full]
|
# ## ?sslmode=[disable|verify-ca|verify-full]
|
||||||
# ## or a simple string:
|
# ## or a simple string:
|
||||||
# ## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
# ## host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||||
# #
|
# #
|
||||||
# ## All connection parameters are optional. #
|
# ## All connection parameters are optional. #
|
||||||
# ## Without the dbname parameter, the driver will default to a database
|
# ## Without the dbname parameter, the driver will default to a database
|
||||||
|
@ -5651,7 +5651,7 @@
|
||||||
# ## connection with the server and doesn't restrict the databases we are trying
|
# ## connection with the server and doesn't restrict the databases we are trying
|
||||||
# ## to grab metrics for.
|
# ## to grab metrics for.
|
||||||
# #
|
# #
|
||||||
# address = "host=localhost user=postgres sslmode=disable"
|
# address = "host=localhost port=5432 user=postgres sslmode=disable"
|
||||||
#
|
#
|
||||||
# ## connection configuration.
|
# ## connection configuration.
|
||||||
# ## maxlifetime - specify the maximum lifetime of a connection.
|
# ## maxlifetime - specify the maximum lifetime of a connection.
|
||||||
|
|
|
@ -12,10 +12,10 @@ More information about the meaning of these metrics can be found in the
|
||||||
```toml
|
```toml
|
||||||
[[inputs.pgbouncer]]
|
[[inputs.pgbouncer]]
|
||||||
## specify address via a url matching:
|
## specify address via a url matching:
|
||||||
## postgres://[pqgotest[:password]]@localhost[/dbname]\
|
## postgres://[pqgotest[:password]]@host:port[/dbname]\
|
||||||
## ?sslmode=[disable|verify-ca|verify-full]
|
## ?sslmode=[disable|verify-ca|verify-full]
|
||||||
## or a simple string:
|
## or a simple string:
|
||||||
## host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
## host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||||
##
|
##
|
||||||
## All connection parameters are optional.
|
## All connection parameters are optional.
|
||||||
##
|
##
|
||||||
|
@ -30,7 +30,7 @@ Specify address via a postgresql connection string:
|
||||||
|
|
||||||
Or via an url matching:
|
Or via an url matching:
|
||||||
|
|
||||||
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`
|
`postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=[disable|verify-ca|verify-full]`
|
||||||
|
|
||||||
All connection parameters are optional.
|
All connection parameters are optional.
|
||||||
|
|
||||||
|
|
|
@ -33,11 +33,11 @@ More information about the meaning of these metrics can be found in the [Postgre
|
||||||
## Configuration
|
## Configuration
|
||||||
Specify address via a postgresql connection string:
|
Specify address via a postgresql connection string:
|
||||||
|
|
||||||
`host=/run/postgresql user=telegraf database=telegraf`
|
`host=localhost port=5432 user=telegraf database=telegraf`
|
||||||
|
|
||||||
Or via an url matching:
|
Or via an url matching:
|
||||||
|
|
||||||
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`
|
`postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=[disable|verify-ca|verify-full]`
|
||||||
|
|
||||||
All connection parameters are optional. Without the dbname parameter, the driver will default to a database with the same name as the user. This dbname is just for instantiating a connection with the server and doesn't restrict the databases we are trying to grab metrics for.
|
All connection parameters are optional. Without the dbname parameter, the driver will default to a database with the same name as the user. This dbname is just for instantiating a connection with the server and doesn't restrict the databases we are trying to grab metrics for.
|
||||||
|
|
||||||
|
|
|
@ -14,9 +14,9 @@ The example below has two queries are specified, with the following parameters:
|
||||||
```
|
```
|
||||||
[[inputs.postgresql_extensible]]
|
[[inputs.postgresql_extensible]]
|
||||||
# specify address via a url matching:
|
# specify address via a url matching:
|
||||||
# postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=...
|
# postgres://[pqgotest[:password]]@host:port[/dbname]?sslmode=...
|
||||||
# or a simple string:
|
# or a simple string:
|
||||||
# host=localhost user=pqotest password=... sslmode=... dbname=app_production
|
# host=localhost port=5432 user=pqotest password=... sslmode=... dbname=app_production
|
||||||
#
|
#
|
||||||
# All connection parameters are optional.
|
# All connection parameters are optional.
|
||||||
# Without the dbname parameter, the driver will default to a database
|
# Without the dbname parameter, the driver will default to a database
|
||||||
|
|
Loading…
Reference in New Issue