Skip to content

Commit

Permalink
fix prometheus basic auth
Browse files Browse the repository at this point in the history
  • Loading branch information
flarco committed Nov 26, 2024
1 parent a910029 commit f1d1515
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 f1d1515

Please sign in to comment.