普罗米修斯

普罗米修斯 #

本文档指导您如何在集群上启用普罗米修斯

使用普罗米修斯创建集群 #

kwokctl create cluster --prometheus-port 9090

使用普罗米修斯数据源创建 Grafana 仪表盘 #

docker run -d --name=grafana -p 3000:3000 docker.io/grafana/grafana:9.4.7
  1. 打开您的网络浏览器并转到 http://localhost:3000
  2. 在登录页面,输入 admin 作为用户名和密码。
  3. 在 Grafana 上添加普罗米修斯数据源,http://host.docker.internal:9090http://hostIP:9090,将 hostIP 替换为您的主机的 IP 地址。
  4. 通过 grafana.com 代码 16248 在 Grafana 上导入。

现在您可以看到集群的 Grafana 仪表盘。