Code Monkey home page Code Monkey logo

canaryd's Introduction

canaryd

canaryd is an aggregator for measurements taken by sensord. It connects to each sensor and streams measurements into a Redis instance. Those measurements are then made available via a simple HTTP API.

Build

$ go get github.com/canaryio/canaryd
$ cd $GOPATH/src/github.com/canaryio/canaryd
$ godep get
$ godep go build

Configuration

canaryd is configured via flags.

$ ./canaryd -h
Usage of ./canaryd:
  -port="5000": port the HTTP server should bind to
  -redis_url="redis://localhost:6379": redis url
  -sensord_url=[]: List of sensors

Usage Example

# connect to a single local sensor
$ godep go run canaryd.go --sensord_url http://admin:admin@localhost:5001/measurements

2014/05/14 21:15:42 fn=main listening=true port=5000
2014/05/14 21:15:42 fn=ingestor url=http://admin:admin@localhost:5001/measurements connect=success
2014/05/14 21:15:42 fn=recorder check_id=http-nbviewer.ipython.org measurement_id=c256ddaf-bbc5-402f-79fb-641c60f512a0
2014/05/14 21:15:43 fn=recorder check_id=https-www.hostedgraphite.com measurement_id=c72f8c4a-66e6-4c59-6f9e-497953d7dd6c
2014/05/14 21:15:43 fn=recorder check_id=http-www.indeed.com measurement_id=be8619db-f72c-4bd7-46f5-2c56782f5a13
2014/05/14 21:15:43 fn=recorder check_id=http-github.com measurement_id=816d14d6-8191-4fed-5c6b-8837588adedb
2014/05/14 21:15:43 fn=recorder check_id=https-github.com measurement_id=dc45a49f-63c8-476a-7ae2-131757676485
2014/05/14 21:15:43 fn=recorder check_id=http-git.io measurement_id=60c67299-3cb0-42c2-430a-b17cc83a0e2b
2014/05/14 21:15:43 fn=recorder check_id=https-gist.github.com measurement_id=fc2c0b31-f63a-4e31-477c-ebfd5647a91a
^C

canaryd's People

Contributors

gorsuch avatar anachronistic avatar warwickp avatar

Watchers

Ray Leyva avatar  avatar

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.