All Projects → douban → Kenshin

douban / Kenshin

Licence: apache-2.0
Kenshin: A time-series database alternative to Graphite Whisper with 40x improvement in IOPS

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Kenshin

Hastic Server
Hastic data management server for analyzing patterns and anomalies from Grafana
Stars: ✭ 292 (+43.84%)
Mutual labels:  monitoring, metrics, graphite
Logmonitor
Monitoring log files on windows systems.
Stars: ✭ 23 (-88.67%)
Mutual labels:  monitoring, metrics, graphite
Carbon Relay Ng
Fast carbon relay+aggregator with admin interfaces for making changes online - production ready
Stars: ✭ 429 (+111.33%)
Mutual labels:  monitoring, metrics, graphite
Metrictank
metrics2.0 based, multi-tenant timeseries store for Graphite and friends.
Stars: ✭ 574 (+182.76%)
Mutual labels:  monitoring, metrics, graphite
Influxgraph
Graphite InfluxDB backend. InfluxDB storage finder / plugin for Graphite API.
Stars: ✭ 87 (-57.14%)
Mutual labels:  monitoring, metrics, graphite
Appmetrics
App Metrics is an open-source and cross-platform .NET library used to record and report metrics within an application.
Stars: ✭ 1,986 (+878.33%)
Mutual labels:  monitoring, metrics, graphite
Graylog Plugin Metrics
Graylog output plugin for Graphite and Ganglia
Stars: ✭ 16 (-92.12%)
Mutual labels:  monitoring, metrics, graphite
Graphite exporter
Server that accepts metrics via the Graphite protocol and exports them as Prometheus metrics
Stars: ✭ 217 (+6.9%)
Mutual labels:  monitoring, metrics, graphite
Tessera
A dashboard front-end for graphite.
Stars: ✭ 1,202 (+492.12%)
Mutual labels:  monitoring, metrics, graphite
Graylog Plugin Metrics Reporter
Graylog Metrics Reporter Plugins
Stars: ✭ 71 (-65.02%)
Mutual labels:  monitoring, metrics, graphite
Icingaweb2 Module Grafana
Grafana module for Icinga Web 2 (supports InfluxDB & Graphite)
Stars: ✭ 190 (-6.4%)
Mutual labels:  monitoring, metrics, graphite
Polymur
A fast carbon-relay with live routing controls + https Graphite forwarder
Stars: ✭ 97 (-52.22%)
Mutual labels:  monitoring, metrics, graphite
Vsphere2metrics
VMware vSphere Performance Metrics Integration with Graphite & InfluxDB
Stars: ✭ 28 (-86.21%)
Mutual labels:  monitoring, metrics, graphite
Es Stats
ElasticSearch cluster metrics -> Graphite
Stars: ✭ 91 (-55.17%)
Mutual labels:  monitoring, metrics, graphite
Icinga2
Icinga is a monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting.
Stars: ✭ 1,670 (+722.66%)
Mutual labels:  monitoring, metrics, graphite
Prom Client
Prometheus client for node.js
Stars: ✭ 2,062 (+915.76%)
Mutual labels:  monitoring, metrics
Telemetry metrics
Collect and aggregate Telemetry events over time
Stars: ✭ 144 (-29.06%)
Mutual labels:  monitoring, metrics
Scouter
Scouter is an open source APM (Application Performance Management) tool.
Stars: ✭ 1,792 (+782.76%)
Mutual labels:  monitoring, metrics
Swiftmetrics
Swift Application Metrics instruments the Swift runtime for performance monitoring, providing the monitoring data programatically via an API or visually with an Eclipse Client.
Stars: ✭ 145 (-28.57%)
Mutual labels:  monitoring, metrics
Anode
Utility for analyzing graphite metrics. Experimental package.
Stars: ✭ 188 (-7.39%)
Mutual labels:  metrics, graphite

Kenshin

travis-ci status

Kenshin (るろうに剣心)

Kenshin project consists of two major components:

  • Kenshin is a fixed-size time-series database format, similar in design to Whisper, it's an alternative to Whisper for Graphite storage component. Whisper performs lots of tiny I/O operations on lots of different files, Kenshin is aiming to improve the I/O performance. For more design details please refer to design docs (Chinese) and QCon 2016 Presentation slide.

  • Rurouni-cache is a storage agent that sits in front of kenshin to batch up writes to files to make them more sequential, rurouni-cache is to kenshin as carbon-cache is to whisper.

Kenshin is developing and maintaining by Douban Inc. Currently, it is working in production environment, powering all metrics (host, service, DAE app, user defined) in douban.com.

What's the performance of Kenshin?

In our environment, after using Kenshin, the IOPS is decreased by 97.5%, and the query latency is not significantly slower than Whisper.

Quick Start

We recommend using virtualenv when installing dependencies:

$ git clone https://github.com/douban/Kenshin.git
$ cd Kenshin
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt

Tests can be run using nosetests:

$ nosetests -v

Setup configuration

$ misc/init_setup_demo.sh

Setup Kenshin

$ python setup.py build_ext --inplace && python setup.py install

Start two rurouni-cache instances

$ python bin/rurouni-cache.py --debug --config=conf/rurouni.conf --instance=0 start
$ python bin/rurouni-cache.py --debug --config=conf/rurouni.conf --instance=1 start

Then go to Graphite-Kenshin for starting Web instances.

FAQ

Why don't you just use whisper?

Whisper is great, and initially we did use it. Over time though, we ran into several issues:

  1. Whisper using a lot of IO. There are serval reasons:
    • Using one file per metric.
    • Realtime downsample feature (different data resolutions based on age) causes a lot of extra IO
  2. Carbon-cache & Carbon-relay is inefficient and even is cpu-bound. We didn't write our own carbon-relay, but replaced carbon-relay with carbon-c-relay.

Why did you totally rewrite whisper? Couldn't you just submit a patch?

The reason I didn't simply submit a patch for Whisper is that kenshin's design is incompatible with Whisper's design. Whisper using one file per metric. Kenshin on the other hand merge N metrics into one file.

How to intergrate Kenshin with Graphite-Web?

We use write a plugin for Graphite-API named Graphite-Kenshin

Acknowledgments

Contributors

License

Kenshin is licensed under version 2.0 of the Apache License. See the LICENSE file for details.

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