How to distinguish between tag and field in influxdb in?

Getting started slowly, influxdb simpler than mysql, because just getting started, it still takes time to understand.

The following system is good, fast as finished.

https://blog.hhui.top/hexblog/2019/07/23/190723-Influx-Sql%E7%B3%BB%E5%88%97%E6%95%99%E7%A8%8B%E5%9B%9B%EF%BC%9Aseries-point-tag-field/

influxdb a record in point, can be divided into three categories, there must be a time (time), string type of tag, as well as other members of the field; and the series is a measurement of the preservation strategies and tag set forms;

Query tag a table.

show tag keys on AliK8sEventer from events;

name: events
tagKey
------
cluster_name
component
hostname
kind
namespace_name
object_name
pod_id
reason
type
uid

Query field of a table.

show field keys on AliK8sEventer from events;

name: events
fieldKey fieldType
-------- ---------
message string

Guess you like

Origin www.cnblogs.com/aguncn/p/12603602.html