这里强烈建议先熟悉influxsql的查询语句,可参考 Data exploration using InfluxQL
定义
type Series struct {
// Name is the measurement name.
Name string
// Tags for the series.
Tags Tags
id uint64
}
type Tags struct {
id string
m map[string]string}
Series其实就是measurement和tags的组合,tags是tag key和tag value的map.这个Tags的id是如何产生的呢,其实就是对tag key和tag value编码到[]byte: tagkey1
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/4003/viewspace-2818435/ ,如需转载,请注明出处,否则将追究法律责任。