Telegraf的pgBouncer状态收集器
项目描述
轮询pgBouncer以提交给Telegraf,使用Exec输入插件。
用法
该应用程序旨在通过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的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c85a06ef08fc3eef11b1a2a47b102e4b68caeec36bc8cc6eab1a37a33a6159b7 |
|
MD5 | 7b092670ddfd211e9d9edb1b78684af0 |
|
BLAKE2b-256 | 7a8725636adc3fc5f77e4497aa7f2e59fef0729ee38782edd070a2db3df989c4 |