pgBouncer Stats Collector for Telegraf
Project description
Poll pgBouncer for stats to submit to Telegraf using the Exec Input Plugin.
Usage
The application is meant to be used via the Exec Input Plugin
Example Telegraf Configuration
[[inputs.exec]]
## Commands array
commands = [
"telegraf-pgbouncer -h localhost -p 6432 -U monitor all"
]
timeout = "5s"
name_suffix = "_pgbouncer"
data_format = "json"
CLI Usage
$ telegraf-pgbouncer --help
usage: pgBouncer Stats Collector for Telegraf
positional arguments:
COMMAND The SHOW command to run for extracting stats. Choices:
all, lists, databases, mem, pools, stats
optional arguments:
-h HOST, --host HOST database server host or socket directory (default: localhost)
-p PORT, --port PORT database server port number (default: 5432)
-U USERNAME, --username USERNAME
The PostgreSQL username to operate as (default: pgbouncer)
-W, --password Force password prompt (should happen automatically)
(default: False)
-v, --version output version information, then exit
-?, --help show this help, then exit
Authentication
Specify the password in a .pgpass file for the application to connect properly without specifying a password.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Close
Hashes for telegraf_pgbouncer-0.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c85a06ef08fc3eef11b1a2a47b102e4b68caeec36bc8cc6eab1a37a33a6159b7 |
|
MD5 | 7b092670ddfd211e9d9edb1b78684af0 |
|
BLAKE2b-256 | 7a8725636adc3fc5f77e4497aa7f2e59fef0729ee38782edd070a2db3df989c4 |