Skip to main content

pgBouncer Stats Collector for Telegraf

Project description

Poll pgBouncer for stats to submit to Telegraf using the Exec Input Plugin.

Version License

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"
  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


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

telegraf_pgbouncer-0.1.0-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file telegraf_pgbouncer-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for telegraf_pgbouncer-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d7ee0091871a283675e4776bfc82eb9bdcea494a203f01ee67acf6641f33c4dd
MD5 958b3579ac65c0ec50877c8d5fec82df
BLAKE2b-256 69db9b93838a62b5976236f3a4780d6a80dfd1d375b2eb1e184dfd41426ce11c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page