Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
169 commits
Select commit Hold shift + click to select a range
fd14402
delete codes for resource confirmation
54liuyao Jan 30, 2024
6232119
Revert "delete codes for resource confirmation"
54liuyao Jan 30, 2024
c8f6ff2
enh: add db parameters
huskar-t Apr 13, 2024
46b6bd2
feat: stmt2 init
huskar-t Oct 16, 2024
ae0cc5e
feat: stmt2 init
huskar-t Oct 21, 2024
2cbe1a3
feat: stmt2 init
huskar-t Oct 24, 2024
225b990
feat: stmt2 init
huskar-t Oct 25, 2024
995be09
test:support tsbs_load_tdengineStmt2
Oct 28, 2024
8149931
test:support tsbs_load_tdengineStmt2
Oct 28, 2024
dbcf4c3
Merge branch 'feat/xftan/TD-32213-stmt2' of github.com:taosdata/tsbs …
Oct 28, 2024
a7c4082
feat: stmt2 init
huskar-t Oct 30, 2024
189579b
Merge branch 'feat/xftan/TD-32213-stmt2' of github.com:taosdata/tsbs …
huskar-t Oct 30, 2024
a47a683
fix: check fetch raw block error
huskar-t Nov 27, 2024
c2531cb
test:support tsbs_load_tdengineStmt2
Dec 9, 2024
acf5e09
test:support tsbs_load_tdengineStmt2
Dec 10, 2024
e09a5b8
feat:support client and server on the same machine
tomchon Dec 27, 2024
fec576f
feat:support client and server on the same machine
tomchon Dec 27, 2024
428091b
fix: update driver-go version
huskar-t Jan 2, 2025
c66bb6d
BULK_DATA_DIR
tomchon Jan 2, 2025
7eaa8cc
feat:add go path to system path
tomchon Jan 2, 2025
a14db88
feat:add go path to system path
tomchon Jan 2, 2025
0e6ecb8
feat:add go path to system path
tomchon Jan 2, 2025
05fe654
feat:add go path to system path
tomchon Jan 2, 2025
7ae0681
feat:add go path to system path
tomchon Jan 2, 2025
527b5e8
feat:add go path to system path
tomchon Jan 2, 2025
04046cc
feat:add go path to system path
tomchon Jan 3, 2025
73e0d7c
feat:support client and server on the same machine
tomchon Jan 3, 2025
76b5620
modify default test case scenario to cpu in test.ini
tomchon Jan 16, 2025
8549de3
set tdengine branch to main
tomchon Jan 16, 2025
8b3b9d6
Resolved the issue of failure after three restarts within the default…
tomchon Feb 6, 2025
ea18e17
reload service
tomchon Feb 6, 2025
9b8d783
修改调用influxdb3接口
minhuinie Feb 19, 2025
9a62199
enh:support tsbs_load_tdengineStmt2
Feb 19, 2025
50b75b9
Merge branch 'feat/xftan/TD-32213-stmt2' of github.com:taosdata/tsbs …
Feb 19, 2025
3789896
feat: add proxy configuration script and update test case handling
tomchon Feb 20, 2025
ce737a3
Update scripts/tsdbComp/installTsbsCommand.sh
feici02 Feb 20, 2025
36b363f
fix: update Go installation script to use version 1.17.13 and add MD5…
tomchon Feb 20, 2025
31ece1b
fix: update logging commands in tsdbComparison.sh to include caseType…
tomchon Feb 20, 2025
b2e4e82
feat: generate csv data
huskar-t Feb 21, 2025
e77530f
fix: correct variable names in load and query scripts and add logging…
tomchon Feb 23, 2025
e215ee8
fix: add error handling to installation tdengine in installEnv.sh
tomchon Feb 23, 2025
125f98b
fix: improve error handling and logging in installation scripts
tomchon Feb 23, 2025
932b89c
enh: automatically generate column numbers
huskar-t Feb 24, 2025
eeabeb7
Merge pull request #92 from taosdata/feat/xftan/TS-4924/csv
zitsen Feb 24, 2025
8c31430
fix: enhance pip3 installation function to handle multiple packages a…
tomchon Feb 24, 2025
f9c7d7c
Merge pull request #93 from taosdata/fix/quick/TS-6044
tomchon Feb 24, 2025
af507d3
Merge branch 'enh/chr-td-33357' into test/influxdb3
minhuinie Feb 25, 2025
439dd98
调整运行influxdb3
Feb 25, 2025
0786054
Fix: Update the installation script to unset the client IP when testi…
tomchon Feb 25, 2025
54f3507
fix: optimize memory detection and make command usage in installEnv.sh
tomchon Feb 25, 2025
c9af19f
fix: simplify installation command in installEnv.sh
tomchon Feb 25, 2025
076c743
Merge pull request #94 from taosdata/fix/quick/TS-6044
tomchon Feb 25, 2025
7190be4
将参数都调整到test.ini, 增加load stmt2支持
Feb 26, 2025
eebf2a7
增加查询时生成数据的打印信息
minhuinie Feb 26, 2025
3f7532b
修改iot avg-daily-driving-session 的查询语句
minhuinie Feb 27, 2025
17e1095
增加stmt2和influxdb3的load,query编译
minhuinie Feb 27, 2025
132ee3f
Merge branch 'enh/add-influxdb3.0' into feat/xftan/TD-32213-stmt2
tomchon Feb 27, 2025
a97dcf9
Merge pull request #96 from taosdata/feat/xftan/TD-32213-stmt2
tomchon Feb 27, 2025
fdec07c
merge stmt2
minhuinie Feb 27, 2025
8b79d82
Merge pull request #97 from taosdata/test/influxdb3
tomchon Feb 27, 2025
8b8645e
feat: support influx3
huskar-t Feb 27, 2025
6a26615
fix: fix import
huskar-t Feb 27, 2025
5753bda
支持format 为influx3 和 influx
minhuinie Feb 27, 2025
fd69f0b
format=influx时,在query/load前重启Influxdb
minhuinie Feb 27, 2025
f9a04a7
修改influxdb1.8的数据路径
minhuinie Feb 27, 2025
34428ef
refactor: improve script structure and logging in query scripts
tomchon Feb 27, 2025
5113ec2
复制Influxdb加载程序
minhuinie Feb 27, 2025
05b2d00
Merge pull request #99 from taosdata/fix/log-error
minhuinie Feb 28, 2025
0366086
重构配置文件
minhuinie Feb 28, 2025
a950ec1
merge branch enh/add_influxdb3
minhuinie Feb 28, 2025
ad17c88
重构参数,并增加日志
minhuinie Feb 28, 2025
39e6f85
重构参数
minhuinie Feb 28, 2025
855bbce
Merge pull request #98 from taosdata/test/influxdb3
minhuinie Feb 28, 2025
cd9715b
增加重启
minhuinie Feb 28, 2025
87d5552
增加参数
minhuinie Mar 1, 2025
81830c1
Merge pull request #100 from taosdata/test/influxdb3
minhuinie Mar 1, 2025
7a43950
修改TDengine查询时的bug
minhuinie Mar 1, 2025
eb2fb27
Merge pull request #101 from taosdata/test/influxdb3
minhuinie Mar 1, 2025
fa48273
重构报告生成脚本,合并报告功能,删除冗余代码
tomchon Mar 4, 2025
411080c
Merge pull request #102 from taosdata/fix/generate-png
minhuinie Mar 4, 2025
685d743
增加Install influxdb的脚本,增加load_time_scale参数
minhuinie Mar 4, 2025
563210c
Merge branch 'enh/add-influxdb3.0' into test/influxdb3
minhuinie Mar 4, 2025
2ee9d36
fix: support tdengine stmt2
tomchon Mar 4, 2025
7464dd8
Merge pull request #103 from taosdata/fix/generate-png
tomchon Mar 4, 2025
5cac2e8
修改注释和配置文件中的说明
minhuinie Mar 5, 2025
b01efdc
fix: set matplotlib to use non-interactive backend for report generation
tomchon Mar 5, 2025
594091e
Merge pull request #106 from taosdata/fix/generate-png
tomchon Mar 5, 2025
ce14b62
修改安装脚本和调度脚本
minhuinie Mar 5, 2025
98745cd
Merge pull request #107 from taosdata/test/influxdb3
minhuinie Mar 5, 2025
211cd93
feat: refactor Python environment setup and add report generation scr…
tomchon Mar 5, 2025
b63c1f0
Merge branch 'enh/add-influxdb3.0' into enh/add-python-env
tomchon Mar 5, 2025
9ebd1c1
Merge pull request #108 from taosdata/enh/add-python-env
minhuinie Mar 5, 2025
647271c
重命名脚本文件
minhuinie Mar 5, 2025
bbde5ac
Merge pull request #109 from taosdata/test/influxdb3
minhuinie Mar 5, 2025
ddeff96
feat: add input file existence check and database type validation in …
tomchon Mar 6, 2025
b95d08f
feat: add input file existence check and database type validation in …
tomchon Mar 6, 2025
0264a01
修改测试中的问题
minhuinie Mar 6, 2025
1aa3470
改为tsdb_comparison.sh
minhuinie Mar 6, 2025
458049f
Merge pull request #111 from taosdata/test/influxdb3
tomchon Mar 6, 2025
f0bf8e8
Merge pull request #110 from taosdata/fix/generate-png-1
tomchon Mar 6, 2025
ff25b65
influxdb3启动时增加路径信息
minhuinie Mar 6, 2025
c7dc742
Merge pull request #112 from taosdata/test/influxdb3
tomchon Mar 6, 2025
1518178
fix: simplify TDengine format handling in query scripts
tomchon Mar 6, 2025
3acf47c
Merge pull request #113 from taosdata/fix/stmt2-test
tomchon Mar 6, 2025
a7d091f
fix: update format handling in query test scripts
tomchon Mar 6, 2025
a397a40
Merge pull request #114 from taosdata/fix/stmt2-test
tomchon Mar 6, 2025
646cc9a
fix: improve Go environment checks and streamline TSBS installation p…
tomchon Mar 6, 2025
841e347
Merge pull request #115 from taosdata/fix/stmt2-test
minhuinie Mar 6, 2025
2ecca57
fix: update result directory paths and streamline format handling in …
tomchon Mar 6, 2025
683e13f
check glibc version
minhuinie Mar 6, 2025
9c5293e
fix: enhance error logging and correct conditional syntax in TSBS ins…
tomchon Mar 6, 2025
417acc5
Merge pull request #117 from taosdata/test/influxdb3
minhuinie Mar 6, 2025
48e3ea2
test scripts
minhuinie Mar 6, 2025
084df94
test script
minhuinie Mar 6, 2025
8d13d2e
Merge pull request #116 from taosdata/fix/stmt2-test
tomchon Mar 6, 2025
c684b50
Merge pull request #118 from taosdata/test/influxdb3
tomchon Mar 6, 2025
48dec62
fix: add return statement for Go installation check in TSBS script
tomchon Mar 6, 2025
0b37c90
fix: export result directory variables in TSBS comparison script
tomchon Mar 6, 2025
c3ae9ba
Merge pull request #119 from taosdata/fix/stmt2-test
tomchon Mar 6, 2025
92675a1
fix: filter out zero response time and adjust bar properties in charts
tomchon Mar 6, 2025
90615f8
fix: increase bar width in result chart for better visibility
tomchon Mar 6, 2025
3410261
Merge pull request #120 from taosdata/fix/stmt2-test
tomchon Mar 6, 2025
9f14b0d
influxdb3 重启增加重试; 结果文件写入记录数量
minhuinie Mar 7, 2025
17cad44
test script
minhuinie Mar 7, 2025
b155583
test scripts
minhuinie Mar 7, 2025
eab59a5
Merge pull request #121 from taosdata/test/influxdb3
tomchon Mar 7, 2025
f9e590c
fix: improve environment setup scripts for Go and TSBS installation
taos-support Mar 7, 2025
44fec90
fix: add log directory to .gitignore for cleaner repository
taos-support Mar 7, 2025
637202a
fix: update TSBS installation script to log binaries location
taos-support Mar 7, 2025
f99e64e
Merge pull request #122 from taosdata/fix/install-go
minhuinie Mar 7, 2025
48b6565
每次执行都安装go
minhuinie Mar 7, 2025
9e557b0
test script
minhuinie Mar 7, 2025
8016d3a
test script
minhuinie Mar 8, 2025
c5c1981
test_script
minhuinie Mar 8, 2025
6fa5f0a
test script
minhuinie Mar 10, 2025
051daab
Merge pull request #123 from taosdata/test/influxdb3
tomchon Mar 10, 2025
2f82a93
Add scenario4 to tsbs_test.sh and update help message
tomchon Mar 12, 2025
1eef709
Merge pull request #125 from taosdata/add-scenario
minhuinie Mar 12, 2025
20edf02
Log an error when a command is not found
minhuinie Mar 17, 2025
2e5b33c
Merge pull request #126 from taosdata/test/influxdb3
tomchon Mar 19, 2025
aac7fd5
Modify the default parameters
minhuinie Mar 19, 2025
96d177d
test scripts
minhuinie Mar 20, 2025
8c5e458
get_db_set
minhuinie Mar 20, 2025
f14e23a
test scripts
minhuinie Mar 20, 2025
130983c
test scripts
minhuinie Mar 20, 2025
c48ea86
test scripts
minhuinie Mar 20, 2025
0d87c1c
test scripts
minhuinie Mar 20, 2025
1ab2bfd
test scripts
minhuinie Mar 20, 2025
73800a4
add help message
minhuinie Mar 20, 2025
aa15d58
Merge pull request #127 from taosdata/test/influxdb3
tomchon Mar 20, 2025
31baf92
Merge pull request #104 from taosdata/enh/add-influxdb3.0
tomchon Mar 20, 2025
29cc521
test timescaledb
minhuinie Mar 21, 2025
24a5f12
Merge pull request #128 from taosdata/enh/add-influxdb3.0
tomchon Mar 21, 2025
0a212f1
Modify the default scene
minhuinie Mar 21, 2025
80aee50
Merge pull request #129 from taosdata/enh/add-influxdb3.0
tomchon Apr 2, 2025
b6240bc
set default params for quick test
minhuinie Apr 3, 2025
1dee8a0
add diskusage chart
minhuinie Apr 17, 2025
f38811d
remove checking glibc version
minhuinie Apr 17, 2025
19672f8
add influxdb3 auth token
minhuinie Apr 18, 2025
e4111e4
config dataDir in taos.cfg
minhuinie Apr 18, 2025
4b79fda
use env INFLUXDB3_AUTH_TOKEN
minhuinie Apr 18, 2025
8f43aa4
Update scripts/tsdbComp/load_report.py
minhuinie Apr 19, 2025
7f40e60
Merge pull request #130 from taosdata/enh/add-influxdb3.0
tomchon Apr 19, 2025
fe100d6
adjust disk_usage_nowal position in load_input.csv
minhuinie Apr 21, 2025
7f18036
Merge pull request #131 from taosdata/enh/add-influxdb3.0
tomchon Apr 22, 2025
43a9b06
update display name in chart
minhuinie Apr 22, 2025
7da5a4c
Merge pull request #132 from taosdata/enh/add-influxdb3.0
tomchon Apr 28, 2025
1be54dd
Merge pull request #134 from taosdata/tomchon-patch-2
tomchon Jan 4, 2026
8ca9097
fix: add db_parameters to loading script (#135)
tomchon Jan 4, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,7 @@
.vscode
*~

scripts/tsdbComp/log/*

# High Dynamic Range (HDR) Histogram files
*.hdr
66 changes: 66 additions & 0 deletions cmd/tsbs_generate_queries/databases/influx3/common.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
package influx3

import (
"fmt"
"net/url"
"time"

"github.com/taosdata/tsbs/cmd/tsbs_generate_queries/uses/devops"
"github.com/taosdata/tsbs/cmd/tsbs_generate_queries/uses/iot"
"github.com/taosdata/tsbs/cmd/tsbs_generate_queries/utils"
"github.com/taosdata/tsbs/pkg/query"
)

// BaseGenerator contains settings specific for Influx database.
type BaseGenerator struct {
}

// GenerateEmptyQuery returns an empty query.HTTP.
func (g *BaseGenerator) GenerateEmptyQuery() query.Query {
return query.NewHTTP()
}

// fillInQuery fills the query struct with data.
func (g *BaseGenerator) fillInQuery(qi query.Query, humanLabel, humanDesc, influxql string) {
v := url.Values{}
v.Set("q", influxql)
q := qi.(*query.HTTP)
q.HumanLabel = []byte(humanLabel)
q.RawQuery = []byte(influxql)
q.HumanDescription = []byte(humanDesc)
q.Method = []byte("GET")
q.Path = []byte(fmt.Sprintf("/api/v3/query_influxql?%s", v.Encode()))
q.Body = nil
}

// NewDevops creates a new devops use case query generator.
func (g *BaseGenerator) NewDevops(start, end time.Time, scale int) (utils.QueryGenerator, error) {
core, err := devops.NewCore(start, end, scale)

if err != nil {
return nil, err
}

devops := &Devops{
BaseGenerator: g,
Core: core,
}

return devops, nil
}

// NewIoT creates a new iot use case query generator.
func (g *BaseGenerator) NewIoT(start, end time.Time, scale int) (utils.QueryGenerator, error) {
core, err := iot.NewCore(start, end, scale)

if err != nil {
return nil, err
}

devops := &IoT{
BaseGenerator: g,
Core: core,
}

return devops, nil
}
149 changes: 149 additions & 0 deletions cmd/tsbs_generate_queries/databases/influx3/devops.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
package influx3

import (
"fmt"
"strings"
"time"

"github.com/taosdata/tsbs/cmd/tsbs_generate_queries/databases"
"github.com/taosdata/tsbs/cmd/tsbs_generate_queries/uses/devops"
"github.com/taosdata/tsbs/pkg/query"
)

// Devops produces Influx-specific queries for all the devops query types.
type Devops struct {
*BaseGenerator
*devops.Core
}

func (d *Devops) getHostWhereWithHostnames(hostnames []string) string {
hostnameClauses := []string{}
for _, s := range hostnames {
hostnameClauses = append(hostnameClauses, fmt.Sprintf("hostname = '%s'", s))
}

combinedHostnameClause := strings.Join(hostnameClauses, " or ")
return "(" + combinedHostnameClause + ")"
}

func (d *Devops) getHostWhereString(nHosts int) string {
hostnames, err := d.GetRandomHosts(nHosts)
databases.PanicIfErr(err)
return d.getHostWhereWithHostnames(hostnames)
}

func (d *Devops) getSelectClausesAggMetrics(agg string, metrics []string) []string {
selectClauses := make([]string, len(metrics))
for i, m := range metrics {
selectClauses[i] = fmt.Sprintf("%s(%s)", agg, m)
}

return selectClauses
}

// GroupByTime selects the MAX for numMetrics metrics under 'cpu',
// per minute for nhosts hosts,
// e.g. in pseudo-SQL:
//
// SELECT minute, max(metric1), ..., max(metricN)
// FROM cpu
// WHERE (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
// AND time >= '$HOUR_START' AND time < '$HOUR_END'
// GROUP BY minute ORDER BY minute ASC
func (d *Devops) GroupByTime(qi query.Query, nHosts, numMetrics int, timeRange time.Duration) {
interval := d.Interval.MustRandWindow(timeRange)
metrics, err := devops.GetCPUMetricsSlice(numMetrics)
databases.PanicIfErr(err)
selectClauses := d.getSelectClausesAggMetrics("max", metrics)
whereHosts := d.getHostWhereString(nHosts)

humanLabel := fmt.Sprintf("Influx %d cpu metric(s), random %4d hosts, random %s by 1m", numMetrics, nHosts, timeRange)
humanDesc := fmt.Sprintf("%s: %s", humanLabel, interval.StartString())
influxql := fmt.Sprintf("SELECT %s from cpu where %s and time >= '%s' and time < '%s' group by time(1m)", strings.Join(selectClauses, ", "), whereHosts, interval.StartString(), interval.EndString())
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}

// GroupByOrderByLimit benchmarks a query that has a time WHERE clause, that groups by a truncated date, orders by that date, and takes a limit:
// SELECT date_trunc('minute', time) AS t, MAX(cpu) FROM cpu
// WHERE time < '$TIME'
// GROUP BY t ORDER BY t DESC
// LIMIT $LIMIT
func (d *Devops) GroupByOrderByLimit(qi query.Query) {
interval := d.Interval.MustRandWindow(time.Hour)
where := fmt.Sprintf("WHERE time < '%s'", interval.EndString())

humanLabel := "Influx max cpu over last 5 min-intervals (random end)"
humanDesc := fmt.Sprintf("%s: %s", humanLabel, interval.StartString())
influxql := fmt.Sprintf(`SELECT max(usage_user) from cpu %s group by time(1m) limit 5`, where)
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}

// GroupByTimeAndPrimaryTag selects the AVG of numMetrics metrics under 'cpu' per device per hour for a day,
// e.g. in pseudo-SQL:
//
// SELECT AVG(metric1), ..., AVG(metricN)
// FROM cpu
// WHERE time >= '$HOUR_START' AND time < '$HOUR_END'
// GROUP BY hour, hostname ORDER BY hour, hostname
func (d *Devops) GroupByTimeAndPrimaryTag(qi query.Query, numMetrics int) {
metrics, err := devops.GetCPUMetricsSlice(numMetrics)
databases.PanicIfErr(err)
interval := d.Interval.MustRandWindow(devops.DoubleGroupByDuration)
selectClauses := d.getSelectClausesAggMetrics("mean", metrics)

humanLabel := devops.GetDoubleGroupByLabel("Influx", numMetrics)
humanDesc := fmt.Sprintf("%s: %s", humanLabel, interval.StartString())
influxql := fmt.Sprintf("SELECT %s from cpu where time >= '%s' and time < '%s' group by time(1h),hostname", strings.Join(selectClauses, ", "), interval.StartString(), interval.EndString())
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}

// MaxAllCPU selects the MAX of all metrics under 'cpu' per hour for nhosts hosts,
// e.g. in pseudo-SQL:
//
// SELECT MAX(metric1), ..., MAX(metricN)
// FROM cpu WHERE (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
// AND time >= '$HOUR_START' AND time < '$HOUR_END'
// GROUP BY hour ORDER BY hour
func (d *Devops) MaxAllCPU(qi query.Query, nHosts int, duration time.Duration) {
interval := d.Interval.MustRandWindow(duration)
whereHosts := d.getHostWhereString(nHosts)
selectClauses := d.getSelectClausesAggMetrics("max", devops.GetAllCPUMetrics())

humanLabel := devops.GetMaxAllLabel("Influx", nHosts)
humanDesc := fmt.Sprintf("%s: %s", humanLabel, interval.StartString())
influxql := fmt.Sprintf("SELECT %s from cpu where %s and time >= '%s' and time < '%s' group by time(1h)", strings.Join(selectClauses, ","), whereHosts, interval.StartString(), interval.EndString())
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}

// LastPointPerHost finds the last row for every host in the dataset
func (d *Devops) LastPointPerHost(qi query.Query) {
humanLabel := "Influx last row per host"
humanDesc := humanLabel + ": cpu"
influxql := "SELECT * from cpu group by \"hostname\" order by time desc limit 1"
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}

// HighCPUForHosts populates a query that gets CPU metrics when the CPU has high
// usage between a time period for a number of hosts (if 0, it will search all hosts),
// e.g. in pseudo-SQL:
//
// SELECT * FROM cpu
// WHERE usage_user > 90.0
// AND time >= '$TIME_START' AND time < '$TIME_END'
// AND (hostname = '$HOST' OR hostname = '$HOST2'...)
func (d *Devops) HighCPUForHosts(qi query.Query, nHosts int) {
interval := d.Interval.MustRandWindow(devops.HighCPUDuration)

var hostWhereClause string
if nHosts == 0 {
hostWhereClause = ""
} else {
hostWhereClause = fmt.Sprintf("and %s", d.getHostWhereString(nHosts))
}

humanLabel, err := devops.GetHighCPULabel("Influx", nHosts)
databases.PanicIfErr(err)
humanDesc := fmt.Sprintf("%s: %s", humanLabel, interval.StartString())
influxql := fmt.Sprintf("SELECT * from cpu where usage_user > 90.0 %s and time >= '%s' and time < '%s'", hostWhereClause, interval.StartString(), interval.EndString())
d.fillInQuery(qi, humanLabel, humanDesc, influxql)
}
Loading