Skip to content

Commit

Permalink
Fix bench library error
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSpiritXIII committed Sep 29, 2023
1 parent 7dac851 commit 18ce2b5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/export/bench/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ load broad coverage of potential race conditions, which will be logged.

## Resource usage

The Prometheus server scrapse itself, which allows gauging the resource usage of the Prometheus
The Prometheus server scrapes itself, which allows gauging the resource usage of the Prometheus
binary as well as the overhead relative to a regular Prometheus server.

The example app allows tweaking its flags to expose more or fewer metrics. Lowering the scrape
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,19 +45,19 @@ var (

var (
availableLabels = map[string][]string{
"method": []string{
"method": {
"POST",
"PUT",
"GET",
},
"status": []string{
"status": {
"200",
"300",
"400",
"404",
"500",
},
"path": []string{
"path": {
"/",
"/index",
"/topics",
Expand Down
2 changes: 1 addition & 1 deletion pkg/export/bench/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ rm -rf data1 data2 data3

echo "Starting example metrics application"

go run example_app.go 2>&1 | sed -e "s/^/[example-app] /" &
go run app/example_app.go 2>&1 | sed -e "s/^/[example-app] /" &

echo "Starting fake GCM endpoint"

Expand Down
2 changes: 1 addition & 1 deletion pkg/export/bench/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ import (
_ "net/http/pprof" // Comment this line to disable pprof endpoint.
"time"

monitoring_pb "cloud.google.com/go/monitoring/apiv3/v2/monitoringpb"
"github.com/golang/protobuf/ptypes/empty"
grpc_prometheus "github.com/grpc-ecosystem/go-grpc-prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
monitoring_pb "google.golang.org/genproto/googleapis/monitoring/v3"
"google.golang.org/grpc"
)

Expand Down

0 comments on commit 18ce2b5

Please sign in to comment.