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

Support basic auth via header and/or ~./netrc file #1

Open
leonsery opened this issue May 25, 2022 · 1 comment
Open

Support basic auth via header and/or ~./netrc file #1

leonsery opened this issue May 25, 2022 · 1 comment

Comments

@leonsery
Copy link

Currently for Prometheus servers that uses basic authentication we can use promi with -u parameter, for example:
promi -u http://user:pass@localhost:9090 targets

It will be great if you will add the ability to use Authorization header and/or ~/.netrc file like in curl, for example:
promi -H "Authorization: Basic dXNlcjpwYXNzCg==" targets
promi -n targets # assuming there is ~./netrc file

@zbindenren
Copy link
Member

Good idea, I will implement this when I am back from vacation.

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