首页/网络/常用端口速查/9090 Prometheus / Cockpit

9090 Prometheus / Cockpit

双身份端口:Prometheus 服务默认监听 9090(指标抓取与查询界面),Linux 的 Cockpit 管理台也默认 9090——装机时注意冲突。

常用端口速查网络更新于 2026-10-12
服务Prometheus / Cockpit
协议TCP/HTTP(9090)
用途监控指标服务 / 服务器 Web 管理
安全等级Prometheus 仅监控网段;Cockpit 仅管理网段

同一台机器既装 Prometheus 又开 Cockpit 必冲突;排障先 curl -s localhost:9090/-/ready 判断是哪个。

区分两个服务

区分两个服务
curl -s http://localhost:9090/-/ready   # Prometheus 返回 Prometheus Server is Ready
curl -sk https://localhost:9090/ | grep -i cockpit | head -2
ss -lntp | grep 9090
Prometheus 界面无认证是常态,但仅限内网;公网暴露需加反代鉴权。

易错点

  • Cockpit 抢了 9090:Prometheus 启动报 bind address already in use

数据来源与参考

  • Prometheus 官方文档(默认 9090)
  • Cockpit 官方文档(默认 9090)

相关工具

​‌‌​​‌​​​‌‌​‌‌‌‌​‌‌​​​‌‌​‌‌‌​​‌‌​​‌​‌‌‌​​‌‌‌​​​‌​‌‌​‌​​‌​‌‌‌​​​‌​‌‌​‌​​‌​‌‌​​​‌‌​‌‌‌​‌​​​‌‌​‌‌‌‌​​‌​‌‌‌​​‌‌​​​‌‌​‌‌​‌‌‌‌​‌‌​‌‌​‌