supp:influxdb:start
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| supp:influxdb:start [2019/07/09 07:08] – created admin | supp:influxdb:start [2019/07/09 15:09] (current) – [Common Commands] admin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== InfluxDB ====== | ====== InfluxDB ====== | ||
| + | |||
| + | ===== Concepts ===== | ||
| InfluxDB is a time series database. The official documentation provides all necessary information for using this special kind of database. | InfluxDB is a time series database. The official documentation provides all necessary information for using this special kind of database. | ||
| Line 20: | Line 22: | ||
| * tag set | * tag set | ||
| * retention policy | * retention policy | ||
| + | |||
| + | |||
| + | For relational database users: | ||
| + | |||
| + | tags are like key attributes inducing index creation. The only attribute type for tags is string. Fields are not indexed but can be of four different types: float, integer, string, Boolean. | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ===== Download and install NOAA sample data ===== | ||
| + | |||
| + | * https:// | ||
| + | |||
| + | <code bash create_and_fill_NOAA_water_db.sh> | ||
| + | |||
| + | # rb: 2019-07-09 | ||
| + | # BASH shell script, | ||
| + | # copied from https:// | ||
| + | |||
| + | # open influx | ||
| + | influx -precision rfc3339 -execute | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== Data Exploration, | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | ===== Common Commands ===== | ||
| + | |||
| + | < | ||
| + | |||
| + | show databases | ||
| + | |||
| + | use NOAA_water_database | ||
| + | |||
| + | show measurements | ||
| + | |||
| + | SELECT COUNT(" | ||
| + | |||
| + | SELECT * FROM h2o_feet LIMIT 5 | ||
| + | |||
| + | show series | ||
| + | |||
| + | show tag keys | ||
| + | |||
| + | show field keys | ||
| + | |||
| + | |||
| + | |||
| + | create database bla | ||
| + | |||
| + | use bla | ||
| + | |||
| + | show measurements | ||
| + | |||
| + | drop database bla | ||
| + | |||
| + | </ | ||
supp/influxdb/start.1562656117.txt.gz · Last modified: 2019/07/09 07:08 by admin
