> For the complete documentation index, see [llms.txt](https://potoyang.gitbook.io/spring-in-action-v5/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://potoyang.gitbook.io/spring-in-action-v5/di-17-zhang-guan-li-spring/17.2-shen-ru-admin-fu-wu-duan/17.2.2-guan-cha-guan-jian-zhi-biao.md).

# 17.2.2 观察关键指标

在 Actuator 的所有端点中，`/metrics` 端点提供的信息，可能是人类可读性最差的信息。但是 Admin 服务端，让我们很容易使用应用程序中生成的度量指标，其 UI 位于 Metrics 选项卡之下。

最初，Metrics 选项卡不显示任何度量指标。但是在顶部，允许您关注任何指标，可以设置一个或多个进行观察。

在图 17.8 中，我在 http.server.requests 下设置了两个度量类别。第一个在 `/ingredients` 端点收到 HTTP GET 请求，并返回状态 200（OK）时报告。第二个在导致 HTTP 400（NOT FOUND）响应的请求时进行报告。

![图17.8 在 Metrics 选项卡上，您可以对通过应用程序发布的任何度量设置监视 /metrics 端点。](https://867170852-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LrmLE3NwQoVJk02Q_BX%2Fsync%2Fbf6d89d186eb20082688eeffddeb0bb3e5cb12e9.png?generation=1632313519902705\&alt=media)

这些指标的好处（事实上，几乎所有显示在 Admin 管理端的指标都是如此）是它们实时的，它们会自动更新，而无需刷新页面。
