Code Monkey home page Code Monkey logo

gtoi's Introduction

GTOI - Work in progress

Graphite to influxdb, prototype of a proxy handling graphite input (TCP for now, with http api later), to insert them in a influxdb database.

You can add a yml config file to extract column from the graphite string.

It's a work in progress.

Example

graphite sample :

do-vm123.cassandra.mykeyspace.mycolumnfamily.read_latency 5 1418286022

Conf yml :

patterns:
  cassandra:
    patterns: 
        - "^car[^.]+.cassandra.[^.]+.[^.]+.read_latency$"
    columns:
      ColumnFamily: 2
      Keyspace: 3

The graphite string is exploded as an array and then included as columns.

Build

The simple way :

go build -v

With docker :

docker run --rm -v "$(pwd)":/go/src/github.com/jbdalido/gtoi -w /go/src/github.com/jbdalido/gtoi golang:1.3 ls -alih /go/src/github.com/jbdalido/gtoi/

Command Line :

$ gtoi start --help
NAME:
   start - Start daemon

USAGE:
   command start [command options] [arguments...]

OPTIONS:
   --host, -H '127.0.0.1:8086'			Influxdb endpoint [$GTOI_HOST]
   --user, -u 'root'					Influxdb user [$GTOI_USER]
   --password, -p 'root'				Influxdb password [$GTOI_PASSWORD]
   --db, -d 'testing'					Influxdb DB [$GTOI_DB]
   --listen, -l '0.0.0.0:9666'			Listening interface and port [$GTOI_LISTEN]
   --config, -c '/etc/gtoi/gtoi.yml'	Pattern config file [$GTOI_PATTERNS]
   --workers, -w '5'					Number of connections to InfluxDB [$GTOI_WORKERS]
   --pool '5000'						TCP pool size [$GTOI_POOL]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.