InfluxDB: Difference between revisions
| Line 96: | Line 96: | ||
==Avec [[Grafana]]== |
==Avec [[Grafana]]== |
||
http://influxdb.com/docs/v0.7/ui/grafana.html |
http://influxdb.com/docs/v0.7/ui/grafana.html |
||
Téléchargez Grafana |
|||
Modifiez config.example.js et Sauvegardez dans config.js |
|||
Ouvrez index.html |
|||
=Premières Requêtes= |
=Premières Requêtes= |
||
Revision as of 17:33, 30 October 2014
https://github.com/influxdb/influxdb
open-source distributed time series database with no external dependencies.
(metrics, events, and analytics)
developped in Go language
Voir https://speakerdeck.com/pauldix/introducing-influxdb-an-open-source-distributed-time-series-database
Demo sur http://play.influxdb.com/ (source code)
InfluxDB @ AIR
Installation
On OS X
brew update brew install influxdb
Démarrage
influxdb -config=/usr/local/etc/influxdb.conf
Naviguez sur http://localhost:8083/ username : root & password : root
Pensez à changer ces valeurs quand vous mettez influxdb en production
Premiers Pas
Via l'interface Web
Depuis l'interface web, Créez une base : mydb
Depuis Database > Explore Data
Depuis write point, Ajoutez un point dans la série temporelle log_lines
{ "line":"here's some useful log info from paul@influx.com", "like":1, "star": 5 }
puis un autre
{ "line":"here's another useful log info from paul@influx.com", "like":2, "star": 4 }
puis un autre
{ "line":"here's some useful log info from didier@donsez.com", "like":1, "star": 5 }
Exécutez les requêtes suivantes depuis read point:
select line from log_lines
select line from log_lines where line =~ /paul@influx.com/
select line from log_lines where like > 1
select like, star from log_lines
select like from log_lines where time > now() - 1d
Agrégat temporel
select sum(like), mean(star) from log_lines group by time(1m) where time > now() - 1d
Via l'interface REST
curl -G 'http://localhost:8086/db/mydb/series?u=root&p=root&pretty=true' --data-urlencode "q=select * from log_lines"
Avec Grafana
http://influxdb.com/docs/v0.7/ui/grafana.html
Téléchargez Grafana
Modifiez config.example.js et Sauvegardez dans config.js
Ouvrez index.html