
我有一台 Windows 筆記型電腦。在這台筆記型電腦上,我安裝了 virtualbox,並在 virtualbox 內安裝了 ubuntu 伺服器。
在ubuntu伺服器上我安裝了Prometheus監控工具。我能夠在 ubuntu 伺服器的終端機中運行 prometheus。
這是我的 ubuntu 伺服器的 IP 位址 [10.3.10.105],prometheus 運行在連接埠 [9090] 上。現在我想在windows瀏覽器上看到prometheus的GUI。我怎麼能看到呢?
我已經嘗試瀏覽http://10.3.10.105:9090但這不起作用
答案1
作為弗蘭克·托馬斯指出,目前您的 prometheus 不偵聽 IPv4 位址。但 IPv6 已提供服務(請參閱螢幕截圖的最後一行)。
檢查 prometheus 伺服器上的 IPv6 位址,您應該能夠透過 IPv6 存取它:
# Check for the IPv6 at the server's terminal:
$ ip -br -f inet6 addr
lo UNKNOWN ::1/128
enp4s0 UP fe80::a76b:c61::3261/64
# Test the access form the client:
$ curl http://[fe80::a76b:c61::3261]:9090
<!DOCTYPE HTML>
<html>
...
(IPv6位址只是一個例子,請替換為您自己的位址)