Skip to content

Commit

Permalink
benchmark: enable prometheus to scrape metrics from (envoyproxy#3772)
Browse files Browse the repository at this point in the history
  • Loading branch information
shawnh2 authored Jul 16, 2024
1 parent ae93d1a commit 6c5ee36
Show file tree
Hide file tree
Showing 17 changed files with 274 additions and 494 deletions.
14 changes: 2 additions & 12 deletions test/benchmark/benchmark_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,13 @@ import (
"flag"
"testing"

"github.com/stretchr/testify/require"
"sigs.k8s.io/controller-runtime/pkg/client"
"sigs.k8s.io/controller-runtime/pkg/client/config"

"github.com/envoyproxy/gateway/test/benchmark/suite"
"github.com/envoyproxy/gateway/test/benchmark/tests"
kubetest "github.com/envoyproxy/gateway/test/utils/kubernetes"
)

func TestBenchmark(t *testing.T) {
cfg, err := config.GetConfig()
require.NoError(t, err)

cli, err := client.New(cfg, client.Options{})
require.NoError(t, err)

// Install all the scheme for kubernetes client.
suite.CheckInstallScheme(t, cli)
cli := kubetest.NewClient(t)

// Parse benchmark options.
flag.Parse()
Expand Down
2 changes: 0 additions & 2 deletions test/benchmark/config/nighthawk-client.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ kind: Job
metadata:
name: "{NIGHTHAWK_CLIENT_NAME}"
namespace: benchmark-test
labels:
benchmark-test/client: "true"
spec:
template:
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@

package suite

import "testing"

type BenchmarkTest struct {
ShortName string
Description string
Test func(*testing.T, *BenchmarkTestSuite) []*BenchmarkReport
}

// BenchmarkOptions for nighthawk-client.
type BenchmarkOptions struct {
RPS string
Expand Down
Loading

0 comments on commit 6c5ee36

Please sign in to comment.