Skip to content

Commit

Permalink
benchtool: avoid registering DNS metrics twice (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
edma2 authored Jun 5, 2021
1 parent f2fb4f8 commit 4c91805
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Order should be `CHANGE`, `FEATURE`, `ENHANCEMENT`, and `BUGFIX`

## unreleased/master

* [BUGFIX] Benchtool: avoid duplicate DNS metrics registration when enabling both query and write benchmarking. #188
* [ENHANCEMENT] Added the ability to set an explicit user when Cortex is behind basic auth. #187

## v0.10.1
Expand Down
2 changes: 1 addition & 1 deletion pkg/bench/query_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func newQueryRunner(id string, tenantName string, cfg QueryConfig, workload *que
clientPool: map[string]v1.API{},
dnsProvider: dns.NewProvider(
logger,
extprom.WrapRegistererWithPrefix("benchtool_", reg),
extprom.WrapRegistererWithPrefix("benchtool_query_", reg),
dns.GolangResolverType,
),

Expand Down
2 changes: 1 addition & 1 deletion pkg/bench/write_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func NewWriteBenchmarkRunner(id string, tenantName string, cfg WriteBenchConfig,
workload: workload,
dnsProvider: dns.NewProvider(
logger,
extprom.WrapRegistererWithPrefix("benchtool_", reg),
extprom.WrapRegistererWithPrefix("benchtool_write_", reg),
dns.GolangResolverType,
),
clientPool: map[string]*writeClient{},
Expand Down

0 comments on commit 4c91805

Please sign in to comment.