Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

promclient: Misleading error message about enabling Prometheus admin API #1354

Closed
beorn7 opened this issue Jul 25, 2019 · 1 comment · Fixed by #1355
Closed

promclient: Misleading error message about enabling Prometheus admin API #1354

beorn7 opened this issue Jul 25, 2019 · 1 comment · Fixed by #1355

Comments

@beorn7
Copy link
Contributor

beorn7 commented Jul 25, 2019

Thanos, Prometheus and Golang version used

Thanos at commit f6992f7

What happened

return nil, errors.Errorf("is 'web.enable-admin-api' flag enabled? got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
suggests to set --web.enable-admin-api for Prometheus if a non-200 response is encountered. However, the endpoint used there is not part of the Prometheus admin API.

return "", errors.Errorf("got non-200 response code: %v, response: %v", resp.StatusCode, string(b))
, however, does not contain that suggestion, despite dealing with an admin API endpoint (snapshot).

What you expected to happen

It should be the other way round.

@beorn7
Copy link
Contributor Author

beorn7 commented Jul 25, 2019

In case you agree, I have prepared #1355 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant