prometheus - Prometheus 未使用 OpenFaaS 运行
问题描述
我刚刚在 Kubernetes 上安装了 OpenFaaS,并且能够部署和调用一个简单的 hello-world-type 函数(这意味着 OpenFaaS 工作正常)。但是,我遵循的指南指出,我应该能够在http://localhost:9090/访问 Prometheus UI 。单击该链接会导致错误消息:
This site can’t be reached - localhost refused to connect. ERR_CONNECTION_REFUSED
如何在 OpenFaaS 中查看 Prometheus UI?
解决方案
想通了,你必须先运行这个命令:
kubectl port-forward deployment/prometheus 9090:9090 -n openfaas
来源:https ://github.com/openfaas/workshop/blob/master/lab9.md