Prometheus未与OpenFaaS一起运行

时间:2019-07-18 20:59:06

标签: prometheus openfaas

我刚刚在Kubernetes上安装了OpenFaaS,并且能够部署和调用一个简单的hello-world-type函数(这意味着OpenFaaS正常工作)。但是,the guide I am following指出我应该能够在http://localhost:9090/处访问Prometheus UI。单击该链接会导致错误消息:

This site can’t be reached - localhost refused to connect. ERR_CONNECTION_REFUSED

如何在OpenFaaS中查看Prometheus UI?

1 个答案:

答案 0 :(得分:0)

弄清楚了,您必须首先运行以下命令: kubectl port-forward deployment/prometheus 9090:9090 -n openfaas

来源:https://github.com/openfaas/workshop/blob/master/lab9.md