Skip to content

Commit dc75f7b

Browse files
urushadanielnelson
authored andcommitted
Add postgresql dsn connection string example (influxdata#5869)
1 parent 27dec2c commit dc75f7b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

plugins/inputs/pgbouncer/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ This PgBouncer plugin provides metrics for your PgBouncer load balancer.
55
More information about the meaning of these metrics can be found in the [PgBouncer Documentation](https://pgbouncer.github.io/usage.html)
66

77
## Configuration
8-
Specify address via a url matching:
8+
Specify address via a postgresql connection string:
9+
10+
`host=/run/postgresql port=6432 user=telegraf database=pgbouncer`
11+
12+
Or via an url matching:
913

1014
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`
1115

plugins/inputs/postgresql/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ _* value ignored and therefore not recorded._
3131
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)
3232

3333
## Configuration
34-
Specify address via a url matching:
34+
Specify address via a postgresql connection string:
35+
36+
`host=/run/postgresql user=telegraf database=telegraf`
37+
38+
Or via an url matching:
3539

3640
`postgres://[pqgotest[:password]]@localhost[/dbname]?sslmode=[disable|verify-ca|verify-full]`
3741

0 commit comments

Comments
 (0)