Tag Archives: influxdb

Influx DB Docker

Note on fedora24 with digital ocean: firewalld is the new firewall management daemon for F24, but it’s not installed by default on d.o:
dnf install firewalld
service firewalld start
setenforce 0 # if you want to disable selinux

Also firewalld and docker can conflict, docker needs to be started after firewalld.

Installing influx on docker:

dnf install docker
service docker start
docker pull docker.io/tutum/influxdb
mkdir /var/influxdb
firewall-cmd --add-port=8083/tcp
docker run -d --name influx --volume=/var/influxdb:/data -p 8083:8083 -p 8086:8086 tutum/influxdb
docker logs influx # check that it's running ok

Getting Docker working with ansible:

pip install 'docker-py>=1.7.0' # host side

Docs:
http://docs.ansible.com/ansible/guide_docker.html
https://docs.ansible.com/ansible/docker_container_module.html
https://docs.ansible.com/ansible/docker_image_module.html

influxdb cloud setup

– create cloud server
– connect with cli client
– create user:
create user kit with password ‘good password’ with all privileges;
– auth
– create database cooldb
– create user to write data points:
create user dbwriter with password ‘good password’;
grant write on cooldb to dbwriter
– create user to read for graph making
create user dbreader
grant read on cooldb to dbreader
– send test datapoint
curl -X POST ‘https://server.influxcloud.net:8086/write?db=cooldb&u=dbwriter&p=good password’ –data-binary ‘test value=1000’