All Projects → eleme → Banshee

eleme / Banshee

Licence: mit
Anomalies detection system for periodic metrics.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Banshee

Amon
Amon is a modern server monitoring platform.
Stars: ✭ 1,331 (+27.37%)
Mutual labels:  metrics, alerting, statsd
Opbeat Node
DEPRECATED - See Elastic APM instead: https://github.com/elastic/apm-agent-nodejs
Stars: ✭ 155 (-85.17%)
Mutual labels:  metrics, alerting, ops
Statix
Fast and reliable Elixir client for StatsD-compatible servers
Stars: ✭ 228 (-78.18%)
Mutual labels:  metrics, statsd
octane-exporter
Export Laravel Octane metrics using this Prometheus exporter.
Stars: ✭ 14 (-98.66%)
Mutual labels:  ops, metrics
Nightingale
💡 A Distributed and High-Performance Monitoring System. Prometheus enterprise edition
Stars: ✭ 4,003 (+283.06%)
Mutual labels:  metrics, alerting
Go Statsd Client
statsd client for Go
Stars: ✭ 163 (-84.4%)
Mutual labels:  metrics, statsd
Node Statsd Client
Node.js client for statsd
Stars: ✭ 170 (-83.73%)
Mutual labels:  metrics, statsd
Hastic Server
Hastic data management server for analyzing patterns and anomalies from Grafana
Stars: ✭ 292 (-72.06%)
Mutual labels:  metrics, alerting
Grafana
The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
Stars: ✭ 45,930 (+4295.22%)
Mutual labels:  metrics, alerting
Argus
Time series monitoring and alerting platform.
Stars: ✭ 468 (-55.22%)
Mutual labels:  metrics, alerting
Statsd Php
a PHP client for statsd
Stars: ✭ 327 (-68.71%)
Mutual labels:  metrics, statsd
Opennms
Enterprise-Grade Open-Source Network Management Platform
Stars: ✭ 568 (-45.65%)
Mutual labels:  metrics, alerting
Statsd Vis
Standalone StatsD server with built-in visualization
Stars: ✭ 124 (-88.13%)
Mutual labels:  metrics, statsd
Hawkular Metrics
Time Series Metrics Engine based on Cassandra
Stars: ✭ 225 (-78.47%)
Mutual labels:  metrics, alerting
Zabbix
Real-time monitoring of IT components and services, such as networks, servers, VMs, applications and the cloud.
Stars: ✭ 1,914 (+83.16%)
Mutual labels:  metrics, alerting
Statsd
Daemon for easy but powerful stats aggregation
Stars: ✭ 16,179 (+1448.23%)
Mutual labels:  metrics, statsd
Sensu Go
Simple. Scalable. Multi-cloud monitoring.
Stars: ✭ 625 (-40.19%)
Mutual labels:  metrics, alerting
Foundatio
Pluggable foundation blocks for building distributed apps.
Stars: ✭ 1,365 (+30.62%)
Mutual labels:  metrics, statsd
Prometheus
The Prometheus monitoring system and time series database.
Stars: ✭ 40,114 (+3738.66%)
Mutual labels:  metrics, alerting
Cernan
telemetry aggregation and shipping, last up the ladder
Stars: ✭ 306 (-70.72%)
Mutual labels:  metrics, statsd

Banshee

Banshee is a real-time anomalies(outliers) detection system for periodic metrics.

Build Status GoDoc Join the chat at https://gitter.im/eleme/banshee

snap-01

Case

For example, a website api's response time is reported to banshee from statsd every 10 seconds:

20, 21, 21, 22, 23, 19, 18, 21, 22, 20, ..., 300

The latest 300 will be catched.

Features

  • Designed for periodic metrics.
  • Dynamic threshold analyzation via 3-sigma.
  • Also supports fixed-threshold alert option.
  • Provides an alert rule management panel.
  • No extra storage services required.

Requirements

  1. Go >= 1.5.
  2. Node and gulp.
  3. Statsd.

It is strongly recommended to use statsd as banshee client.

Build

  1. Clone this repo and checkout to the latest release.
  2. Build binary via make.
  3. Build static files via make static.

Usage

$ ./banshee -c <config-filename>

Example configuration file is config/exampleConfig.yaml.

Statsd Integration

  1. Install statsd-banshee to forward metrics to banshee.

    $ cd path/to/statsd
    $ npm install statsd-banshee
    
  2. Add statsd-banshee to statsd backends in config.js:

     {
     , backends: ['statsd-banshee']
     , bansheeHost: 'localhost'
     , bansheePort: 2015
     }
    

Supported Metrics

  • timers: timer.mean_90.*, timer.upper_90.*, timer.count_ps.*.
  • counters: counter.*.
  • gauge: gauge.*.

Detection should work for any metric delimited by dots, but above types are better supported and are also recommended to use as banshee input.

Statsd-banshee would format banshee metric names before data sent out.

Web Panel Manual

Welcome to checkout the web panel manuals: English, 简体中文.

Deployment

Banshee is a single-host program, its detection is fast enough in our case, we don't have a plan to expand it now.

We are using a Python script (deploy.py via fabric) to deploy it to remote host:

python deploy.py -u hit9 -H remote-host:22 --remote-path "/service/banshee"

Upgrade

Just pull the latest tag release. Please don't use master branch directly, checkout to a tag instead.

Generally we won't release not-backward-compatiable versions, if any, related notes would be added to the changelog.

Alert Command

Banshee requires a command, normally a script to send alert messages.

It should be called from command line like this:

$ ./alert-command <JSON-String>

The JSON string example can be found at alerter/exampleCommand/echo.go.

Philosophy

But how do you really analyze the anomalous metrics? Via 3-sigma:

>>> import numpy as np
>>> x = np.array([40, 52, 63, 44, 54, 43, 67, 54, 49, 45, 48, 54, 57, 43, 58])
>>> mean = np.mean(x)
>>> std = np.std(x)
>>> (80 - mean) / (3 * std)
1.2608052883472445 # anomaly, too big
>>> (20 - mean) / (3 * std)
-1.3842407711224991 # anomaly, too small

For further implementation introduction, please checkout docs/algorithms.md.

Network Protocol

If you are using statsd as banshee client, please checkout statsd-banshee.

The network protocol is line based:

<NAME> <STAMP> <VALUE> '\n'

Where the NAME should be a string, STAMP should be a timestamp integer in seconds, and the VALUE should be a float number.

Web HTTP API

Please checkout docs/web-api.md.

Docker Image

Please checkout docker/README.md.

Authors

Thanks to our contributors.

License

MIT Copyright (c) 2015 - 2016 Eleme, Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].