Add postgresql dsn connection string example (#5869)

This commit is contained in:
urusha 2019-05-17 23:27:11 +03:00 committed by Daniel Nelson
parent 27dec2c2c1
commit dc75f7bd32
2 changed files with 10 additions and 2 deletions

View File

@ -5,7 +5,11 @@ This PgBouncer plugin provides metrics for your PgBouncer load balancer.
More information about the meaning of these metrics can be found in the [PgBouncer Documentation](https://pgbouncer.github.io/usage.html) More information about the meaning of these metrics can be found in the [PgBouncer Documentation](https://pgbouncer.github.io/usage.html)
## Configuration ## Configuration
Specify address via a url matching: Specify address via a postgresql connection string:
`host=/run/postgresql port=6432 user=telegraf database=pgbouncer`
Or via an url matching:
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]` `postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`

View File

@ -31,7 +31,11 @@ _* value ignored and therefore not recorded._
More information about the meaning of these metrics can be found in the [PostgreSQL Documentation](http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-DATABASE-VIEW) More information about the meaning of these metrics can be found in the [PostgreSQL Documentation](http://www.postgresql.org/docs/9.2/static/monitoring-stats.html#PG-STAT-DATABASE-VIEW)
## Configuration ## Configuration
Specify address via a url matching: Specify address via a postgresql connection string:
`host=/run/postgresql user=telegraf database=telegraf`
Or via an url matching:
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]` `postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`