本站面向开发者与科研用户,提供开源镜像的搜索和下载加速服务。
所有镜像均来源于原始开源仓库,本站不存储、不修改、不传播任何镜像内容。

pgbouncer-exporter Docker 镜像下载 - 轩辕镜像

pgbouncer-exporter 镜像详细信息和使用指南

pgbouncer-exporter 镜像标签列表和版本信息

pgbouncer-exporter 镜像拉取命令和加速下载

pgbouncer-exporter 镜像使用说明和配置指南

Docker 镜像加速服务 - 轩辕镜像平台

国内开发者首选的 Docker 镜像加速平台

极速拉取 Docker 镜像服务

相关 Docker 镜像推荐

热门 Docker 镜像下载

pgbouncer-exporter
prometheuscommunity/pgbouncer-exporter

pgbouncer-exporter 镜像详细信息

pgbouncer-exporter 镜像标签列表

pgbouncer-exporter 镜像使用说明

pgbouncer-exporter 镜像拉取命令

Docker 镜像加速服务

轩辕镜像平台优势

镜像下载指南

相关 Docker 镜像推荐

Prometheus的PgBouncer导出器,用于收集PgBouncer指标并在9127/metrics端点暴露。
0 次下载activeprometheuscommunity镜像

pgbouncer-exporter 镜像详细说明

pgbouncer-exporter 使用指南

pgbouncer-exporter 配置说明

pgbouncer-exporter 官方文档

PgBouncer 导出器

![构建状态]([***]

Prometheus的PgBouncer导出器,用于收集PgBouncer指标并在9127/metrics端点暴露。

要求

  • 自PgBouncer导出器0.11.0起,需PgBouncer 1.8或更高版本。

构建与运行

执行以下命令构建并运行:

make build
./pgbouncer_exporter <flags>

查看所有可用配置标志:

./pgbouncer_exporter -h

PgBouncer配置

pgbouncer_exporter需要PgBouncer配置忽略一个PostgreSQL驱动连接参数。在pgbouncer.ini中需包含以下选项:

ignore_startup_parameters = extra_float_digits

使用Docker运行

docker run prometheuscommunity/pgbouncer-exporter <flags>

Docker部署示例

连接到PgBouncer实例并暴露指标端口:

docker run -d -p 9127:9127 --name pgbouncer-exporter prometheuscommunity/pgbouncer-exporter --pgbouncer.connection-string="postgres://user:password@pgbouncer-host:6432/pgbouncer?sslmode=disable"

指标

PgBouncer列Prometheus指标描述
stats_total_query_countpgbouncer_stats_queries_pooled_total池化的SQL查询总数
stats.total_query_timepgbouncer_stats_queries_duration_seconds_totalPgBouncer主动连接PostgreSQL执行查询所花费的总秒数
stats.total_receivedpgbouncer_stats_received_bytes_totalPgBouncer接收的网络流量总字节数
stats.total_requestspgbouncer_stats_queries_totalPgBouncer池化的SQL请求总数(单位:请求)
stats.total_sentpgbouncer_stats_sent_bytes_totalPgBouncer发送的网络流量总字节数
stats.total_wait_timepgbouncer_stats_client_wait_seconds_total客户端等待服务器的时间(单位:秒)
stats.total_xact_countpgbouncer_stats_sql_transactions_pooled_total池化的SQL事务总数
stats.total_xact_timepgbouncer_stats_server_in_transaction_seconds_totalPgBouncer连接PostgreSQL处于事务中的总秒数(包括事务中空闲或执行查询)
pools.cl_activepgbouncer_pools_client_active_connections链接到服务器连接并能处理查询的客户端连接数(单位:连接)
pools.cl_waitingpgbouncer_pools_client_waiting_connections等待服务器连接的客户端连接数(单位:连接)
pools.sv_activepgbouncer_pools_server_active_connections链接到客户端连接的服务器连接数(单位:连接)
pools.sv_idlepgbouncer_pools_server_idle_connections空闲且准备处理客户端查询的服务器连接数(单位:连接)
pools.sv_usedpgbouncer_pools_server_used_connections空闲时间超过server_check_delay、需执行server_check_query的服务器连接数(单位:连接)
pools.sv_testedpgbouncer_pools_server_testing_connections正在运行server_reset_query或server_check_query的服务器连接数(单位:连接)
pools.sv_loginpgbouncer_pools_server_login_connections正在登录过程中的服务器连接数(单位:连接)
pools.maxwaitpgbouncer_pools_client_maxwait_seconds最旧未服务客户端连接的存在时间(单位:秒)
config.max_client_connpgbouncer_config_max_client_connections配置的最大客户端连接数
config.max_user_connectionspgbouncer_config_max_user_connections配置的每用户最大服务器连接数

TLS和基本认证

pgbouncer导出器支持TLS和基本认证。

如需使用TLS和/或基本认证,需通过--web.config.file参数传递配置文件。文件格式详见exporter-toolkit仓库。

用户好评

来自真实用户的反馈,见证轩辕镜像的优质服务

oldzhang的头像

oldzhang

运维工程师

Linux服务器

5

"Docker加速体验非常流畅,大镜像也能快速完成下载。"