Skip to content

Commit

Permalink
Move suggestion about admin API to appropriate place (#1355)
Browse files Browse the repository at this point in the history
Fixes #1354

Signed-off-by: beorn7 <beorn@grafana.com>
  • Loading branch information
beorn7 authored and GiedriusS committed Jul 26, 2019
1 parent f6992f7 commit 60a45cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/promclient/promclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func ExternalLabels(ctx context.Context, logger log.Logger, base *url.URL) (labe
}

if resp.StatusCode != 200 {
return nil, errors.Errorf("is 'web.enable-admin-api' flag enabled? got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
return nil, errors.Errorf("got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
}

var d struct {
Expand Down Expand Up @@ -242,7 +242,7 @@ func Snapshot(ctx context.Context, logger log.Logger, base *url.URL, skipHead bo
}

if resp.StatusCode != 200 {
return "", errors.Errorf("got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
return "", errors.Errorf("is 'web.enable-admin-api' flag enabled? got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
}

var d struct {
Expand Down

0 comments on commit 60a45cb

Please sign in to comment.