GitXplorerGitXplorer
l

influxdb-test

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
760cdca9b520925acc0bfa499a7a650e5336bd97

Document setup

llautis committed 9 years ago
Unverified
722087ed8979a2a9d26d91701d3117ffeb4a2447

Don’t require authenticity token when creating pings

llautis committed 9 years ago
Unverified
7a661490f93701e916fba1cbcf71e94080c5977d

Tune styles

llautis committed 9 years ago
Unverified
7c7203186fc796e29b2cc1d18a64e007e52422db

Use continuous queries to downsample metrics

llautis committed 9 years ago
Unverified
1650c05c8ae5d1035c592d7d916caa1d4382b723

Handle loading state

llautis committed 9 years ago
Unverified
03b16250cd8e6c88a6f502b6310118e956cd4d05

Select origin

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.