密码保护prometheus访问

时间:2015-09-05 13:51:23

标签: unix authentication prometheus

我正在使用prometheus来绘制服务器上的统计信息。问题是,匿名者可以从http://my.Ip.Adress:port/index.html访问图表。我如何用密码保护此访问权限?或者:可以用密码保护端口?

1 个答案:

答案 0 :(得分:2)

Prometheus没有任何内置的身份验证或授权(可能的配置太多),但您可以使用反向代理来实现此目的。

http://www.robustperception.io/adding-basic-auth-to-prometheus-with-nginx/描述了一种方法。

相关问题