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

Influxdb backend plugin for graphite-web and graphite-api

Project description

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

Installation

Run maintain_cache.py, which keeps the cache up to date in a loop

pip install graphite_influxdb

Using with graphite-api

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.

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
graphite-influxdb-0.2.tar.gz (4.6 kB) Copy SHA256 hash SHA256 Source None Jun 18, 2014

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