• Stars
    star
    198
  • Rank 196,898 (Top 4 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 10 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An influxdb backend for Graphite-web and graphite-api

Graphite-InfluxDB

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

STATUS

THIS PROJECT IS NO LONGER MAINTAINED. CHECK OUT [InfluxGraph](https://github.com/InfluxGraph/influxgraph) instead.

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 which provides a container that has all packages installed to make maximum use of these tools.

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

About the retention schemas

In the configs below, you'll see that you need to configure the schemas (datapoint resolutions) explicitly. It basically contains the same information as /etc/carbon/storage-schemas.conf would for whisper. But Influxdb currently has no way to supply us this information (yet), so we must configure it explicitly here. Also, it seems like internally, the graphite-web/graphite-api is to configure the step (resolution in seconds) per metric (i.e. per Node/Reader), without looking at the timeframe. I don't know how to deal with this yet (TODO), so for now it's one step per pattern, so we don't need to specify retention timeframes. (In fact, in the code we can assume the data exists from now to -infinity, missing data you query for will just show up as nulls anyway) The schema declares at which interval you should have points in InfluxDB. Schema rules use regex and are processed in order, first match wins. If no rule matches, 60 seconds is used.

Using with graphite-api

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

Note that the elasticsearch stuff is optional, see below

In your graphite-api config file:

finders:
  - graphite_influxdb.InfluxdbFinder
influxdb:
   host: localhost
   port: 8086
   user: graphite
   pass: graphite
   db:   graphite
   ssl: false
   schema:
     - ['high-res-metrics', 1]
     - ['^collectd', 10]
es:
   enabled: false
   hosts:
     - elastichost1:9200
   index: graphite_metrics2
   field: _id

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:
    type: 'filesystem'
    dir: '/tmp/graphite-api-cache'

Using with graphite-web

Note that the elasticsearch stuff is optional, see below 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"
INFLUXDB_SSL = "false"
INFLUXDB_SCHEMA = [
    ('', 60),
    ('high-res-metrics', 10)
]
ES_ENABLED = "false"
ES_HOSTS = ['elastichost1:9200']
ES_INDEX = "graphite_metrics2"
ES_FIELD = "_id"

Using Elasticsearch as an index

If you have an index in elasticsearch that contains all your metric id's, then you can use that as a metadata source. Your mileage may vary, but for me ES is noticeably faster. (see also influxdata/influxdb#884) You just need to install the elasticsearch pip module (comes in the docker image mentioned above) and enable it in the config. If you're wondering how to populate an ES index, you can use graph-explorer structured metrics plugins or carbon-tagger (beware the latter currently only does metrics 2.0 metrics)

More Repositories

1

psalm

A static analysis tool for finding errors in PHP applications
PHP
5,545
star
2

player.js

Interact with and control an embedded Vimeo Player.
JavaScript
1,432
star
3

graph-explorer

A graphite dashboard powered by structured metrics
Python
1,060
star
4

php-mysql-engine

A MySQL engine written in pure PHP
PHP
547
star
5

vimeo.php

Official PHP library for the Vimeo API.
PHP
450
star
6

player-api

Examples for our JavaScript and ActionScript player APIs.
449
star
7

laravel

A Vimeo bridge for Laravel
PHP
397
star
8

stag-java

Speedy Type Adapter Generation
Java
350
star
9

VIMVideoPlayer

Deprecated: Please use [PlayerKit]( https://github.com/vimeo/PlayerKit) instead.
Objective-C
281
star
10

vimeo.js

Official Node.js library for the Vimeo API.
JavaScript
267
star
11

vimeo-oembed-examples

Some examples of how to use our oEmbed endpoint
HTML
237
star
12

vimeo-unity-sdk

Easily stream your Vimeo videos into Unity or record and publish out to Vimeo.
C#
210
star
13

vimeo.py

Official Python library for the Vimeo API.
Python
210
star
14

vimeo-php-lib

Our official PHP library for the Advanced API.
PHP
180
star
15

tailgate

Tailgate is a nodejs app to pipe `tail -F` into websockets. It's a very simple way to have real-time access to your logs.
JavaScript
164
star
16

PlayerKit

Swift
154
star
17

ABLincoln

A library for online experiments.
PHP
152
star
18

py-money

Money class for Python 3
Python
125
star
19

vimeo-networking-java

The Vimeo Java (Android) SDK
Kotlin
121
star
20

vimeo-threejs-player

A plugin for streaming video from Vimeo to WebGL/VR/AR apps
JavaScript
89
star
21

tattletale.js

A utility to send console logs over XHR for server-side processing.
JavaScript
87
star
22

VimeoNetworking

The Vimeo API iOS SDK
Swift
84
star
23

vimeo-depth-player

A WebVR volumetric video renderer that uses color-depth based videos hosted on Vimeo.
JavaScript
83
star
24

aframe-vimeo-component

Stream Vimeo videos into WebVR.
JavaScript
81
star
25

simple-black-box

A simple black-box behavior testing framework
Shell
68
star
26

pentagon

Vault <-> Kubernetes Secrets
Go
60
star
27

libvmod-boltsort

A fast Varnish module for sorting query string parameters.
C
59
star
28

VimeoUpload

The Vimeo iOS Upload SDK
Swift
59
star
29

whisper-to-influxdb

migrate (import) graphite data from whisper to influxdb
Go
58
star
30

smoketcp

Smokeping like tcp connectivity tester, reports to statsd. written in Golang
Go
58
star
31

VIMNetworking

The Vimeo iOS SDK
Objective-C
58
star
32

vimeo-depth-viewer

OpenGL application for viewing depth and color video streams from Intel RealSense cameras
C++
53
star
33

carbon-tagger

native tag-based metrics for graphite/carbon
Go
50
star
34

iris

Vimeo Design System
TypeScript
47
star
35

go-util

Small reusable Go functions.
Go
44
star
36

Blueprint

aka How We Collaborate
42
star
37

graphite-api-influxdb-docker

docker image with graphite-api and graphite-influxdb
Shell
39
star
38

go-magic

Go Bindings for libmagic and an idiomatic API for getting a file's MIME type.
Go
39
star
39

rollup-plugin-bundle-size

A rollup plugin to show the size of the generated bundle(s).
JavaScript
27
star
40

vimeo-maxmsp

Play and manipulate Vimeo videos in Max/MSP and Jitter
Max
24
star
41

dials

Dials is an extensible configuration package for Go.
Go
18
star
42

VIMDeeplink

Simple Objc and Swift wrappers around the Vimeo iOS deeplink API
Swift
17
star
43

openapi

An OpenAPI specification for the Vimeo API.
16
star
44

puppet-diamond

diamond module for puppet
Puppet
15
star
45

nagios-cloudwatch-plugin

AWS CloudWatch check Nagios plugin
Python
14
star
46

elevator

Validate and patch AV1 levels
Rust
13
star
47

puppet-statsd

statsd module for puppet
Puppet
11
star
48

VIMUpload

This library has been deprecated, use VimeoUpload instead
Objective-C
11
star
49

go-hammer

Go
10
star
50

babel-plugin-transform-i18n

A Babel transform plugin to replace strings with their translations.
JavaScript
10
star
51

VIMObjectMapper

An automatic JSON to model object converter
Objective-C
9
star
52

leaderelection

Go
9
star
53

go-clocks

A convenient package providing a Clock abstraction in Go
Go
9
star
54

go-taglog

Based on, and compatible with, the Go standard log package, but also provides additional functionality and features such as tagging.
Go
8
star
55

ios-labs-staffpicks

An iOS Labs sample project
Swift
7
star
56

grouplogger

Go
6
star
57

netstorage

go client for the new Akamai Netstorage http api
Go
6
star
58

zendesk-ticket-history

JavaScript
6
star
59

caps

Go package to read/write popular video caption formats(mostly a port of pycaption)
Go
6
star
60

Uniform

Swift
6
star
61

alog

Another Go Logging Package
Go
5
star
62

vimeo-deeplink-android

A helper library to deep link into the official Vimeo Android App
Java
5
star
63

vimeo-live-player-examples

Example application for using Vimeo Live M3U8 links with third-party players
HTML
5
star
64

graph-explorer-docker

Shell
5
star
65

eslint-config-player

ESLint config for all player team projects.
JavaScript
5
star
66

go-iccjpeg

A small utility package to extract ICC profiles from JPEGs.
Go
4
star
67

graphite-go

Go
4
star
68

go-imgparse

A small go library to efficiently parse the resolution of various image format streams.
Go
4
star
69

go-retry

A small package for doing comprehensive retries.
Go
4
star
70

omnipay-bluesnap

BlueSnap driver for the Omnipay PHP payment processing library
PHP
4
star
71

payment-gateway-logger

PHP
3
star
72

av1stats

An AV1 stream analysis CLI tool
Rust
3
star
73

omnipay-vindicia

Vindicia driver for the Omnipay PHP payment processing library
PHP
3
star
74

genepool

A golang package for building generic workpools in a standardized way
Go
2
star
75

VimeoCommon

1
star
76

k8swatcher

Convenient watching interface for Kubernetes.
Go
1
star
77

policy

1
star