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

nginx开启auth_basic "Restricted"身份认证功能 使用nginx-prometheus-exporter有没有相关参数连接 #425

Closed
15212577946 opened this issue Jun 2, 2023 · 3 comments · Fixed by #461

Comments

@15212577946
Copy link

nginx开启auth_basic "Restricted"身份认证功能 使用nginx-prometheus-exporter有没有相关参数连接

以下是我连接之后的错误
2023/06/02 06:21:32 Starting NGINX Prometheus Exporter Version= GitCommit=
2023/06/02 06:21:32 Could not create Nginx Client: expected 200 response, got 401

@brianehlert
Copy link

Any details would be helpful and useful.
deployment files, settings, etc.

Are you trying to connect to the exporter using basic auth?

@15212577946
Copy link
Author

任何细节都会有所帮助和有用。部署文件、设置等

您是否正在尝试使用基本身份验证连接到导出器?

我使用的是docker run -it -d -p 9113:9113 --name nginx-exporter nginx/nginx-prometheus-exporter:0.8.0 -nginx.scrape-uri http://10.10.220.145/nginx_status 命令 因为我的nginx开启了auth_basic “Restricted” 访问nginx页面需要输入账号密码 所以报错了 我这边看官方文档没有关于nginx的身份认证参数

@lucacome
Copy link
Member

lucacome commented Jun 9, 2023

Hi @15212577946

we don't support basic auth yet. It will be available once we merge #231

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.

3 participants