# help nginx_vts_info nginx info
# type nginx_vts_info gauge
nginx_vts_info{hostname=”hbhly_21_205″,version=”1.16.1″} 1
# help nginx_vts_start_time_seconds nginx start time
# type nginx_vts_start_time_seconds gauge
nginx_vts_start_time_seconds 1584268136.439
# help nginx_vts_main_connections nginx connections
# type nginx_vts_main_connections gauge
# 区分状态的nginx连接数
nginx_vts_main_connections{status=”accepted”} 9271
nginx_vts_main_connections{status=”active”} 7
nginx_vts_main_connections{status=”handled”} 9271
nginx_vts_main_connections{status=”reading”} 0
nginx_vts_main_connections{status=”requests”} 438850
nginx_vts_main_connections{status=”waiting”} 6
nginx_vts_main_connections{status=”writing”} 1
# help nginx_vts_main_shm_usage_bytes shared memory [ngx_http_vhost_traffic_status] info
# type nginx_vts_main_shm_usage_bytes gauge
# 内存使用量
nginx_vts_main_shm_usage_bytes{shared=”max_size”} 1048575
nginx_vts_main_shm_usage_bytes{shared=”used_size”} 24689
nginx_vts_main_shm_usage_bytes{shared=”used_node”} 7
# help nginx_vts_server_bytes_total the request/response bytes
# type nginx_vts_server_bytes_total counter
# help nginx_vts_server_requests_total the requests counter
# type nginx_vts_server_requests_total counter
# help nginx_vts_server_request_seconds_total the request processing time in seconds
# type nginx_vts_server_request_seconds_total counter
# help nginx_vts_server_request_seconds the average of request processing times in seconds
# type nginx_vts_server_request_seconds gauge
# help nginx_vts_server_request_duration_seconds the histogram of request processing time
# type nginx_vts_server_request_duration_seconds histogram
# help nginx_vts_server_cache_total the requests cache counter
# type nginx_vts_server_cache_total counter
# 分host的进出流量
nginx_vts_server_bytes_total{host=”10.160.21.205″,direction=”in”} 22921464
nginx_vts_server_bytes_total{host=”10.160.21.205″,direction=”out”} 1098196005
# 分状态码的请求数量统计 1** 2** 3** 4** 5**
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”1xx”} 0
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”2xx”} 86809
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”3xx”} 0
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”4xx”} 2
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”5xx”} 0
nginx_vts_server_requests_total{host=”10.160.21.205″,code=”total”} 86811
# 响应时间
nginx_vts_server_request_seconds_total{host=”10.160.21.205″} 0.000
nginx_vts_server_request_seconds{host=”10.160.21.205″} 0.000
# 分状态的缓存的统计
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”miss”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”bypass”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”expired”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”stale”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”updating”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”revalidated”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”hit”} 0
nginx_vts_server_cache_total{host=”10.160.21.205″,status=”scarce”} 0
nginx_vts_server_bytes_total{host=”devapi.feedback.test”,direction=”in”} 3044526
nginx_vts_server_bytes_total{host=”devapi.feedback.test”,direction=”out”} 41257028
# 分状态的连接数的统计
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”1xx”} 0
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”2xx”} 3983
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”3xx”} 0
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”4xx”} 24
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”5xx”} 11
nginx_vts_server_requests_total{host=”devapi.feedback.test”,code=”total”} 4018
nginx_vts_server_request_seconds_total{host=”devapi.feedback.test”} 327.173
nginx_vts_server_request_seconds{host=”devapi.feedback.test”} 0.000
# nginx缓存计算器,精确到状态和type
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”miss”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”bypass”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”expired”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”stale”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”updating”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”revalidated”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”hit”} 0
nginx_vts_server_cache_total{host=”devapi.feedback.test”,status=”scarce”} 0
nginx_vts_server_bytes_total{host=”testapi.feedback.test”,direction=”in”} 55553573
nginx_vts_server_bytes_total{host=”testapi.feedback.test”,direction=”out”} 9667561188
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”1xx”} 0
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”2xx”} 347949
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”3xx”} 31
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”4xx”} 7
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”5xx”} 33
nginx_vts_server_requests_total{host=”testapi.feedback.test”,code=”total”} 348020
nginx_vts_server_request_seconds_total{host=”testapi.feedback.test”} 2185.177
nginx_vts_server_request_seconds{host=”testapi.feedback.test”} 0.001
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”miss”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”bypass”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”expired”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”stale”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”updating”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”revalidated”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”hit”} 0
nginx_vts_server_cache_total{host=”testapi.feedback.test”,status=”scarce”} 0
nginx_vts_server_bytes_total{host=”*”,direction=”in”} 81519563
nginx_vts_server_bytes_total{host=”*”,direction=”out”} 10807014221
# 分host请求数量统计
nginx_vts_server_requests_total{host=”*”,code=”1xx”} 0
nginx_vts_server_requests_total{host=”*”,code=”2xx”} 438741
nginx_vts_server_requests_total{host=”*”,code=”3xx”} 31
nginx_vts_server_requests_total{host=”*”,code=”4xx”} 33
nginx_vts_server_requests_total{host=”*”,code=”5xx”} 44
nginx_vts_server_requests_total{host=”*”,code=”total”} 438849
nginx_vts_server_request_seconds_total{host=”*”} 2512.350
nginx_vts_server_request_seconds{host=”*”} 0.007
# 分host缓存统计
nginx_vts_server_cache_total{host=”*”,status=”miss”} 0
nginx_vts_server_cache_total{host=”*”,status=”bypass”} 0
nginx_vts_server_cache_total{host=”*”,status=”expired”} 0
nginx_vts_server_cache_total{host=”*”,status=”stale”} 0
nginx_vts_server_cache_total{host=”*”,status=”updating”} 0
nginx_vts_server_cache_total{host=”*”,status=”revalidated”} 0
nginx_vts_server_cache_total{host=”*”,status=”hit”} 0
nginx_vts_server_cache_total{host=”*”,status=”scarce”} 0
# help nginx_vts_upstream_bytes_total the request/response bytes
# type nginx_vts_upstream_bytes_total counter
# help nginx_vts_upstream_requests_total the upstream requests counter
# type nginx_vts_upstream_requests_total counter
# help nginx_vts_upstream_request_seconds_total the request processing time including upstream in seconds
# type nginx_vts_upstream_request_seconds_total counter
# help nginx_vts_upstream_request_seconds the average of request processing times including upstream in seconds
# type nginx_vts_upstream_request_seconds gauge
# help nginx_vts_upstream_response_seconds_total the only upstream response processing time in seconds
# type nginx_vts_upstream_response_seconds_total counter
# help nginx_vts_upstream_response_seconds the average of only upstream response processing times in seconds
# type nginx_vts_upstream_response_seconds gauge
# help nginx_vts_upstream_request_duration_seconds the histogram of request processing time including upstream
# type nginx_vts_upstream_request_duration_seconds histogram
# help nginx_vts_upstream_response_duration_seconds the histogram of only upstream response processing time
# type nginx_vts_upstream_response_duration_seconds histogram
# 分upstream流量统计
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,direction=”in”} 12296
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,direction=”out”} 13582924
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”1xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”2xx”} 25
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”3xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”4xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”5xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.144.227.162:80″,code=”total”} 25
nginx_vts_upstream_request_seconds_total{upstream=”::nogroups”,backend=”10.144.227.162:80″} 1.483
nginx_vts_upstream_request_seconds{upstream=”::nogroups”,backend=”10.144.227.162:80″} 0.000
nginx_vts_upstream_response_seconds_total{upstream=”::nogroups”,backend=”10.144.227.162:80″} 1.484
nginx_vts_upstream_response_seconds{upstream=”::nogroups”,backend=”10.144.227.162:80″} 0.000
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,direction=”in”} 12471
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,direction=”out”} 11790508
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”1xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”2xx”} 24
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”3xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”4xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”5xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.152.218.149:80″,code=”total”} 24
nginx_vts_upstream_request_seconds_total{upstream=”::nogroups”,backend=”10.152.218.149:80″} 1.169
nginx_vts_upstream_request_seconds{upstream=”::nogroups”,backend=”10.152.218.149:80″} 0.000
nginx_vts_upstream_response_seconds_total{upstream=”::nogroups”,backend=”10.152.218.149:80″} 1.168
nginx_vts_upstream_response_seconds{upstream=”::nogroups”,backend=”10.152.218.149:80″} 0.000
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,direction=”in”} 3036924
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,direction=”out”} 33355357
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”1xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”2xx”} 3971
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”3xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”4xx”} 24
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”5xx”} 11
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″,code=”total”} 4006
nginx_vts_upstream_request_seconds_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″} 326.427
nginx_vts_upstream_request_seconds{upstream=”::nogroups”,backend=”10.160.21.205:8081″} 0.000
nginx_vts_upstream_response_seconds_total{upstream=”::nogroups”,backend=”10.160.21.205:8081″} 300.722
nginx_vts_upstream_response_seconds{upstream=”::nogroups”,backend=”10.160.21.205:8081″} 0.000
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,direction=”in”} 55536408
nginx_vts_upstream_bytes_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,direction=”out”} 9650089427
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”1xx”} 0
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”2xx”} 347912
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”3xx”} 31
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”4xx”} 7
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”5xx”} 33
nginx_vts_upstream_requests_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″,code=”total”} 347983
nginx_vts_upstream_request_seconds_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″} 2183.271
nginx_vts_upstream_request_seconds{upstream=”::nogroups”,backend=”10.160.21.205:8082″} 0.001
nginx_vts_upstream_response_seconds_total{upstream=”::nogroups”,backend=”10.160.21.205:8082″} 2180.893
nginx_vts_upstream_response_seconds{upstream=”::nogroups”,backend=”10.160.21.205:8082″} 0.001