SimpleDao
influxdb安装
2019-05-06, 访问数: 934

influxdb

  1. wget https://dl.influxdata.com/influxdb/releases/influxdb-1.2.4.x86_64.rpm
  2. sudo yum localinstall influxdb-1.2.4.x86_64.rpm

chronograf

  1. wget https://dl.influxdata.com/chronograf/releases/chronograf-1.3.2.1.x86_64.rpm
  2. sudo yum localinstall chronograf-1.3.2.1.x86_64.rpm

influxdb配置文件

  1. /etc/influxdb/influxdb.conf

命令

  1. service influxdb start

创建数据保存策略

  1. CREATE RETENTION POLICY "roll" ON "dc" DURATION 3d REPLICATION 1 DEFAULT
  2. ALTER RETENTION POLICY "roll" ON "dc" DURATION 3d REPLICATION 1 SHARD DURATION 6h DEFAULT

常用命令

  1. # 查看series
  2. influx -port 10086 -database dc -execute 'show series'