Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

Configurable Python library for metrics and events reporting

Project description

https://travis-ci.org/APSL/kaneda.svg?branch=master https://readthedocs.org/projects/kaneda/badge/?version=latest

Kaneda is a Python library that allows to report events and metrics of your applications. It provides a several builtin metrics methods in order to store any amount of data that you want to then analyze it or for performance studies.

Usage

First of all, you need to install Kaneda package:

pip install kaneda

Then you need a backend in order to keep data in a persistent storage. The following example it shows how to send metrics with Elasticsearch as a backend:

from kaneda.backend import ElasticsearchBackend
from kaneda import Metrics

backend = ElasticsearchBackend(index_name='myindex', app_name='myapp', host='localhost',
                               port=9200, user='kaneda', password='kaneda')
metrics = Metrics(backend=backend)
metrics.gauge('answer_of_life', 42)

Features

  • Builtin metrics functions and custom metric reports.
  • Configurable reporting backends classes and asynchronous queue classes.
  • Builtin Elasticsearch, MongoDB, InfluxDB and RethinkDB backends.
  • Builtin Celery, RQ and ZMQ asynchronous queue classes.
  • Django support.

Documentation

Visit the documentation for an in-depth look at Kaneda.

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
kaneda-1.0.tar.gz (14.1 kB) Copy SHA256 hash SHA256 Source None May 21, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page