From dc75f7bd3252f79ddab9f605abca60c0e193ec23 Mon Sep 17 00:00:00 2001 From: urusha Date: Fri, 17 May 2019 23:27:11 +0300 Subject: [PATCH] Add postgresql dsn connection string example (#5869) --- plugins/inputs/pgbouncer/README.md | 6 +++++- plugins/inputs/postgresql/README.md | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/pgbouncer/README.md b/plugins/inputs/pgbouncer/README.md index 2a841c45a..dd8224e3e 100644 --- a/plugins/inputs/pgbouncer/README.md +++ b/plugins/inputs/pgbouncer/README.md @@ -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) ## 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]` diff --git a/plugins/inputs/postgresql/README.md b/plugins/inputs/postgresql/README.md index a873ddac0..21f9097aa 100644 --- a/plugins/inputs/postgresql/README.md +++ b/plugins/inputs/postgresql/README.md @@ -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) ## 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]`