| 服务 | 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 9090Prometheus 界面无认证是常态,但仅限内网;公网暴露需加反代鉴权。