GithubHelp home page GithubHelp logo

sasadangelo / patroni-exporter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from showmax/patroni-exporter

0.0 2.0 0.0 16 KB

Prometheus exporter of Patroni API metrics

License: Other

Python 100.00%

patroni-exporter's Introduction

patroni-exporter

Provides Patroni related metrics for Prometheus.

This exporter scrapes Patroni API (https://github.com/zalando/patroni) and transforms the obtained information into Prometheus-scrapable (https://prometheus.io/) format.

The following commandline arguments are available:

  • port: -p, --port specifies the port it should listen at
  • bind: -b, --bind specifies the address to bind to
  • patroni url: -u, --patroni-url specifies the full to path the patroni API endpoint
  • debug: -d, --debug enables debug output
  • timeout: -t, --timeout configures the timeout for patroni API
  • address family: -a, --address-family chooses which adress family to use. Either ipv4 (AF_INET) or ipv6 (AF_INET6). If listening on both ipv6 and ipv4 is required, AF_INET6 and a bind to '' or '::' must be used (the unfortunate side-effect is that it listens on all interfaces)
  • requests verify: --requests-verify Accepts true|false, in which case it controls whether Python's requests library verifies the server's TLS certificate. It also accepts a path to a CA bundle to use. Defaults to true

This service also responds on the /health endpoint and can be monitored this way.

The /metrics endpoint is designated for the prometheus scraping.

The default 9547 port has been reserved on https://github.com/prometheus/prometheus/wiki/Default-port-allocations

Requires python >= 3.6 because of the usage of f-strings and type hints.

patroni-exporter's People

Contributors

jtomsa avatar sasadangelo avatar

Watchers

 avatar  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.