Skip to content

Commit

Permalink
Merge branch 'main' into 23
Browse files Browse the repository at this point in the history
  • Loading branch information
hacdias authored Feb 6, 2024
2 parents fc8b02b + f855683 commit 60d4c11
Show file tree
Hide file tree
Showing 65 changed files with 271 additions and 1,762 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The infrastructure is managed using Terraform and the tooling is written in Go.

The thunderdome client is in [/cmd/thunderdome](cmd/thunderdome/README.md).
It's a command line utility that allows users to deploy and manage Thunderdome experiments.
See the [Thunderdome Client Documentation](cmd/thunderdome/README.md) for information on how to use the client and the [Experiment File Syntax](https://github.com/ipfs-shipyard/thunderdome/blob/main/cmd/thunderdome/README.md#experiment-file-syntax) to understand how to define an experiment.
See the [Thunderdome Client Documentation](cmd/thunderdome/README.md) for information on how to use the client and the [Experiment File Syntax](https://github.com/probe-lab/thunderdome/blob/main/cmd/thunderdome/README.md#experiment-file-syntax) to understand how to define an experiment.

### Thunderdome Infrastructure

Expand Down
2 changes: 1 addition & 1 deletion cmd/dealgood/experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/url"
"sync"

"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/request"
)

type ExperimentJSON struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/dealgood/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/request"
"github.com/prometheus/client_golang/prometheus"
"golang.org/x/net/http2"
)
Expand Down
4 changes: 2 additions & 2 deletions cmd/dealgood/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
"go.opentelemetry.io/otel/propagation"
"go.opentelemetry.io/otel/sdk/trace"

"github.com/ipfs-shipyard/thunderdome/pkg/filter"
"github.com/ipfs-shipyard/thunderdome/pkg/loki"
"github.com/probe-lab/thunderdome/pkg/filter"
"github.com/probe-lab/thunderdome/pkg/loki"
)

const appName = "dealgood"
Expand Down
8 changes: 4 additions & 4 deletions cmd/dealgood/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ import (
"github.com/aws/aws-sdk-go/service/sqs"
"github.com/prometheus/client_golang/prometheus"

"github.com/ipfs-shipyard/thunderdome/pkg/filter"
"github.com/ipfs-shipyard/thunderdome/pkg/loki"
"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/filter"
"github.com/probe-lab/thunderdome/pkg/loki"
"github.com/probe-lab/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/pkg/request"
)

// A RequestSource is a provider of a stream of requests that can be sent to workers.
Expand Down
2 changes: 1 addition & 1 deletion cmd/dealgood/worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"sync"
"time"

"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/request"
"go.opentelemetry.io/otel"
"go.opentelemetry.io/otel/attribute"
"go.opentelemetry.io/otel/propagation"
Expand Down
4 changes: 2 additions & 2 deletions cmd/ironbar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/ipfs-shipyard/thunderdome/pkg/run"
"github.com/probe-lab/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/pkg/run"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/ironbar/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ import (
"github.com/gorilla/mux"
"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/ironbar/api"
"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/cmd/ironbar/api"
"github.com/probe-lab/thunderdome/pkg/prom"
)

type Server struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/logtool/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ logtool is a tool for working with gateway logs

Install via the go command:

go install github.com/ipfs-shipyard/thunderdome/cmd/logtool
go install github.com/probe-lab/thunderdome/cmd/logtool


## Usage
Expand Down
8 changes: 4 additions & 4 deletions cmd/logtool/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (

"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/pkg/filter"
"github.com/ipfs-shipyard/thunderdome/pkg/loki"
"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/ipfs-shipyard/thunderdome/pkg/run"
"github.com/probe-lab/thunderdome/pkg/filter"
"github.com/probe-lab/thunderdome/pkg/loki"
"github.com/probe-lab/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/run"
)

var TailCommand = &cli.Command{
Expand Down
6 changes: 3 additions & 3 deletions cmd/skyfish/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
"github.com/pkg/profile"
"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/pkg/loki"
"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/ipfs-shipyard/thunderdome/pkg/run"
"github.com/probe-lab/thunderdome/pkg/loki"
"github.com/probe-lab/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/pkg/run"
)

const appName = "skyfish"
Expand Down
6 changes: 3 additions & 3 deletions cmd/skyfish/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/aws/aws-sdk-go/service/sns"
"github.com/prometheus/client_golang/prometheus"

"github.com/ipfs-shipyard/thunderdome/pkg/loki"
"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/ipfs-shipyard/thunderdome/pkg/request"
"github.com/probe-lab/thunderdome/pkg/loki"
"github.com/probe-lab/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/pkg/request"
)

const MaxMessageSize = 256 * 1024 // sns has 256kb max message size
Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"strings"
"time"

"github.com/ipfs-shipyard/thunderdome/pkg/exp"
"github.com/probe-lab/thunderdome/pkg/exp"
"golang.org/x/exp/slog"
)

Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/infra"
"github.com/probe-lab/thunderdome/cmd/thunderdome/infra"
)

var DeployCommand = &cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"path/filepath"
"regexp"

"github.com/ipfs-shipyard/thunderdome/pkg/exp"
"github.com/probe-lab/thunderdome/pkg/exp"
)

type ExperimentJSON struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/thunderdome/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/build"
"github.com/ipfs-shipyard/thunderdome/pkg/exp"
"github.com/probe-lab/thunderdome/cmd/thunderdome/build"
"github.com/probe-lab/thunderdome/pkg/exp"
)

var ImageCommand = &cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/infra/base.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type BaseInfra struct {
EcsExecutionRoleArn string
EfsFileSystemID string
ExperimentsTableName string
GrafanaPushSecretArn string
PrometheusSecretArn string
IronbarAddr string
LogGroupName string
RequestSNSTopicArn string
Expand Down
16 changes: 10 additions & 6 deletions cmd/thunderdome/infra/dealgood.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/aws/aws-sdk-go/service/sqs"
"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/ironbar/api"
"github.com/probe-lab/thunderdome/cmd/ironbar/api"
)

type Dealgood struct {
Expand Down Expand Up @@ -299,7 +299,7 @@ func (d *Dealgood) createTaskDefinition() Task {
},
{
Name: aws.String("grafana-agent"),
Image: aws.String("grafana/agent:v0.26.1"),
Image: aws.String("grafana/agent:v0.39.1"),
Command: []*string{
aws.String("-metrics.wal-directory=/data/grafana-agent"),
aws.String("-config.expand-env"),
Expand Down Expand Up @@ -334,12 +334,16 @@ func (d *Dealgood) createTaskDefinition() Task {
},
Secrets: []*ecs.Secret{
{
Name: aws.String("GRAFANA_USER"),
ValueFrom: aws.String(d.base.GrafanaPushSecretArn + ":username::"),
Name: aws.String("PROMETHEUS_URL"),
ValueFrom: aws.String(d.base.PrometheusSecretArn + ":url::"),
},
{
Name: aws.String("GRAFANA_PASS"),
ValueFrom: aws.String(d.base.GrafanaPushSecretArn + ":password::"),
Name: aws.String("PROMETHEUS_USER"),
ValueFrom: aws.String(d.base.PrometheusSecretArn + ":username::"),
},
{
Name: aws.String("PROMETHEUS_PASS"),
ValueFrom: aws.String(d.base.PrometheusSecretArn + ":password::"),
},
},
},
Expand Down
4 changes: 2 additions & 2 deletions cmd/thunderdome/infra/ironbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (

"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/ironbar/api"
"github.com/ipfs-shipyard/thunderdome/pkg/exp"
"github.com/probe-lab/thunderdome/cmd/ironbar/api"
"github.com/probe-lab/thunderdome/pkg/exp"
)

func RegisterExperiment(addr string, e *exp.Experiment, res []api.Resource) func(ctx context.Context) (bool, error) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/thunderdome/infra/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (

"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/ironbar/api"
"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/build"
"github.com/ipfs-shipyard/thunderdome/pkg/exp"
"github.com/probe-lab/thunderdome/cmd/ironbar/api"
"github.com/probe-lab/thunderdome/cmd/thunderdome/build"
"github.com/probe-lab/thunderdome/pkg/exp"
)

type Provider struct {
Expand Down
16 changes: 10 additions & 6 deletions cmd/thunderdome/infra/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
// "github.com/aws/aws-sdk-go/service/servicediscovery"
"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/ironbar/api"
"github.com/probe-lab/thunderdome/cmd/ironbar/api"
)

type Target struct {
Expand Down Expand Up @@ -274,7 +274,7 @@ func (t *Target) createTaskDefinition() Task {
},
{
Name: aws.String("grafana-agent"),
Image: aws.String("grafana/agent:v0.26.1"),
Image: aws.String("grafana/agent:v0.39.1"),
Command: []*string{
aws.String("-metrics.wal-directory=/data/grafana-agent"),
aws.String("-config.expand-env"),
Expand Down Expand Up @@ -313,12 +313,16 @@ func (t *Target) createTaskDefinition() Task {
},
Secrets: []*ecs.Secret{
{
Name: aws.String("GRAFANA_USER"),
ValueFrom: aws.String(t.base.GrafanaPushSecretArn + ":username::"),
Name: aws.String("PROMETHEUS_URL"),
ValueFrom: aws.String(t.base.PrometheusSecretArn + ":url::"),
},
{
Name: aws.String("GRAFANA_PASS"),
ValueFrom: aws.String(t.base.GrafanaPushSecretArn + ":password::"),
Name: aws.String("PROMETHEUS_USER"),
ValueFrom: aws.String(t.base.PrometheusSecretArn + ":username::"),
},
{
Name: aws.String("PROMETHEUS_PASS"),
ValueFrom: aws.String(t.base.PrometheusSecretArn + ":password::"),
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/infra"
"github.com/probe-lab/thunderdome/cmd/thunderdome/infra"
)

var StatusCommand = &cli.Command{
Expand Down
2 changes: 1 addition & 1 deletion cmd/thunderdome/teardown.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/urfave/cli/v2"
"golang.org/x/exp/slog"

"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/infra"
"github.com/probe-lab/thunderdome/cmd/thunderdome/infra"
)

var TeardownCommand = &cli.Command{
Expand Down
4 changes: 2 additions & 2 deletions cmd/thunderdome/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

"github.com/urfave/cli/v2"

"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/build"
"github.com/ipfs-shipyard/thunderdome/cmd/thunderdome/infra"
"github.com/probe-lab/thunderdome/cmd/thunderdome/build"
"github.com/probe-lab/thunderdome/cmd/thunderdome/infra"
)

var ValidateCommand = &cli.Command{
Expand Down
Binary file added docs/thunderdome-ipfs-camp-2022.pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion experiments/tweedles.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

"defaults": {
"instance_type": "io_medium",
"base_image": "ipfs/kubo:v0.22.0"
"base_image": "ipfs/kubo:v0.24.0"
},

"shared": {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/ipfs-shipyard/thunderdome
module github.com/probe-lab/thunderdome

go 1.20

Expand Down
2 changes: 1 addition & 1 deletion pkg/filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package filter
import (
"strings"

"github.com/ipfs-shipyard/thunderdome/pkg/request"
ipfspath "github.com/ipfs/go-path"
"github.com/probe-lab/thunderdome/pkg/request"
)

// A RequestFilter reports whether a request meets a condition
Expand Down
2 changes: 1 addition & 1 deletion pkg/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/common/config"

"github.com/ipfs-shipyard/thunderdome/pkg/prom"
"github.com/probe-lab/thunderdome/pkg/prom"
)

const (
Expand Down
Loading

0 comments on commit 60d4c11

Please sign in to comment.