• Stars
    star
    138
  • Rank 263,047 (Top 6 %)
  • Language
    Go
  • License
    MIT License
  • Created over 6 years ago
  • Updated 20 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Prometheus exporter for PgBouncer

PgBouncer exporter

Build Status

Prometheus exporter for PgBouncer. Exports metrics at 9127/metrics

Building and running

make build
./pgbouncer_exporter <flags>

To see all available configuration flags:

./pgbouncer_exporter -h

PGBouncer configuration

The pgbouncer_exporter requires a configuration change to pgbouncer to ignore a PostgreSQL driver connection parameter. In the pgbouncer.ini please include this option:

ignore_startup_parameters = extra_float_digits

Run with docker

docker run prometheuscommunity/pgbouncer-exporter <flags>

Metrics

PgBouncer column Prometheus Metric Description
stats_total_query_count pgbouncer_stats_queries_pooled_total Total number of SQL queries pooled
stats.total_query_time pgbouncer_stats_queries_duration_seconds_total Total number of seconds spent by pgbouncer when actively connected to PostgreSQL, executing queries
stats.total_received pgbouncer_stats_received_bytes_total Total volume in bytes of network traffic received by pgbouncer, shown as bytes
stats.total_requests pgbouncer_stats_queries_total Total number of SQL requests pooled by pgbouncer, shown as requests
stats.total_sent pgbouncer_stats_sent_bytes_total Total volume in bytes of network traffic sent by pgbouncer, shown as bytes
stats.total_wait_time pgbouncer_stats_client_wait_seconds_total Time spent by clients waiting for a server in seconds
stats.total_xact_count pgbouncer_stats_sql_transactions_pooled_total Total number of SQL transactions pooled
stats.total_xact_time pgbouncer_stats_server_in_transaction_seconds_total Total number of seconds spent by pgbouncer when connected to PostgreSQL in a transaction, either idle in transaction or executing queries
pools.cl_active pgbouncer_pools_client_active_connections Client connections linked to server connection and able to process queries, shown as connection
pools.cl_waiting pgbouncer_pools_client_waiting_connections Client connections waiting on a server connection, shown as connection
pools.sv_active pgbouncer_pools_server_active_connections Server connections linked to a client connection, shown as connection
pools.sv_idle pgbouncer_pools_server_idle_connections Server connections idle and ready for a client query, shown as connection
pools.sv_used pgbouncer_pools_server_used_connections Server connections idle more than server_check_delay, needing server_check_query, shown as connection
pools.sv_tested pgbouncer_pools_server_testing_connections Server connections currently running either server_reset_query or server_check_query, shown as connection
pools.sv_login pgbouncer_pools_server_login_connections Server connections currently in the process of logging in, shown as connection
pools.maxwait pgbouncer_pools_client_maxwait_seconds Age of oldest unserved client connection, shown as second
config.max_client_conn pgbouncer_config_max_client_connections Configured maximum number of client connections
config.max_user_connections pgbouncer_config_max_user_connections Configured maximum number of server connections per user

TLS and basic authentication

The pgbouncer exporter supports TLS and basic authentication.

To use TLS and/or basic authentication, you need to pass a configuration file using the --web.config.file parameter. The format of the file is described in the exporter-toolkit repository.

More Repositories

1

helm-charts

Prometheus community Helm charts
Mustache
4,981
star
2

windows_exporter

Prometheus exporter for Windows machines
Go
2,858
star
3

postgres_exporter

A PostgreSQL metric exporter for Prometheus
Go
2,720
star
4

elasticsearch_exporter

Elasticsearch stats exporter for Prometheus
Go
1,910
star
5

PushProx

Proxy to allow Prometheus to scrape through NAT etc.
Go
715
star
6

json_exporter

A prometheus exporter which scrapes remote JSON by JSONPath
Go
631
star
7

node-exporter-textfile-collector-scripts

Scripts for node-exporter's textfile collector
Python
490
star
8

ipmi_exporter

Remote IPMI exporter for Prometheus
Go
459
star
9

avalanche

Prometheus/OpenMetrics endpoint series generator for load testing.
Go
393
star
10

ansible

Ansible Collection for Prometheus
Python
357
star
11

jiralert

JIRA integration for Prometheus Alertmanager
Go
333
star
12

pro-bing

A library for creating continuous probers
Go
317
star
13

bind_exporter

Prometheus exporter for BIND
Go
299
star
14

smartctl_exporter

Export smartctl statistics to prometheus
Go
289
star
15

systemd_exporter

Exporter for systemd unit metrics
Go
283
star
16

prom-label-proxy

A proxy that enforces a given label in a given PromQL query.
Go
262
star
17

stackdriver_exporter

Google Stackdriver Prometheus exporter
Go
254
star
18

promql-langserver

PromQL language server
Go
176
star
19

prometheus-playground

Turnkey sandbox projects demonstrating a wide variety of Prometheus use cases
Go
164
star
20

ecs_exporter

Prometheus exporter for Amazon Elastic Container Service (ECS)
Go
78
star
21

vscode-promql

This is supposed to become a PromQL extension for vs code.
TypeScript
52
star
22

monaco-promql

PromQL support for the Monaco code editor
TypeScript
31
star
23

community

Prometheus & The Ecosystem Community Meeting Information
20
star
24

prometheus-community

13
star
25

snmp

Tools and configurations for translating SNMP into Prometheus
11
star
26

kitefactory

Makefile
3
star
27

sublimelsp-promql

PromQL support for Sublime LSP plugin, using promql-langserver
Python
2
star