github.com/netdata/go.d.plugin@v0.58.1/modules/tengine/metrics.go (about)

     1  // SPDX-License-Identifier: GPL-3.0-or-later
     2  
     3  package tengine
     4  
     5  /*
     6  http://tengine.taobao.org/document/http_reqstat.html
     7  
     8  bytes_in total number of bytes received from client
     9  bytes_out total number of bytes sent to client
    10  conn_total total number of accepted connections
    11  req_total total number of processed requests
    12  http_2xx total number of 2xx requests
    13  http_3xx total number of 3xx requests
    14  http_4xx total number of 4xx requests
    15  http_5xx total number of 5xx requests
    16  http_other_status total number of other requests
    17  rt accumulation or rt
    18  ups_req total number of requests calling for upstream
    19  ups_rt accumulation or upstream rt
    20  ups_tries total number of times calling for upstream
    21  http_200 total number of 200 requests
    22  http_206 total number of 206 requests
    23  http_302 total number of 302 requests
    24  http_304 total number of 304 requests
    25  http_403 total number of 403 requests
    26  http_404 total number of 404 requests
    27  http_416 total number of 416 requests
    28  http_499 total number of 499 requests
    29  http_500 total number of 500 requests
    30  http_502 total number of 502 requests
    31  http_503 total number of 503 requests
    32  http_504 total number of 504 requests
    33  http_508 total number of 508 requests
    34  http_other_detail_status total number of requests of other status codes
    35  http_ups_4xx total number of requests of upstream 4xx
    36  http_ups_5xx total number of requests of upstream 5xx
    37  */
    38  
    39  type (
    40  	tengineStatus []metric
    41  
    42  	metric struct {
    43  		Host                  string
    44  		ServerAddress         string
    45  		BytesIn               *int64 `stm:"bytes_in"`
    46  		BytesOut              *int64 `stm:"bytes_out"`
    47  		ConnTotal             *int64 `stm:"conn_total"`
    48  		ReqTotal              *int64 `stm:"req_total"`
    49  		HTTP2xx               *int64 `stm:"http_2xx"`
    50  		HTTP3xx               *int64 `stm:"http_3xx"`
    51  		HTTP4xx               *int64 `stm:"http_4xx"`
    52  		HTTP5xx               *int64 `stm:"http_5xx"`
    53  		HTTPOtherStatus       *int64 `stm:"http_other_status"`
    54  		RT                    *int64 `stm:"rt"`
    55  		UpsReq                *int64 `stm:"ups_req"`
    56  		UpsRT                 *int64 `stm:"ups_rt"`
    57  		UpsTries              *int64 `stm:"ups_tries"`
    58  		HTTP200               *int64 `stm:"http_200"`
    59  		HTTP206               *int64 `stm:"http_206"`
    60  		HTTP302               *int64 `stm:"http_302"`
    61  		HTTP304               *int64 `stm:"http_304"`
    62  		HTTP403               *int64 `stm:"http_403"`
    63  		HTTP404               *int64 `stm:"http_404"`
    64  		HTTP416               *int64 `stm:"http_416"`
    65  		HTTP499               *int64 `stm:"http_499"`
    66  		HTTP500               *int64 `stm:"http_500"`
    67  		HTTP502               *int64 `stm:"http_502"`
    68  		HTTP503               *int64 `stm:"http_503"`
    69  		HTTP504               *int64 `stm:"http_504"`
    70  		HTTP508               *int64 `stm:"http_508"`
    71  		HTTPOtherDetailStatus *int64 `stm:"http_other_detail_status"`
    72  		HTTPUps4xx            *int64 `stm:"http_ups_4xx"`
    73  		HTTPUps5xx            *int64 `stm:"http_ups_5xx"`
    74  	}
    75  )