diff --git a/api/prometheus/api.go b/api/prometheus/api.go index 0e468f4..e532ef1 100644 --- a/api/prometheus/api.go +++ b/api/prometheus/api.go @@ -107,7 +107,7 @@ func New(cfg Config) (Client, error) { if err != nil { return nil, err } - u.Path = apiPrefix + u.Path = strings.TrimRight(u.Path, "/") + apiPrefix return &httpClient{ endpoint: u,