Skip to content

Commit 9ffefbe

Browse files
authored
Change package name to questdb/tsbs (#19)
1 parent a090657 commit 9ffefbe

254 files changed

Lines changed: 821 additions & 704 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ scripts). The easiest way to get and install the Go programs is to use
124124
`go get` and then `make all` to install all binaries:
125125
```bash
126126
# Fetch TSBS and its dependencies
127-
$ go get github.com/timescale/tsbs
128-
$ cd $GOPATH/src/github.com/timescale/tsbs
127+
$ go get github.com/questdb/tsbs
128+
$ cd $GOPATH/src/github.com/questdb/tsbs
129129
$ make
130130
```
131131

@@ -413,12 +413,12 @@ the results.
413413
### Devops / cpu-only
414414
|Query type|Description|
415415
|:---|:---|
416-
|single-groupby-1-1-1| Simple aggregrate (MAX) on one metric for 1 host, every 5 mins for 1 hour
417-
|single-groupby-1-1-12| Simple aggregrate (MAX) on one metric for 1 host, every 5 mins for 12 hours
418-
|single-groupby-1-8-1| Simple aggregrate (MAX) on one metric for 8 hosts, every 5 mins for 1 hour
419-
|single-groupby-5-1-1| Simple aggregrate (MAX) on 5 metrics for 1 host, every 5 mins for 1 hour
420-
|single-groupby-5-1-12| Simple aggregrate (MAX) on 5 metrics for 1 host, every 5 mins for 12 hours
421-
|single-groupby-5-8-1| Simple aggregrate (MAX) on 5 metrics for 8 hosts, every 5 mins for 1 hour
416+
|single-groupby-1-1-1| Simple aggregate (MAX) on one metric for 1 host, every 5 mins for 1 hour
417+
|single-groupby-1-1-12| Simple aggregate (MAX) on one metric for 1 host, every 5 mins for 12 hours
418+
|single-groupby-1-8-1| Simple aggregate (MAX) on one metric for 8 hosts, every 5 mins for 1 hour
419+
|single-groupby-5-1-1| Simple aggregate (MAX) on 5 metrics for 1 host, every 5 mins for 1 hour
420+
|single-groupby-5-1-12| Simple aggregate (MAX) on 5 metrics for 1 host, every 5 mins for 12 hours
421+
|single-groupby-5-8-1| Simple aggregate (MAX) on 5 metrics for 8 hosts, every 5 mins for 1 hour
422422
|cpu-max-all-1| Aggregate across all CPU metrics per hour over 1 hour for a single host
423423
|cpu-max-all-8| Aggregate across all CPU metrics per hour over 1 hour for eight hosts
424424
|double-groupby-1| Aggregate on across both time and host, giving the average of 1 CPU metric per host per hour for 24 hours
@@ -450,11 +450,6 @@ the results.
450450
We welcome contributions from the community to make TSBS better!
451451

452452
You can help either by opening an
453-
[issue](https://github.com/timescale/tsbs/issues) with
453+
[issue](https://github.com/questdb/tsbs/issues) with
454454
any suggestions or bug reports, or by forking this repository,
455455
making your own contribution, and submitting a pull request.
456-
457-
Before we accept any contributions, Timescale contributors need to
458-
sign the [Contributor License Agreement](https://cla-assistant.io/timescale/tsbs) (CLA).
459-
By signing a CLA, we can ensure that the community is free and confident in its
460-
ability to use your contributions.

cmd/tsbs_generate_data/main.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010

1111
// Supported use cases:
1212
// devops: scale is the number of hosts to simulate, with log messages
13-
// every log-interval seconds.
13+
//
14+
// every log-interval seconds.
15+
//
1416
// cpu-only: same as `devops` but only generate metrics for CPU
1517
package main
1618

@@ -22,11 +24,11 @@ import (
2224
"runtime/pprof"
2325

2426
"github.com/blagojts/viper"
27+
"github.com/questdb/tsbs/internal/inputs"
28+
"github.com/questdb/tsbs/internal/utils"
29+
"github.com/questdb/tsbs/pkg/data/usecases/common"
30+
"github.com/questdb/tsbs/pkg/targets/initializers"
2531
"github.com/spf13/pflag"
26-
"github.com/timescale/tsbs/internal/inputs"
27-
"github.com/timescale/tsbs/internal/utils"
28-
"github.com/timescale/tsbs/pkg/data/usecases/common"
29-
"github.com/timescale/tsbs/pkg/targets/initializers"
3032
)
3133

3234
var (

cmd/tsbs_generate_queries/databases/akumuli/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package akumuli
33
import (
44
"time"
55

6-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
7-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/utils"
8-
"github.com/timescale/tsbs/pkg/query"
6+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
7+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/utils"
8+
"github.com/questdb/tsbs/pkg/query"
99
)
1010

1111
// BaseGenerator contains settings specific for Akumuli database.

cmd/tsbs_generate_queries/databases/akumuli/devops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77
"time"
88

9-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
10-
"github.com/timescale/tsbs/pkg/query"
9+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
10+
"github.com/questdb/tsbs/pkg/query"
1111
)
1212

1313
// Devops produces Influx-specific queries for all the devops query types.

cmd/tsbs_generate_queries/databases/cassandra/common.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import (
44
"strings"
55
"time"
66

7-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
8-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/utils"
9-
internalutils "github.com/timescale/tsbs/internal/utils"
10-
"github.com/timescale/tsbs/pkg/query"
7+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
8+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/utils"
9+
internalutils "github.com/questdb/tsbs/internal/utils"
10+
"github.com/questdb/tsbs/pkg/query"
1111
)
1212

1313
// BaseGenerator contains settings specific for Cassandra database.

cmd/tsbs_generate_queries/databases/cassandra/devops.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"fmt"
55
"time"
66

7-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
8-
"github.com/timescale/tsbs/internal/utils"
9-
"github.com/timescale/tsbs/pkg/query"
7+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
8+
"github.com/questdb/tsbs/internal/utils"
9+
"github.com/questdb/tsbs/pkg/query"
1010
)
1111

1212
// TODO: Remove the need for this by continuing to bubble up errors

cmd/tsbs_generate_queries/databases/cassandra/devops_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/timescale/tsbs/pkg/query"
8+
"github.com/questdb/tsbs/pkg/query"
99
)
1010

1111
func TestDevopsGetHostWhereWithHostnames(t *testing.T) {

cmd/tsbs_generate_queries/databases/clickhouse/common.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package clickhouse
33
import (
44
"time"
55

6-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
7-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/utils"
8-
"github.com/timescale/tsbs/pkg/query"
6+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
7+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/utils"
8+
"github.com/questdb/tsbs/pkg/query"
99
)
1010

1111
// BaseGenerator contains settings specific for ClickHouse.

cmd/tsbs_generate_queries/databases/clickhouse/devops.go

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strings"
66
"time"
77

8-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
9-
"github.com/timescale/tsbs/pkg/query"
8+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
9+
"github.com/questdb/tsbs/pkg/query"
1010
)
1111

1212
// TODO: Remove the need for this by continuing to bubble up errors
@@ -76,9 +76,11 @@ const clickhouseTimeStringFormat = "2006-01-02 15:04:05"
7676
// SELECT MAX(metric1), ..., MAX(metricN)
7777
// FROM cpu
7878
// WHERE
79-
// (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
80-
// AND time >= '$HOUR_START'
81-
// AND time < '$HOUR_END'
79+
//
80+
// (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
81+
// AND time >= '$HOUR_START'
82+
// AND time < '$HOUR_END'
83+
//
8284
// GROUP BY hour
8385
// ORDER BY hour
8486
//
@@ -290,9 +292,11 @@ func (d *Devops) LastPointPerHost(qi query.Query) {
290292
// SELECT minute, max(metric1), ..., max(metricN)
291293
// FROM cpu
292294
// WHERE
293-
// (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
294-
// AND time >= '$HOUR_START'
295-
// AND time < '$HOUR_END'
295+
//
296+
// (hostname = '$HOSTNAME_1' OR ... OR hostname = '$HOSTNAME_N')
297+
// AND time >= '$HOUR_START'
298+
// AND time < '$HOUR_END'
299+
//
296300
// GROUP BY minute
297301
// ORDER BY minute ASC
298302
//

cmd/tsbs_generate_queries/databases/clickhouse/devops_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/timescale/tsbs/cmd/tsbs_generate_queries/uses/devops"
10-
"github.com/timescale/tsbs/pkg/query"
9+
"github.com/questdb/tsbs/cmd/tsbs_generate_queries/uses/devops"
10+
"github.com/questdb/tsbs/pkg/query"
1111
)
1212

1313
func TestDevopsGetHostWhereWithHostnames(t *testing.T) {

0 commit comments

Comments
 (0)