8.4. 3scale APIcast 指标公开给 Prometheus


在将 Prometheus 设置为监控 3scale APIcast 后,它默认可以监控 表 8.2 “用于 3scale APIcast 的 Prometheus 默认指标” 中列出的指标。

Expand
表 8.2. 用于 3scale APIcast 的 Prometheus 默认指标
指标描述类型标签

nginx_http_connections

HTTP 连接数

量表

state(accepted,active,handled,reading,total,waiting,writing)

nginx_error_log

APIcast 错误

计数

level(debug,info,notice,warn,error,crit,alert,emerg)

openresty_shdict_capacity

worker 共享字典的能力

量表

字典(每个字典对应一个)

openresty_shdict_free_space

worker 共享字典的可用空间

量表

字典(每个字典对应一个)

nginx_metric_errors_total

管理指标的 Lua 库错误数

计数

none

total_response_time_seconds

向客户端发送响应所需的时间(以秒为单位)

:要访问 service_idservice_system_name 标签,您必须将 APICAST_EXTENDED_METRICS 环境变量设置为 true,如 第 8.2 节 “APIcast 与 Prometheus 集成” 所述。

histogram

service_id,service_system_name

upstream_response_time_seconds

来自上游服务器的响应时间(以秒为单位)

:要访问 service_idservice_system_name 标签,您必须将 APICAST_EXTENDED_METRICS 环境变量设置为 true,如 第 8.2 节 “APIcast 与 Prometheus 集成” 所述。

histogram

service_id,service_system_name

upstream_status

来自上游服务器的 HTTP 状态

:要访问 service_idservice_system_name 标签,您必须将 APICAST_EXTENDED_METRICS 环境变量设置为 true,如 第 8.2 节 “APIcast 与 Prometheus 集成” 所述。

计数

状态service_idservice_system_name

threescale_backend_calls

授权并报告请求到 3scale 后端(Apisonator)

计数

端点authrepauth报告)、状态(2xx,4xx,5xx)

返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2025 Red Hat