Code Monkey home page Code Monkey logo

pgbouncer_exporter's Introduction

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

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.

pgbouncer_exporter's People

Contributors

a5r0n avatar aravind avatar benwh avatar dependabot[bot] avatar kenneth-duffel avatar larseen avatar marcusteixeira avatar prombot avatar shamil avatar stanhu avatar superq avatar suprememoocow avatar yansal avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.