INFLUXDB AND GRAFANA
figh$ng	together	with	IoT	data	a1ack
Ivan	Vaskevych	@
Path	
What	
Why	
How	
Plot	some	graphs.	Live!
InfluxDB	
MMXIII
Top	ranking	
source:	h1ps://db-engines.com/en/ranking/$me+series+dbms
Ranking	Driven	(“R&D”	J)	
source:	h1ps://db-engines.com/en/ranking/$me+series+dbms
Why	we	use	it
Coming	soon…
Just	how	fast?	
•  Single-node	c4.8xlarge	AWS	server	(36	vCPUs,	
60GB	of	RAM)	
•  Pushing	data	from	another	instance	in	AWS	
•  Result:	
loaded	3888000	items	in	9.311872sec	with	32	
workers	(mean	rate	417531.503762/sec,	
180.18MB/sec	from	stdin)
InfluxDB	vs	PostgreSQL.	Fight!	
•  Aggrega$on:	
SELECT	avg(value),	stddev(value)	FROM	measurements	
WHERE	type	=	'PM25'	AND	$me	BETWEEN	'XXX'	AND	
'YYY';	
	
•  Count:	
SELECT	count(*)	FROM	measurements	WHERE	type	=	
'PM25'	AND	$me	BETWEEN	'XXX'	AND	'YYY';
InfluxDB	vs	PostgreSQL
Moar	benchmark,	plz… 		
h1ps://www.influxdata.com/_resources/
Hos$ng	on	AWS	
sudo	yum	update	
sudo	reboot	
cat	<<EOF	|	sudo	tee	/etc/yum.repos.d/influxdb.repo	
[influxdb]	
name	=	InfluxDB	Repository	-	RHEL	
baseurl	=	h1ps://repos.influxdata.com/rhel/7Server/x86_64/stable	
enabled	=	1	
gpgcheck	=	1	
gpgkey	=	h1ps://repos.influxdata.com/influxdb.key	
EOF	
sudo	yum	install	influxdb
Horizontal	scalability?
High	Availability	
influxdb-relay
Demo	$me!