All Projects → davidfetter → pgbouncer_wrapper

davidfetter / pgbouncer_wrapper

Licence: MIT license
SQL wrapper around pgbouncer's console

Programming Languages

PLpgSQL
1095 projects
perl
6916 projects
Makefile
30231 projects

Projects that are alternatives of or similar to pgbouncer wrapper

opentelemetry-js-api
OpenTelemetry Javascript API
Stars: ✭ 75 (+316.67%)
Mutual labels:  observability
k8s-istio-observe-frontend
Angular 12-based front-end UI for k8s Golang observability project: https://github.com/garystafford/k8s-istio-observe-backend/tree/2021-istio
Stars: ✭ 20 (+11.11%)
Mutual labels:  observability
trouble-training
FullStack DDD/CQRS with GraphQL workshop including distributed tracing and monitoring. This shows the configuration from React frontend to .Net backend.
Stars: ✭ 271 (+1405.56%)
Mutual labels:  observability
robusta
Open source Kubernetes monitoring, troubleshooting, and automation platform
Stars: ✭ 772 (+4188.89%)
Mutual labels:  observability
skywalking-query-protocol
Query Protocol for Apache SkyWalking in GraphQL format
Stars: ✭ 45 (+150%)
Mutual labels:  observability
grafana-operator
An operator for Grafana that installs and manages Grafana instances, Dashboards and Datasources through Kubernetes/OpenShift CRs
Stars: ✭ 449 (+2394.44%)
Mutual labels:  observability
skywalking-client-js
Client-side JavaScript exception and tracing library for Apache SkyWalking APM.
Stars: ✭ 171 (+850%)
Mutual labels:  observability
STAM
STAM, Streaming Topology Analysis Method
Stars: ✭ 26 (+44.44%)
Mutual labels:  observability
cryostat-operator
An OpenShift Operator to facilitate setup and management of Cryostast and expose the Cryostat API through Kubernetes Custom Resources.
Stars: ✭ 25 (+38.89%)
Mutual labels:  observability
allure-docs
Allure Framework documentation
Stars: ✭ 50 (+177.78%)
Mutual labels:  reporting
nestjs-otel
OpenTelemetry (Tracing + Metrics) module for Nest framework (node.js) 🔭
Stars: ✭ 273 (+1416.67%)
Mutual labels:  observability
skywalking-banyandb
An observability database aims to ingest, analyze and store Metrics, Tracing and Logging data.
Stars: ✭ 111 (+516.67%)
Mutual labels:  observability
beefheart
A tool to index Fastly realtime analytics metrics into Elasticsearch.
Stars: ✭ 14 (-22.22%)
Mutual labels:  observability
go-test-report
Captures go test output and parses it into a single self-contained HTML file.
Stars: ✭ 68 (+277.78%)
Mutual labels:  reporting
open-telemetry-java-guides
Java OpenTelemetry 测试指南 :Open-Telemetry-Java-Guides 案例,用于测试常用中间件支持及 Otel 相关组件的使用情况。 可观察性Sig: https://i.cloudnative.to/observability/
Stars: ✭ 67 (+272.22%)
Mutual labels:  observability
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (+44.44%)
Mutual labels:  reporting
slab
An extensible Scala framework for creating monitoring dashboards.
Stars: ✭ 23 (+27.78%)
Mutual labels:  observability
realopinsight
✔️ Measure and observe end-user applications availability - Define and track SLA/SLO targets through Prometheus-alike metrics and built-in reports - Kubernetes®, Zabbix®, Nagios®.
Stars: ✭ 55 (+205.56%)
Mutual labels:  observability
datadog-actions-metrics
Send GitHub Actions metrics to Datadog
Stars: ✭ 27 (+50%)
Mutual labels:  observability
saltdash
A read-only dashboard for Salt jobs
Stars: ✭ 18 (+0%)
Mutual labels:  reporting

pgbouncer_wrapper

This project was originally inspired by Peter Eisentraut's excellent post

If you've ever wanted to run SQL queries against pgbouncer's SHOW output, this is a handy way to do just that.

To build it, just do this:

make
make install

Be sure that you have pg_config installed and in your path. If you used a package management system such as RPM to install PostgreSQL, be sure that the -devel package is also installed. If necessary tell the build process where to find it:

env PG_CONFIG=/path/to/pg_config make && make install

Once pgbouncer_wrapper is installed, you can add it to a database like this:

CREATE EXTENSION pgbouncer_wrapper;

You can find how many clients are coming from each address like this:

SELECT
    addr, count(*)
FROM
    clients
GROUP BY addr
ORDER BY count(*) DESC;

You can change pgbouncer settings like this:

SELECT set('default_pool_size', '300');

To see whether the current configuration is out of step with pgbouncer.ini, you can do:

SELECT
    count(*) > 0 AS "out of step"
FROM
    regexp_split_to_table(
        pg_read_file('/etc/pgbouncer/pgbouncer.ini'),
        E'\n'
    ) WITH ORDINALITY AS t(l, o)
JOIN
    config c
    ON (
        c.key =
        (string_to_array(t.l, ' = '))[1]
    )
WHERE
    format('%s = %s', key, value) <> l;

Dependencies

pgbouncer_wrapper depends on dblink.

Copyright and License

Copyright (c) 2015-2021 David Fetter [email protected].

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].