<commit_before>Graphite-InfluxDB
=================

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: <PASSWORD>
       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'<commit_msg>point to easy way to get up and running. fixes #7<commit_after>Graphite-InfluxDB
=================

An influxdb 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


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

In your graphite-api config file::

    finders:
      - graphite_influxdb.InfluxdbFinder
    influxdb:
       host: localhost
       port: 8086
       user: graphite
       pass: <PASSWORD>
       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'
{'fraction_non_alphanumeric': 0.13917808219178082, 'fraction_numerical': 0.00821917808219178, 'mean_word_length': 2.4258911819887428, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '280950', 'n_tokens_mistral': 563, 'n_tokens_neox': 507, 'n_words': 189}