如何使用类似SQL的界面插入influxDB? [英] How do you INSERT into influxDB using the SQL-like interface?

查看:124
本文介绍了如何使用类似SQL的界面插入influxDB?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用InfluxDB上的类似SQL的接口将INSERT数据分为系列/测量值?

Is it possible to INSERT data into series / measurements using the SQL-like interface on InfluxDB?

推荐答案

是的,您只需

Yes, you can simply INSERT a Line Protocol string.

来自入门的示例:

INSERT cpu,host=serverA,region=us_west value=0.64

测量名称为cpu且标记为hostregion的点现在已被写入数据库,而测量的value0.64.

A point with the measurement name of cpu and tags host and region has now been written to the database, with the measured value of 0.64.

这篇关于如何使用类似SQL的界面插入influxDB?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆