数据存储模型
| points(数据点) | time(时间戳) | |
measurement(测量指标) | ||
| field(测量值 key-value) | 至少一个 | |
| tag(标签 key-value) | 零或多个 |
和MySQL对比
series是共享同一个retention policy,measurement以及tag set的数据集合
| InfluxDB | MySQL |
| measurement | table |
| points | col |
| tag | row(with index) |
| field | row |
| time | id |
关键概念
| 关键概念 | 描述 | 相关术语 |
| database | ||
| field key | ||
| field set | ||
| field value | ||
| measurement | ||
| point | ||
| retention policy | 描述了 InfluxDB 保留数据多长时间 (DURATION) 以及该数据在集群中存储了多少副本 (REPLICATION),细看:使用InfluxQL管理数据库 | InfluxDB v1.8 Documentation | |
| series | ||
| tag key | ||
| tag set | ||
| tag value | 只能是字符串 | |
| timestamp | ||
| aggregation | ||