mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-19 13:39:21 +00:00
add vendoring with go dep
This commit is contained in:
13
vendor/github.com/influxdata/influxdb/stress/v2/iql/default.iql
generated
vendored
Normal file
13
vendor/github.com/influxdata/influxdb/stress/v2/iql/default.iql
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE DATABASE stress
|
||||
|
||||
GO INSERT cpu
|
||||
cpu,
|
||||
host=server-[int inc(0) 100000],location=us-west
|
||||
value=[int rand(100) 0]
|
||||
10000000 10s
|
||||
|
||||
GO QUERY cpu
|
||||
SELECT count(value) FROM cpu WHERE %t
|
||||
DO 250
|
||||
|
||||
WAIT
|
||||
45
vendor/github.com/influxdata/influxdb/stress/v2/iql/file.iql
generated
vendored
Normal file
45
vendor/github.com/influxdata/influxdb/stress/v2/iql/file.iql
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
CREATE DATABASE thing
|
||||
|
||||
CREATE DATABASE thing2
|
||||
|
||||
SET Database [thing]
|
||||
|
||||
SET Precision [s]
|
||||
|
||||
GO INSERT mockCpu
|
||||
cpu,
|
||||
host=server-[float inc(0) 10000],loc=[us-west|us-east|eu-north]
|
||||
value=[int inc(100) 0]
|
||||
100000 10s
|
||||
|
||||
GO QUERY mockCpu
|
||||
SELECT mean(value) FROM cpu WHERE host='server-1'
|
||||
DO 10
|
||||
|
||||
WAIT
|
||||
|
||||
SET DATABASE [thing2]
|
||||
|
||||
GO INSERT devices
|
||||
devices,
|
||||
city=[str rand(8) 100],country=[str rand(8) 25],device_id=[str rand(10) 100]
|
||||
lat=[float rand(90) 0],lng=[float rand(120) 0],temp=[float rand(40) 0]
|
||||
100000 10s
|
||||
|
||||
GO INSERT devices2
|
||||
devices2,
|
||||
city=[str rand(8) 100],country=[str rand(8) 25],device_id=[str rand(10) 100]
|
||||
lat=[float rand(90) 0],lng=[float rand(120) 0],temp=[float rand(40) 0]
|
||||
100000 10s
|
||||
|
||||
GO QUERY fooName
|
||||
SELECT count(temp) FROM devices WHERE temp > 30
|
||||
DO 10
|
||||
|
||||
WAIT
|
||||
|
||||
DROP DATABASE thing
|
||||
|
||||
DROP DATABASE thing2
|
||||
|
||||
WAIT
|
||||
Reference in New Issue
Block a user