Nginx Reverse Proxy for Prometheus

Here’s an Nginx configuration that simply acts as a reverse proxy from Prometheus on port 9090 to port 80:

http {
  server {
    location / {
      proxy_pass http://localhost:9090/;
events {

You'll also want to send the -web.external-url command flag on Prometheus to the new location.

Rate this tip

If you think this tip by bbrazilbbrazil is useful — rate it up!

rating: 0+x
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License