GithubHelp home page GithubHelp logo

isabella232 / airflow-pgbouncer-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from apache/airflow-pgbouncer-exporter

0.0 0.0 0.0 3.77 MB

Apache airflow

Home Page: https://airflow.apache.org/

License: MIT License

Dockerfile 3.35% Go 88.78% Shell 5.81% Makefile 2.05%

airflow-pgbouncer-exporter's Introduction

Pgbouncer exporter

Build Status Docker Pulls Go Report Card

Prometheus exporter for Pgbouncer metrics.

Docker

Metrics are by default exposed on http server running on port 9127 under the /metrics path.

docker run \ 
  --detach \ 
  --env "DATABASE_URL=postgres://user:password@pgbouncer:6432/pgbouncer?sslmode=disable" \
  --publish "9127:9127" \
  --name "pgbouncer_exporter" \
  jbub/pgbouncer_exporter

In order to build the binary for the development docker compose setup you can use this command:

CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build

Collectors

All of the collectors are enabled by default, you can control that using environment variables by settings it to true or false.

Name Description Env var Default
stats Per database requests stats. EXPORT_STATS Enabled
pools Per (database, user) connection stats. EXPORT_POOLS Enabled
databases List of configured databases. EXPORT_DATABASES Enabled
lists List of internal pgbouncer information. EXPORT_LISTS Enabled

Default constant prometheus labels

In order to provide default prometheus constant labels you can use the DEFAULT_LABELS enviroment variable. Labels can be set in this format instance=pg1 env=dev. Provided labels will be added to all the metrics.

airflow-pgbouncer-exporter's People

Contributors

bdeutra avatar jbub avatar pgvishnuram avatar potiuk 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.