Skip to main content

Powerful Statsd server, made easy

Project description

https://travis-ci.org/farzadghanei/navdoon.svg?branch=master https://codecov.io/github/farzadghanei/navdoon/coverage.svg?branch=master https://ci.appveyor.com/api/projects/status/67gbsru6tp3tjxaq/branch/master?svg=true

Powerful Statsd server, made easy.

Navdoon is a portable Statsd server with useful features to make it easy to use, extend and integrate.

Features

  • Portable with few dependencies, easy to install on most platforms

  • Support TCP, UDP

  • Receive metrics from multiple addresses

  • Flush to multiple Graphite backends

  • Easy to integrate with custom programs

Details

  • Navdoon uses collectors to receive Statsd metrics and recieves metrics over UDP (–collect-udp) and TCP (–collect-tcp), and accepts multiple collectors. (TCP collector is sequencial now and its performance will be much better in future versions).

  • The server saves/sends (flushes) the accumulated metrics every often (–flus-interval) to a persistent storage. Carbon (from Graphite project) is a very common backend for Statsd servers. Navdoon accepts multiple Graphite addresses (–flush-graphite) so it can flush to multiple backends (all share the same interval). Metrics can be flushed to standard output (–flush-stdout) to pipe to another program, so it’s easy to integrate with any custom backend.

  • Logging can be helpful or can be wasteful, depending on the deployment and the usage of the application. Navdoon provides detailed configuration on logging, so you can chose what will be logged (–log-level) and how to log, send logs to syslog (–log-syslog), to a file (–log-file) or standard error (–log-stderr) to be piped to another program.

  • While not claiming to be the fastest, good performance is considered in the design. Navdoon uses threads for each collector and flush backend. Future versions will offer improved performance as it was not a priority for the first releases.

Requirements

Navdoon is written in Python, so running from source or installing it as a package, requires a Python runtime (version 2.7+, latest versions of Python 3 is recommended).

The statsdmetrics Python module is the only dependency to run navdoon. However these Python modules are recommended on development/test environment:

  • distutilazy (>=0.4.1): helpful commands added to setup.py to run tests and clean temp files

  • typing (>=3.5.0): standard type annotations for Python

  • coveage: create test coverage reports

Running from source

Before running from source, a few dependencies should be installed. Using a virtual environment is suggested. (In this example we create a virtual environment in the project source path, but you may chose a custom path like ~/.venvs/navdoon-py3)

git clone https://github.com/farzadghanei/navdoon.git && cd navdoon
python3 -m venv .navdoon-venv-py3 && source ./.navdoon-venv-py3/bin/activate
pip install -r requirements.txt && python3 bin/navdoon_src

Or you may skip installing and sourcing the virtual environment and install the (few) dependencies on your system.

Install

Navdoon can be installed from pypi using pip.

pip install navdoon

You can install from the source by running the setup.py script provided.

python setup.py install

License

Navdoon is released under the terms of the Apache 2.0 license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

navdoon-0.1.1.tar.gz (16.2 kB view hashes)

Uploaded Source

Built Distribution

navdoon-0.1.1-py2.py3-none-any.whl (21.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page