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

How to auth Prometheus in Thanos #4671

Closed
ghost opened this issue Sep 17, 2021 · 2 comments
Closed

How to auth Prometheus in Thanos #4671

ghost opened this issue Sep 17, 2021 · 2 comments

Comments

@ghost
Copy link

ghost commented Sep 17, 2021

My Prometheus instance has enable basic-auth: https://prometheus.io/docs/guides/basic-auth/

when I run Thanos sidecar:

thanos sidecar --tsdb.path /home/prometheus/data/ --prometheus.url "http://localhost:9090"

get log:

level=warn ts=2021-09-17T08:56:33.579018157Z caller=sidecar.go:159 msg="failed to fetch prometheus version. Is Prometheus running? Retrying" err="expected 2xx response, got 401. Body: Unauthorized\n"

I looked up the flags in thanos sidecar -h but the flag related to prometheus auth could not be found. How should I configure Thanos?

@Namanl2001
Copy link
Contributor

This feature is not present in thanos yet, however we have a WIP PR for it.
Related issue: #3975
WIP PR: #4612

@yeya24
Copy link
Contributor

yeya24 commented Nov 9, 2021

Closed by #4612

@yeya24 yeya24 closed this as completed Nov 9, 2021
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

No branches or pull requests

2 participants