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


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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

File details

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

File metadata

File hashes

Hashes for telegraf_pgbouncer-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b77aa8eda659630263e82639843819358d67b2423da0abef21f9971eaefa2f24
MD5 65a34e386d61a06323d2d3d2c85d2271
BLAKE2b-256 c90f4b6c1bf5fb3a3ce52efe8bad25289880bf63f9eb2f316f6ef5cc70dcc631

See more details on using hashes here.

Supported by

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