curl -i http://localhost:8001/metricsHTTP/1.1 200 OKServer: openresty/1.15.8.3Date: Tue, 7 Jun 2020 16:35:40 GMTContent-Type: text/plain; charset=UTF-8Transfer-Encoding: chunkedConnection: keep-aliveAccess-Control-Allow-Origin: *
# HELP kong_bandwidth Total bandwidth in bytes consumed per service/route in Kong# TYPE kong_bandwidth counterkong_bandwidth{type="egress",service="google",route="google.route-1"} 1277kong_bandwidth{type="ingress",service="google",route="google.route-1"} 254# HELP kong_datastore_reachable Datastore reachable from Kong, 0 is unreachable# TYPE kong_datastore_reachable gaugekong_datastore_reachable 1# HELP kong_http_consumer_status HTTP status codes for customer per service/route in Kong# TYPE kong_http_consumer_status counterkong_http_consumer_status{service="s1",route="s1.route-1",code="200",consumer="<CONSUMER_USERNAME>"} 3# HELP kong_http_status HTTP status codes per service/route in Kong# TYPE kong_http_status counterkong_http_status{code="301",service="google",route="google.route-1"} 2# HELP kong_latency Latency added by Kong, total request time and upstream latency for each service in Kong# TYPE kong_latency histogramkong_latency_bucket{type="kong",service="google",route="google.route-1",le="00001.0"} 1kong_latency_bucket{type="kong",service="google",route="google.route-1",le="00002.0"} 1...kong_latency_bucket{type="kong",service="google",route="google.route-1",le="+Inf"} 2kong_latency_bucket{type="request",service="google",route="google.route-1",le="00300.0"} 1kong_latency_bucket{type="request",service="google",route="google.route-1",le="00400.0"} 1..kong_latency_bucket{type="request",service="google",route="google.route-1",le="+Inf"} 2kong_latency_bucket{type="upstream",service="google",route="google.route-1",le="00300.0"} 2kong_latency_bucket{type="upstream",service="google",route="google.route-1",le="00400.0"} 2..kong_latency_bucket{type="upstream",service="google",route="google.route-1",le="+Inf"} 2kong_latency_count{type="kong",service="google",route="google.route-1"} 2kong_latency_count{type="request",service="google",route="google.route-1"} 2kong_latency_count{type="upstream",service="google",route="google.route-1"} 2kong_latency_sum{type="kong",service="google",route="google.route-1"} 2145kong_latency_sum{type="request",service="google",route="google.route-1"} 2672kong_latency_sum{type="upstream",service="google",route="google.route-1"} 527# HELP kong_nginx_http_current_connections Number of HTTP connections# TYPE kong_nginx_http_current_connections gaugekong_nginx_http_current_connections{state="accepted"} 8kong_nginx_http_current_connections{state="active"} 1kong_nginx_http_current_connections{state="handled"} 8kong_nginx_http_current_connections{state="reading"} 0kong_nginx_http_current_connections{state="total"} 8kong_nginx_http_current_connections{state="waiting"} 0kong_nginx_http_current_connections{state="writing"} 1# HELP kong_memory_lua_shared_dict_bytes Allocated slabs in bytes in a shared_dict# TYPE kong_memory_lua_shared_dict_bytes gaugekong_memory_lua_shared_dict_bytes{shared_dict="kong",kong_subsystem="http"} 40960..# HELP kong_memory_lua_shared_dict_total_bytes Total capacity in bytes of a shared_dict# TYPE kong_memory_lua_shared_dict_total_bytes gaugekong_memory_lua_shared_dict_total_bytes{shared_dict="kong",kong_subsystem="http"} 5242880..# HELP kong_memory_workers_lua_vms_bytes Allocated bytes in worker Lua VM# TYPE kong_memory_workers_lua_vms_bytes gaugekong_memory_workers_lua_vms_bytes{pid="7281",kong_subsystem="http"} 41124353# HELP kong_data_plane_config_hash Config hash value of the data plane# TYPE kong_data_plane_config_hash gaugekong_data_plane_config_hash{node_id="d4e7584e-b2f2-415b-bb68-3b0936f1fde3",hostname="ubuntu-bionic",ip="127.0.0.1"} 1.7158931820287e+38# HELP kong_data_plane_last_seen Last time data plane contacted control plane# TYPE kong_data_plane_last_seen gaugekong_data_plane_last_seen{node_id="d4e7584e-b2f2-415b-bb68-3b0936f1fde3",hostname="ubuntu-bionic",ip="127.0.0.1"} 1600190275# HELP kong_data_plane_version_compatible Version compatible status of the data plane, 0 is incompatible# TYPE kong_data_plane_version_compatible gaugekong_data_plane_version_compatible{node_id="d4e7584e-b2f2-415b-bb68-3b0936f1fde3",hostname="ubuntu-bionic",ip="127.0.0.1",kong_version="2.4.1"} 1# HELP kong_nginx_metric_errors_total Number of nginx-lua-prometheus errors# TYPE kong_nginx_metric_errors_total counterkong_nginx_metric_errors_total 0# HELP kong_upstream_target_health Health status of targets of upstream. States = healthchecks_off|healthy|unhealthy|dns_error, value is 1 when state is populated.kong_upstream_target_health{upstream="<upstream_name>",target="<target>",address="<ip>:<port>",state="healthchecks_off",subsystem="http"} 0kong_upstream_target_health{upstream="<upstream_name>",target="<target>",address="<ip>:<port>",state="healthy",subsystem="http"} 1kong_upstream_target_health{upstream="<upstream_name>",target="<target>",address="<ip>:<port>",state="unhealthy",subsystem="http"} 0kong_upstream_target_health{upstream="<upstream_name>",target="<target>",address="<ip>:<port>",state="dns_error",subsystem="http"} 0
评论