简体   繁体   中英

password protect prometheus access

I am using prometheus to graph stats on my server. The problem is that that annybody can access the graphs from http://my.Ip.Adress:port/index.html . How can i password protect this access? alternatively: possible to password protect the port?

Prometheus doesn't have any built-in authentication or authorisation (there's just too many possible configurations), however you can use a reverse proxy to achieve this.

http://www.robustperception.io/adding-basic-auth-to-prometheus-with-nginx/ describes one way to do it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM