#,measurement,就相當於關系數據庫中的table,他就是tag,field,time的容器;
#,對於influxDb的measurement來說,field是必須的,並且不能根據field來排序;
#,Tag是可選的,tag可以用來做索引,tag是以字符串的形式存放的;
#,retention policy,保留策略,用於決定要保留多久的數據,保存幾個備份,以及集群的策略等;
#,series,
a
series
is the collection of data that share a retention policy, measurement, and tag set,
比如對於下面這個measurement,
name:
census
-————————————
time location scientist butterflies honeybees
2015-08-18T00:00:00Z 1 langstroth 12 23
2015-08-18T00:00:00Z 1 perpetua 1 30
2015-08-18T00:06:00Z 1 langstroth 11 28
2015-08-18T00:06:00Z 1 perpetua 3 28
2015-08-18T05:54:00Z 2 langstroth 2 11
2015-08-18T06:00:00Z 2 langstroth 1 10
2015-08-18T06:06:00Z 2 perpetua 8 23
2015-08-18T06:12:00Z 2 perpetua 7 22
-————————————
time location scientist butterflies honeybees
2015-08-18T00:00:00Z 1 langstroth 12 23
2015-08-18T00:00:00Z 1 perpetua 1 30
2015-08-18T00:06:00Z 1 langstroth 11 28
2015-08-18T00:06:00Z 1 perpetua 3 28
2015-08-18T05:54:00Z 2 langstroth 2 11
2015-08-18T06:00:00Z 2 langstroth 1 10
2015-08-18T06:06:00Z 2 perpetua 8 23
2015-08-18T06:12:00Z 2 perpetua 7 22
他有下面這四個series
Arbitrary series number | Retention policy | Measurement | Tag set |
---|---|---|---|
series 1 | default |
census |
location = 1 ,scientist = langstroth |
series 2 | default |
census |
location = 2 ,scientist = langstroth |
series 3 | default |
census |
location = 1 ,scientist = perpetua |
series 4 | default |
census |
location = 2 ,scientist = perpetua |
這個其實比較好理解,其實一個series就是一個測點,或者說一條曲線,那么retention policy, measurement, tagset就共同組成了一個定位測點序列的唯一標識。
Understanding the concept of a series is essential when designing your
schema
and when working with your data in InfluxDB.
#,point,就是某個series的同一個時刻的多個field的value,就組成了一個point;其實就是一般曲線上的一個點。
#,InfluxDb不需要做schema定義,這意味着你可以隨意的添加
measurements, tags, and fields at any time,