This documentation is for a release that is no longer maintained
See documentation for the latest supported version.3.6.4.3.2. 使用 Prometheus 收集 OpenShift Dev Spaces 服务器指标
使用 Prometheus 为 OpenShift Dev Spaces 服务器收集、存储和查询 JVM 指标:
先决条件
-
OpenShift Dev Spaces 在端口
8087上公开指标。请参阅启用并公开 OpenShift Dev Spaces 服务器 JVM 指标。 -
Prometheus 2.26.0 或更高版本正在运行。Prometheus 控制台在端口
9090上运行,带有对应的。参阅 Prometheus 的第一个步骤。服务和路由
流程
将 Prometheus 配置为从端口
8087中提取指标。
验证步骤
-
在
http:// <prometheus-url>/metrics 中查看 Prometheus 控制台的指标。 -
从
http:// <prometheus-url>/graph查询 Prometheus 控制台中的指标。如需更多信息,请参阅 使用表达式浏览器。 -
通过查看
http:// <prometheus-url> /targets 上的目标端点,验证所有目标是否已启动。