Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Influxdb backend plugin for graphite-web and graphite-api

Project Description

An influxdb (0.8-rc3 or higher) backend for Graphite-web (source or 0.10.x) or graphite-api.

Install and configure using docker

Using docker is an easy way to get graphite-api + graphite-influx up and running. See https://github.com/Dieterbe/graphite-api-influxdb-docker

Otherwise, follow instructions below. Graphite-api is the simplest to setup, though graphite-web might perform better. You can use the experimental statsd support in graphite-api to have this backend submit performance metrics (not supported with graphite-web)

Manual installation

pip install graphite_influxdb

don’t forget to run maintain_cache.py, which keeps the cache up to date in a loop

Using with graphite-api

You need the patched version from https://github.com/brutasse/graphite-api/pull/36 This adds support for caching, statsd instrumentation, and graphite-style templates

In your graphite-api config file:

finders:
  - graphite_influxdb.InfluxdbFinder
influxdb:
   host: localhost
   port: 8086
   user: graphite
   pass: graphite
   db:   graphite

Also enable the cache. memcache doesn’t seem to work well because the list of series is too big. filesystem seems to work well:

cache:
    CACHE_TYPE: 'filesystem'
    CACHE_DIR: '/tmp/graphite-api-cache'

Using with graphite-web

In graphite’s local_settings.py:

STORAGE_FINDERS = (
    'graphite_influxdb.InfluxdbFinder',
)
INFLUXDB_HOST = "localhost"
INFLUXDB_PORT = 8086
INFLUXDB_USER = "graphite"
INFLUXDB_PASS = "graphite"
INFLUXDB_DB =  "graphite"

Optional variable

In graphite-api, using parameter cheat_times: true means assume we have data since the beginning of time until now. Since we automatically yield None’s for unknown values, this doesn’t really make any difference, graphs look the same, but now we don’t query influx for the begin/end of each timeseries, which boosts performance. The default value of this is False. In graphite-web, the parameter is INFLUXDB_CHEAT_TIMES.

Release History

Release History

History Node

0.4

This version
History Node

0.3

History Node

0.2

History Node

0.1.3

History Node

0.1.2

History Node

0.1.1

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
graphite-influxdb-0.3.tar.gz (8.3 kB) Copy SHA256 Checksum SHA256 Source Aug 11, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting