This file is indexed.

/usr/share/gocode/src/github.com/influxdata/influxdb/stress/v2/iql/file.iql is in golang-github-influxdb-influxdb-dev 1.1.1+dfsg1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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