Skip to main content
Version: 2.8.x(Latest)

The HTTP Server supports monitoring metrics capabilities. By default, these are disabled to avoid affecting performance. They are only enabled globally when the metric feature is turned on, which will activate the calculation and generation of monitoring metrics.

Metric List

Metric NameMetric TypeMetric UnitMetric Description
http.server.request.durationHistogrammsCategorizes the time cost of request execution on the Server side.
http.server.request.duration_totalCountermsTotal execution time cost for each request.
http.server.request.totalCounterTotal number of requests completed, excluding those currently being executed.
http.server.request.activeGaugeNumber of requests currently being processed.
http.server.request.body_sizeCounterbytesTotal byte size of requests.
http.server.response.body_sizeCounterbytesTotal byte size of responses.

Attribute List

Label NameLabel DescriptionLabel Example
server.addressThe address receiving the request. Derived from Request.Host, it may be a domain name or an IP address.goframe.org
10.0.1.132
server.portThe server port receiving the request. A service may have multiple port addresses; the current connection's port is recorded.8000
http.routeThe routing rule of the request./api/v1/user/:id
url.schemaThe protocol name of the request.http; https
network.protocol.versionThe version of the request protocol.1.0; 1.1
http.request.methodThe method name of the request.GET; POST; DELETE
error.codeThe custom business error code returned by the request, as a string for compatibility.-1; 0; 51
http.response.status_codeThe HTTP status code of the response.200