From 773e29ddf709fa46116be2ec83a8a53e2167730f Mon Sep 17 00:00:00 2001 From: Thomas Menard Date: Mon, 7 Mar 2016 17:27:29 +0100 Subject: [PATCH] Update README.md --- plugins/inputs/postgresql_extensible/README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/inputs/postgresql_extensible/README.md b/plugins/inputs/postgresql_extensible/README.md index 992aa47b3..f44c66596 100644 --- a/plugins/inputs/postgresql_extensible/README.md +++ b/plugins/inputs/postgresql_extensible/README.md @@ -32,6 +32,10 @@ For now only two queries are specified and it's up to you to add more; some per # succeed. # Be careful that the sqlquery must contain the where clause with a part of the filtering, the plugin will # add a 'IN (dbname list)' clause if the withdbname is set to true + # Example : + # The sqlquery : "SELECT * FROM pg_stat_database where datname" become "SELECT * FROM pg_stat_database where datname IN ('postgres', 'pgbench')" + # because the databases variable was set to ['postgres', 'pgbench' ] and the withdbname was true. + # Be careful that if the withdbname is set to false you d'ont have to define the where clause (aka with the dbname) # the tagvalue field is used to define custom tags (separated by comas) # # Structure :