GitXplorerGitXplorer
l

influxdb-test

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
641941fa0ccbb9f5000d5aadf583e98f91936209

Render graph for hard-coded origin

llautis committed 9 years ago
Unverified
20e7f93a67d2dcdee201b1a388e75ac992434b2f

Keep track of origins in ActiveRecord

llautis committed 9 years ago
Unverified
37ad84ff9d66586906306cfdceed58caea0f9e61

Load sample data

llautis committed 9 years ago
Unverified
f4b5a1045c63fe678b04fb13e42fdc83a2203893

Aggregate pings per hour to JSON response

llautis committed 9 years ago
Unverified
5d9dfff8245a102eb905f0a3b9faaf88f91d5007

Write pings

llautis committed 9 years ago
Unverified
4138277439689d88d463746410b873cf0591bb89

Ping model

llautis committed 9 years ago

README

The README file for this repository.

Dependencies

  • influxdb 0.8 (brew tap homebrew/versions; brew install homebrew/versions/influxdb08)
  • sqlite
  • Ruby 2.2 & bundler

Setup

Install gems with bundle install.

InfluxDB configuration assumes that you have the default (unsafe) password. Databases can be set up with rake db:setup. This should load schema for influxdb as well.

Manual rake tasks

  • influxdb:create - create influxdb db
  • influxdb:drop - drop influxdb db
  • influxdb:continuous_queries - set up continuous queries

Usage

POST /api/1/pings

curl -i -X POST -H "Content-Type: application/json" -d '{"origin": "sdn-probe-moscow","name_lookup_time_ms": 203,"connect_time_ms": 413,"transfer_time_ms": 135,"total_time_ms": 752,"status": 200}' http://localhost:3000/api/1/pings

/

Shows a graph of pings per origin.

Caveats

InfluxDB notes on downsampling continuous queries

It’s important to note that this happens as soon as the hour has elapsed. So if you have delayed data collection, this number may be off. Watch this issue for when that will change.

New pings might take some time to appear in the dashboard UI. In hindsight, perhaps a downsampling rate less than an hour might've been useful.