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?
Don't expose your data. By default, your Prometheus server can allow anyone to make queries to get information from your Kubernetes Cluster. This is not something new.
By default, Amazon Managed Service for Prometheus automatically provides you with encryption at rest and does this using AWS owned keys.
Prometheus will measure time automatically and expose the metrics. It's a good idea to add a label for a topic.
Prometheus is an open-source technology designed to provide monitoring and alerting functionality for cloud-native environments, including Kubernetes. It can collect and store metrics as time-series data, recording information with a timestamp. It can also collect and record labels, which are optional key-value pairs.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With