Skip to content

Commit

Permalink
fix building
Browse files Browse the repository at this point in the history
Signed-off-by: Friedrich Gonzalez <[email protected]>
  • Loading branch information
friedrichg committed Dec 24, 2024
1 parent cad3263 commit 150608a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/backfill/backfill.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func CreateBlocks(input IteratorCreator, mint, maxt int64, maxSamplesInAppender
blockDuration := tsdb.DefaultBlockDuration
mint = blockDuration * (mint / blockDuration)

db, err := tsdb.OpenDBReadOnly(outputDir, nil)
db, err := tsdb.OpenDBReadOnly(outputDir, "", nil)
if err != nil {
return err
}
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 @@ -145,7 +145,7 @@ func newQueryClient(url, tenantName, username, password string) (v1.API, error)
Address: url,
RoundTripper: &httpmiddleware.TenantIDRoundTripper{
TenantName: tenantName,
Next: config_util.NewBasicAuthRoundTripper(username, config_util.Secret(password), "", "", api.DefaultRoundTripper),
Next: config_util.NewBasicAuthRoundTripper(config_util.NewInlineSecret(username), config_util.NewInlineSecret(password), api.DefaultRoundTripper),
},
})

Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/analyse_prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (cmd *PrometheusAnalyseCommand) run(_ *kingpin.ParseContext) error {

rt := api.DefaultRoundTripper
if cmd.username != "" {
rt = config.NewBasicAuthRoundTripper(cmd.username, config.Secret(cmd.password), "", "", api.DefaultRoundTripper)
rt = config.NewBasicAuthRoundTripper(config.NewInlineSecret(cmd.username), config.NewInlineSecret(cmd.password), api.DefaultRoundTripper)
}
promClient, err := api.NewClient(api.Config{
Address: cmd.address,
Expand Down
2 changes: 1 addition & 1 deletion pkg/commands/loadgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ func (c *LoadgenCommand) runBatch(from, to int) error {

start := time.Now()
attempt := 0 // TODO: do retries
if err := c.writeClient.Store(context.Background(), compressed, attempt); err != nil {
if _, err := c.writeClient.Store(context.Background(), compressed, attempt); err != nil {
writeRequestDuration.WithLabelValues("error").Observe(time.Since(start).Seconds())
return err
}
Expand Down

0 comments on commit 150608a

Please sign in to comment.