Skip to main content

A Supervisor event listener for Riemann

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

https://pypip.in/v/supermann/badge.png https://travis-ci.org/borntyping/supermann.png?branch=master

Supermann monitors processes running under Supervisor and sends metrics to Riemann.

Usage

Supermann runs as a Supervisor event listener, and will send metrics every time an event is received.

A very basic Supervisor configuration section to run Supermann:

[eventlistener:supermann]
command=supermann localhost 5555
events=PROCESS_STATE,TICK_5

Listening for the PROCESS_STATE and TICK_5 events will send metrics every 5 seconds, and when a program changes state. See the Supervisor event documentation for more information. Supermann is designed to bail out when an error is encountered, allowing Supervisor to restart it - it is recommended that you do not set autorestart=false in the Supervisor configuration for the eventlistener. Supervisor logs to stderr, which is logged by Supervisor. The logs can be read with supervisorctl tail supermann stderr or finding the log in Supervisor’s log directory.

supermann --help will display usage information on the available arguments. Basic usage is:

supermann [--log-level=INFO] [--memmon <name>=<limit>] $RIEMANN_HOST $RIEMANN_PORT

The --memmon option takes the name of a Supervisor program, and a memory limit in bytes. The suffixes gb, mb and kb can be used, and are case insensitive. This option can be repeated any number of times.

Installation

Supermann can be installed with pip install supermann, or you can use the provided makefile to build and distribute an RPM using [fpm](https://github.com/jordansissel/fpm).

Supervisor can also be installed with pip, or can be installed from your distributions package manager. Once Supermann is installed, add an eventlistener section to the Supervisor configuration (/etc/supervisord.conf by default) and restart Supervisor.

Requirements

The psutil package uses C extensions, and installing the package from source or with a python package manager (such as pip) will require build tools. Alternatively, it can be installed from your distribution’s repositories (python-psutil on Debian and CentOS).

Supermann is developed and tested on Python 2.6. There are no plans to release it for Python 3, as Google’s protobuf library (and therefore riemann-client) are only compatible with Python 2.

Licence

Supermann is licensed under the MIT Licence. The protocol buffer definition is sourced from the Riemann Java client, which is licensed under the Apache Licence.

Authors

Supermann was written by Sam Clements, while working at DataSift.

https://0.gravatar.com/avatar/8dd5661684a7385fe723b7e7588e91ee?d=https%3A%2F%2Fidenticons.github.com%2Fe83ef7586374403a328e175927b98cac.png&r=x&s=40 https://1.gravatar.com/avatar/a3a6d949b43b6b880ffb3e277a65f49d?d=https%3A%2F%2Fidenticons.github.com%2F065affbc170e2511eeacb3bd0e975ec1.png&r=x&s=40

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

supermann-2.0.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distributions

supermann-2.0.1-py27-none-any.whl (14.1 kB view details)

Uploaded Python 2.7

supermann-2.0.1-py2-none-any.whl (20.6 kB view details)

Uploaded Python 2

File details

Details for the file supermann-2.0.1.tar.gz.

File metadata

  • Download URL: supermann-2.0.1.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for supermann-2.0.1.tar.gz
Algorithm Hash digest
SHA256 b3527239bdf0c7cdd22bcd1490e4b6d12a46bfbbdc51126ad8efc47c4b63c1a6
MD5 e83bc4acc07ef1c18b35c434e9e2b396
BLAKE2b-256 588aabc0d2e9826caec85289dc31f9b4b8452820d238159cbf7ae29d5b3a1598

See more details on using hashes here.

File details

Details for the file supermann-2.0.1-py27-none-any.whl.

File metadata

File hashes

Hashes for supermann-2.0.1-py27-none-any.whl
Algorithm Hash digest
SHA256 0984918ac635304105a3721997c403b834abbdb35e421da5930e80c79c5b4450
MD5 e3e01607c8f159b5748d6c5021de3491
BLAKE2b-256 6ac669073325b54b4cd7b1946ab41f4cff9f7eadf419df3611be070eb227f59c

See more details on using hashes here.

File details

Details for the file supermann-2.0.1-py2-none-any.whl.

File metadata

File hashes

Hashes for supermann-2.0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 4fe84a802b97597d2193de6bdf60801747a1123cd89a8286ecd83574e3a0cf2b
MD5 b6cce5a18758b651f19ff8297b7ab819
BLAKE2b-256 de11ec3709e764e1c488812c90346c803044b14b523922226972ef97dd4a58ba

See more details on using hashes here.

Supported by

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