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

Website --web.enable-admin-api confusion #3278

Closed
ericdstein opened this issue Oct 6, 2020 · 8 comments
Closed

Website --web.enable-admin-api confusion #3278

ericdstein opened this issue Oct 6, 2020 · 8 comments

Comments

@ericdstein
Copy link

ericdstein commented Oct 6, 2020

Thanos, Prometheus and Golang version used:
Thanos: v0.15
Prometheus: 2.21

In multiple places, including the sidecar docs, I have seen the following statement.

The --web.enable-admin-api flag is enabled to support sidecar to get metadata from Prometheus like external labels.

It doesn't appear, however, that this flag controls access to metadata. Instead, it appears to control access to perform certain admin tasks and thus may only be required if using the Sidecar to send data to object storage. If one were to just use Query, is this flag required to be set for Prometheus?

@yeya24
Copy link
Contributor

yeya24 commented Oct 6, 2020

Right, it is confusing and I believe this flag is not needed. Prometheus external labels are fetched from /api/v1/status/config directly.

@bwplotka
Copy link
Member

bwplotka commented Oct 6, 2020

Not really, we use flags endpoint as well.

@bwplotka
Copy link
Member

bwplotka commented Oct 6, 2020

But overall, let's double check we added this piece of doc and requirement at the very start of Thanos, I suppose for snapshot purposes, although we don't use it now on sidecar. So there is some chances that this flag is not needed at all. (:

@ericdstein
Copy link
Author

ericdstein commented Oct 6, 2020

Thank you both! :-) I found the reason the statement was added. Prior to #1354 #1355, the ExternalLabels func incorrectly returned error is 'web.enable-admin-api' flag enabled? got non-200 response code. The recommendation was added when someone encountered this error.

The only func I could find that calls an admin api is the Snapshot func in promclient. But, as was stated, I couldn't find where that func is currently used.

@yeya24
Copy link
Contributor

yeya24 commented Oct 12, 2020

@ericdstein Thanks for checking. I think this snapshot is outdated and not used anymore. It is safe to remove that.

@stale
Copy link

stale bot commented Dec 12, 2020

Hello 👋 Looks like there was no activity on this issue for the last two months.
Do you mind updating us on the status? Is this still reproducible or needed? If yes, just comment on this PR or push a commit. Thanks! 🤗
If there will be no activity in the next two weeks, this issue will be closed (we can always reopen an issue if we need!). Alternatively, use remind command if you wish to be reminded at some point in future.

@stale stale bot added the stale label Dec 12, 2020
@stale
Copy link

stale bot commented Dec 26, 2020

Closing for now as promised, let us know if you need this to be reopened! 🤗

@stale stale bot closed this as completed Dec 26, 2020
@id-tari
Copy link

id-tari commented Jan 3, 2023

Latest documents still describe enabling of --web.enable-admin-api as a recommendation.
https://thanos.io/v0.30/components/sidecar.md/

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

No branches or pull requests

4 participants