telegraf/plugins/inputs/pgbouncer
Daniel Nelson 049d364917
Fix panic if pool_mode column does not exist (#6000)
2019-06-20 11:51:41 -07:00
..
README.md Add postgresql dsn connection string example (#5869) 2019-05-17 13:27:11 -07:00
pgbouncer.go Fix panic if pool_mode column does not exist (#6000) 2019-06-20 11:51:41 -07:00
pgbouncer_test.go Add pgbouncer input plugin (#3918) 2018-08-01 16:44:10 -06:00

README.md

PgBouncer plugin

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

Configuration

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]

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.

Configuration example

[[inputs.pgbouncer]]
  address = "postgres://telegraf@localhost/pgbouncer"