Skip to content

Commit

Permalink
Merge pull request #452 from slingdata-io/v1.2.24
Browse files Browse the repository at this point in the history
Fix Prometheus basic auth
  • Loading branch information
flarco authored Nov 26, 2024
2 parents a910029 + f1d1515 commit 2ace22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbio/database/database_prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (conn *PrometheusConn) getNewClient(timeOut ...int) (client v1.API, err err
}

if user := conn.GetProp("user"); user != "" {
rt = config.NewBasicAuthRoundTripper(config.NewFileSecret(user), config.NewInlineSecret(conn.GetProp("password")), rt)
rt = config.NewBasicAuthRoundTripper(config.NewInlineSecret(user), config.NewInlineSecret(conn.GetProp("password")), rt)
}

c, err := api.NewClient(api.Config{
Expand Down

0 comments on commit 2ace22f

Please sign in to comment.