Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

基本介绍

样本:http-server-metrics.json

参考:

指标列表

指标名称

指标类型

指标单位

Help信息

指标描述

http.server.request.duration

Histogram

ms

Measures the duration of inbound request.

Server端请求执行的时间开销分组。默认bucket分组:

Code Block
languagejs
[
  1, 
  5,
  10,
  25,
  50,
  75,
  100,
  250,
  500,
  750,
  1000,
  2500,
  5000,
  7500,
  10000
]

http.server.request.total

Counter

Total processed request number.

已经执行完毕的请求总数,不包含正在执行的请求数。

http.server.request.active

Gauge

Number of active server requests.

当前正在处理的请求数量。

http.server.request.body_size

Counter

bytes

Incoming request bytes total.

请求的字节总大小。

http.server.response.body_size

Counter

bytes

Response bytes total.

返回的字节总大小。

标签列表

具体每个指标包含哪些标签请查看sample文件。

Label名称

Label描述

Label示例

net.service.name

请求的服务名称。微服务场景下有意义,否则值是空或者default

user

net.host.address

接受请求的本机IP地址。同一服务可能有多个IP地址,当前请求连接的是哪个IP就记录哪个IP。

10.0.1.132

net.host.port

接受请求的本机端口。同一服务可能有多个端口地址,当前请求连接的是哪个端口就记录哪个端口。

8000

http.request.route

请求的路由规则。

/api/v1/user/:id

http.request.schema

请求协议名称。

http;https

http.request.version

请求的协议版本。

1.01.1

http.request.method

请求的方法名称。

GETPOSTDELETE

http.response.error_code

请求返回的业务自定义错误码,字符串类型以提高兼容性。

-1; 0; 51

http.response.status_code

处理返回的HTTP状态码。

200

Panel
titleContent Menu
Table of ContentsmaxLevel10