InfluxDB学习笔记

首先安装InfluxDB,安装很简单的
参考 https://docs.influxdata.com/influxdb/v0.13/introduction/installation/
wget https://dl.influxdata.com/influxdb/releases/influxdb-0.13.0.x86_64.rpm
sudo yum localinstall influxdb-0.13.0.x86_64.rpm
安装好后浏览器访问
http://192.168.1.22:8083
ip地址换成你的服务器的安装地址

查询_internal数据库,mean是平均值还是中位数待查
select mean(Frees) from runtime where time > now() - 20s group by time(1s) fill(-100)
查询最新数据
select * from runtime order by time desc limit 1


发表于:2016-08-16 10:36:26

原文链接(转载请保留): http://www.multisilicon.com/blog/a32264221.html

友情链接: MICROIC
首页