You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ git clone https://gist.github.com/7334560.git
$ cd 7334560
$ docker build .
[snip]
Successfully built bc16b7ab3dbd
$ docker run bc16b7ab3dbd
2013/11/06 13:46:49 Loading Config from config.json.sample
2013/11/06 13:46:49 Starting Influx Server...
2013/11/06 13:46:49 Opening database at /tmp/influxdb/development/db
2013/11/06 13:46:49 Initializing Raft HTTP server
2013/11/06 13:46:49 Listening at: http://localhost:8090
2013/11/06 13:46:49 Initializing Raft Server: /tmp/influxdb/development/raft 8090
2013/11/06 13:46:49 Couldn't contact a leader so initializing new cluster for server on port: 8090
2013/11/06 13:46:50
2013/11/06 13:46:50 Starting admin interface on port 8083
2013/11/06 13:46:50 Starting Http Api server on port 8086
Using InfluxDB's HTTP API with Python-client
$ git clone http://github.com/influxdb/influxdb-python && cd influxdb-python
$ git checkout v0.1.1
$ python --version
Python 2.7.3
$ virtualenv venv
$ source venv/bin/activate
$ python setup.py install
$ python examples/tutorial.py --host=172.17.0.57 --port=8086
Create database: example
Get list of database users: []
Add database user: smly
Get list of database users again: [{u'username': u'smly'}]
Swtich user: smly
Write points: [{'points': [['1', 1, 1.0], ['2', 2, 2.0]], 'name': 'foo', 'columns': ['column_one', 'column_two', 'column_three']}]
Queying data: select column_one from foo;
Result: [{"name":"foo","columns":["time","sequence_number","column_one"],"points":[[1383886725,2,"2"],[1383886725,1,"1"]]}]
Swtich user: root
Delete database: example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters