prometheus ui on local computer

191 views
Skip to first unread message

Leah Stapleton

unread,
Feb 19, 2024, 2:13:02 AM2/19/24
to Prometheus Users
Hello,
This is my first time using Prometheus. I found it very easy to set up the server but I'm puzzled about viewing the data. 

I have a prometheus server running on a VPN at Digital Ocean, which is set up to scrape data from Caddy webserver.

But how do I view the dashboards?

I know there's a prometheus ui that I can use at localhost:9090, but I don't know how to set that up to view the data on a prometheus server running on a vpn.I can't just open localhost:9090 on my browser and see data from a remote server, there must be some step I am missing. 

Can anyone give me detailed step by step instructions? 
1.Do I need to add anything to the prometheus.yml file? if so, what? 
2. what command do I run in the terminal of my computer to get the prometheus ui going?

Thank you for your help.

By the way, I've heard Grafana is also a possibility but I'm interested in trying the Prometheus Ui instead. Thank you.


Brian Candler

unread,
Feb 19, 2024, 2:39:24 AM2/19/24
to Prometheus Users
localhost:9090 is what you'd enter if prometheus was running on the same machine as your browser.

In this case it's remote, so enter
  <IP-address>:9090
where <IP-address> is the IP-address of the server where prometheus is running.

Bryan Boreham

unread,
Feb 19, 2024, 6:46:34 AM2/19/24
to Prometheus Users
You might also need to adjust the firewall at Digital Ocean to allow your browser to connect to Prometheus.

No additional set-up is needed to get the UI; Prometheus serves it over http by default.

Bryan

Reply all
Reply to author
Forward
0 new messages