Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
InfluxDB - Ubuntu Install / Setup (as of V0.9.1)

Get and Install Latest Version of InfluxDb

wget http://influxdb.s3.amazonaws.com/influxdb_0.9.1_amd64.deb
sudo dpkg -i influxdb_0.9.1_amd64.deb

Add influx to path, because package install doesn't do it for some stupid reason

PATH=$PATH:/opt/influxdb

Start InfluxDB

sudo /etc/init.d/influxdb start

Create Admin User & First Database

influx

# Taken to influx shell
CREATE USER foo WITH PASSWORD 'bar' WITH ALL PRIVILEGES
CREATE DATABASE blah

# Check that things went swimmingly
SHOW USERS
---------------
user			admin
foo			  true

SHOW DATABASES
name: databases
---------------
name
blah

Create Read / Write Users on Specific Database

# In an Influx Shell
CREATE USER <user> WITH PASSWORD <password>

# Read / Write Privileges
GRANT READ|WRITE|ALL
    ON <database>
    TO <user>

Edit config to force HTTP authorization

sudo nano /etc/opt/influxdb/influxdb.conf
sudo /etc/init.d/influxdb restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment