Presentation is loading. Please wait.

Presentation is loading. Please wait.

Distributed Time Series Database

Similar presentations


Presentation on theme: "Distributed Time Series Database"— Presentation transcript:

1 Distributed Time Series Database
InfluxDB/openTSDB

2 TSDB Time series database Time series data InfluxDB
It is a software system that is optimized for handling time series data, arrays of numbers indexed by time (a datetime or a datetime range) Time series data A time series is a sequence of data points, measured typically at successive points in time spaced at uniform time intervals InfluxDB An open-source distributed time series database with no external dependencies InfluxDB is a time series, metrics, and analytics database Written in Golang (Google programming language) InfluxDB is targeted at use cases for DevOps, metrics, sensor data, and real-time analytics.

3 InfluxDB KeyFeatures SQL like query language
HTTP(S) API and client API (python, ruby, php) Store billions of data points Database managed retention policies for data Built in management interface InfluxDB is schemaless so the series and columns get created on the fly

4 Design Goals Stores metrics data (like response times and cpu load. i.e. what you’d put into Graphite) Stores events data (like exceptions, user analytics, or business analytics) HTTP(S) interface for reading and writing data. Shouldn’t require additional server code to be useful directly from the browser. Horizontally scalable. Simple to install and manage. Shouldn’t require setting up external dependencies like Zookeeper and Hadoop. Compute percentiles and other functions on the fly. Automatically compute common queries continuously in the background

5 Reading and writing data
Via HTTP API Most of the client libraries use this API. Simply send a POST to /db/<database>/series?u=<user>&p=<pass>. The post data shall be in the JSON format like: [ { "name" : "hd_used", "columns" : ["value", "host", "mount"], "points" : [ [23.2, "serverA", "/mnt"] ] } ] InfluxDB will assign a time and sequence number for every point written.

6 Data Organization Databases (like in MySQL, Postgres, etc)
Time series (kind of like tables) Points or events (kind of like rows)

7 InfluxDB is distributed, the order of points is only guaranteed by timestamp.
[ { "name": "log_lines", "columns": ["time", "line"], "points": [ [ , "here's some useful log info"] ] } ] The timestamp is a microsecond epoch By default time precision is assumed to be milliseconds.

8 Login and create DB point your browser to localhost:8083.
The InfluxDB HTTP API runs on port 8086 by default

9

10

11

12 Commandline like mySQL
From CLI /opt/influxdb/influx CREATE DATABASE mydb SHOW DATABASES name: databases name mydb Use mydb INSERT cpu,host=serverA,region=us_west value=0.64 SELECT * FROM cpu INSERT temperature,machine=unit42,type=assembly external=25,internal=37 select * from temperature

13 openTSDB OpenTSDB is a specialized database to store sequence of data points generated over a period of time in uniform time interval. It uses HBase as the underlying database in order to handle huge amounts of data is designed to handle terabytes of data and still maintain very good performance levels for various types of monitoring needs A typical time series record consists of a metric name, the timestamp and the associated

14 openTSDB Has three responsibilities
Collecting Loading/storing Querying data The main objective of this architecture is to write and read data points into Hbase Properties Scalability Availability and consistency HBase is used for linear scaling, automatic replication and efficient scans.

15 openTSDB - Architecture
How it works? See details from


Download ppt "Distributed Time Series Database"

Similar presentations


Ads by Google