Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ahupowerdns/metronome
https://github.com/ahupowerdns/metronome
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ahupowerdns/metronome
- Owner: ahupowerdns
- License: gpl-2.0
- Created: 2014-03-29T19:04:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-07-25T17:35:00.000Z (over 2 years ago)
- Last Synced: 2024-08-01T12:16:04.135Z (3 months ago)
- Language: C++
- Size: 2.07 MB
- Stars: 50
- Watchers: 9
- Forks: 22
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - ahupowerdns/metronome - (others)
README
metronome
=========
Mini-graphite that uses client-side java script to render graphs w/o depending on graphite.'metronome' implements the carbon protocol, so anything that can feed Graphite can feed metronome.
We also accept submissions via POST:For example, to submit RX bytes for eth0:
while true;
do
VAL=$(ip -s link ls eth0 | grep RX -A 1 | tail -1 | awk '{print $1}')
wget -q --post-data="" "http://127.0.0.1:8000/?do=store&name=rxbytes×tamp=$(date +%s)&value=$VAL" -O /dev/null
sleep 1
doneTo retrieve data:
$ wget http://127.0.0.1:8000/?do=retrieve&name=rxbytes&begin=0&end=$(date +%s)&callback=jsonp
This delivers a JSONP callback with your values in there.
To view, try html/index.html
Installing
==========
Dependencies include a recent g++ (4.7+), Boost and libeigen.Installing Eigen
----------------
Either install `libeigen3-dev` (Debian, Ubuntu), `eigen3-devel` (Fedora, EPEL).To install it manually:
$ wget http://bitbucket.org/eigen/eigen/get/3.2.1.tar.bz2
$ tar xf 3.2.1.tar.bz2Compiling
=========$ ./bootstrap
$ ./configure
$ makeIf you installed libeigen manually, use `./configure --with-eigen=/path/to/eigen`
Running
=======$ mkdir stats
$ ./metronome --stats-directory=./statsNext, host the 'html/' directory somewhere on a webserver, and edit 'html/local.js' so
it knows the Webserver IP address of metronome (port 8000 on :: by default).Thanks to
=========
Aki Tuomi for the excellent [yahttp](https://github.com/cmouse/yahttp),
[Rickshaw](http://code.shutterstock.com/rickshaw/) for the graphs. [Eigen](http://eigen.tuxfamily.org) for the math. And a cast of thousands for C++2011.status
======
"Toy" for now - stores all data in flat files, which we read in their entirety to
replay data.But, starting to look nice.