Giter Club home page Giter Club logo

ministryofjustice.postfix-stats-collector's Introduction

postfix-stats-collector

Postfix stats collector (StatsD integration)

Stats are build based on two data sources.

  • Firstly it listens on stdin/parses files for postfix logs postfix-stats-logparser
  • Secondly it checks once a 10 seconds for the length of postfix queues processing output of qshape postfix-stats-qshape

Postfix logging parser is based on: https://github.com/disqus/postfix-stats

installation

pip install git+https://github.com/ministryofjustice/postfix-stats-collector.git#egg=postfix-stats-collector

executables

  • postfix-stats-logparser
  • postfix-stats-qshapes

configuration

Following variables can be used to manage statsd destination and namespace

  • STATSD_HOST=localhost
  • STATSD_PORT=8125
  • STATSD_PREFIX=None
  • STATSD_MAXUDPSIZE=512 To configure frequency of qshape measurements:
  • STATSD_DELAY=10

example syslog-ng configuration

destination df_postfix_stats { program("/usr/local/bin/postfix-stats-logparser"); };

filter f_postfix { program("^postfix/"); };

log {
    source(s_src);
    filter(f_mail);
    filter(f_postfix);
    destination(df_postfix_stats);
};

TODO

  • more syslog configuraiton examples
  • add mailer test script (parse DNS, pull MX records and test connection - HELO/EHLO)

ministryofjustice.postfix-stats-collector's People

Contributors

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