跳转到主要内容

Telegraf的pgBouncer状态收集器

项目描述

轮询pgBouncer以提交给Telegraf,使用Exec输入插件

Version License

用法

该应用程序旨在通过Exec输入插件使用

示例Telegraf配置

[[inputs.exec]]
  ## Commands array
  commands = [
    "telegraf-pgbouncer -h localhost -p 6432 -U monitor all"
  ]
  timeout = "5s"
  name_suffix = "_pgbouncer"
  data_format = "json"

CLI用法

$ 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

身份验证

.pgpass文件中指定密码,以便应用程序在没有指定密码的情况下正确连接。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分发

此版本未提供源分发文件。请参阅生成分发存档的教程。

构建分发

telegraf_pgbouncer-0.3.0-py2.py3-none-any.whl (7.0 kB 查看哈希值)

上传时间: Python 2 Python 3

由以下提供支持