docker run -d -p 8083:8083 -p 8086:8086 --name my_influxdb influxdb

go get -v github.com/influxdata/influx-stress/cmd/…

go run /opt/go/gopath/src/github.com/influxdata/influx-stress/cmd/influx-stress/main.go insert cpu,host=10.9.44.11,location=us-west,id=myid busy=100,idle=10,random=5i -r 30s

Write Throughput: 199411
Points Written: 6000000

在这里插入图片描述

SELECT count(busy) FROM “cpu”

SELECT * FROM “cpu” limit 10

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐