关注分享主机优惠活动
国内外VPS云服务器

使用 Envoy 作为 Sidecar 代理的微服务模型 - 4. Prometheus 指标收集

摘要:本博客是深入探讨微服务以及它们如何实现更优雅的连接和管理方式的系列文章的一部分。 自动发现的优点是不需要修改配置文件。 显示屏已显示两个现成的模板。

本博客是深入研究 Envoy Proxy 和 Istio.io 并解释如何以更复杂的方式连接和管理微服务的系列文章的一部分。部门。

以下是接下来几部分的一些想法(链接发布后我将立即更新):

断路器(第 1 部分)

重新尝试/超时(第 2 部分)

分布式跟踪(第 3 部分)

收集 Prometheus 指标(第 4 部分)

速率限制器(第 5 部分)

p>第 4 部分 -使用 Prometheus 收集 envoy 指标配置 Envoy 和供应指标

在 envoy1.9 版本中,prometheus 格式为直接公开指标,即prometheus,可以直接采集。 您不需要配置 Statsd 来收集指标。 概括地说,使用 statsd 的过程如下: 首先,Envoy 将指标推送到 statsd,然后使用 prometheus(时间序列数据库)从 statsd 中拉取指标。 。

用于配置 Envoy 的配置文件具有以下设置:

admin: access_log_path: "/dev/null" address:socket address: address: 0.0 port_value: 9000 

admin: access_log_path: "/dev/null" p>
 pre>

一旦 Envoy 成功启动,访问 localhost:9000/stats/prometheus 可以返回如下参数:

# 类型 envoy_listener_admin_http_downstream_rq_completed counterenvoy_listener_admin_http_downstream_rq_completed{envoy_http_conn_manager_prefix =“admin”} 3154#类型envoy_listener_admin_http_downstream_rq_xx counterenvoy_listener_admin_http_downstream_rq_xx {envoy_response_code_class =“1”,envoy_http_conn_manager_prefix =“admin”} 0#类型特使_listener_admin_downstream_cx_total 计数器envoy_listener_admin_downstream_cx_total{} 146346envoy_listener_admin_http_downstream_rq_xx{envoy_response_code_class="5",envoy_http_conn_manager_prefix="admin"} 0envoy_listener_admin_ http_downstream_rq_xx{ envoy_response_code_class="3",envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_listener_admin_downstream_pre_cx_timeout counterenvoy_listener_admin_downstream_pre_cx_timeout{} 0# 类型 envoy_listener_admin_no_filter_chain_match counterenvoy_listener_admin_no_filter_chain_match{} 0# 类型 envoy_listener_admin_downstream_cx_destroy counterenvoy_listener_admin_downstream_cx_destroy{} 146344envoy_listener_admin_http_downstream_rq_xx{envoy_response_code_class="2",envoy_http_conn_manager_prefix="admin"} 3 154envoy_list _admin_http_downstream_rq_xx{envoy_response_code_class="4",envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_cluster_upstream_flow_control_paused_reading_total counterenvoy_cluster_upstream_flow_control_paused_reading_total{envoy_cluster_name="Hawkeye ” } 0# 类型 envoy_cluster_membership_change counterenvoy_cluster_membership_change{envoy_cluster_name="Hawkeye"} 1# 类型 envoy_cluster_ext_authz_denied counterenvoy_cluster_ext_authz_denied{envoy_cluster_name="Hawkeye"} 15# 类型stream_rq_completed Envoy_cluster_upstream_rq_completed{envoy_cluster_name="Hawkeye"} 255# 类型 envoy_cluster_upstream_rq_pending_failure_eject counterenvoy_cluster_upstream_rq_pending_failure_eject{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_connect_ Try_exceeded uster ter_upstream_cx_connect_attempts_exceeded{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_timeout counterenvoy_cluster_upstream_rq_timeout{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_r q counterenvoy_cluster_upstream_rq { envoy_response_code="204",envoy_cluster_name="hawkeye"} 2# 类型 envoy_cluster_upstream_cx_connect_timeout counterenvoy_cluster_upstream_cx_connect_timeout{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_cx_none_healthy _upstream_cx_none_healthy{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_pending_total counterenvoy_cluster_upstream_rq_pending_total{envoy_cluster_name="Hawkeye"} 6# 类型 envoy_cluster_internal_upstream_rq_completed counterenvoy_cluster_internal_upstream_rq _completed{envoy_cluster_name ="鹰眼"} 15envoy_cluster_upstream_rq{envoy_response_code="200",envoy_cluster_name="鹰眼"} 209envoy_cluster_upstream_rq{envoy_response_code = "503",envoy_cluster_name="Hawkeye"} 29# 类型 envoy_cluster_lb_local_cluster_not_ok counterenvoy_cluster_lb_local_cluster_not_ok{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_zone_routing_sampled _sampled{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cl uster_upstream_cx_connect_fail counterenvoy_cluster_upstream_cx_connect_fail{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_retry_success counterenvoy_cluster_upstream_rq_retry_success{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_bind_errors counterenvoy_cluster_bind_errors{envoy_cluster_name="Hawkeye"} 0# 特使_cluster_upstream_cx_total counterenvoy_cluster_upstream_cx_total{envoy_cluster_name="Hawkeye"} 6# 类型 envoy_cluster_lb_zone_number_differs counterenvoy_cluster_lb_zone_number_differs { envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_original_dst_host_invalid counterenvoy_cluster_original_dst_host_invalid{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_zone_no_capacity_left counterenvoy_cluster_lb_zone_no_capacity_left{envoy_cluster_name="Hawkey e"} 0# 类型 envoy_cluster_upstream_cx_max_requests counterenvoy_cluster_upstream_cx_max_requests{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_rq_per_try_timeout counterenvoy_cluster_upstream_rq_per_try_timeout{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_rq_retry_overflow ster_upstream_rq_retry_overflow {envoy_ cluster_ name="Hawkeye"} 0# 类型 envoy_cluster_external_upstream_rq counterenvoy_cluster_external_upstream_rq{envoy_response_code="204",envoy_cluster_name="Hawkeye" } 2envoy_cluster_external_upstream_rq{envoy_response_code="503",envoy_cluster_name="Hawkeye"} 29# 类型 envoy_cluster_upstream_cx_rx_bytes_total counterenvoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name="Hawkeye"} 326# 类型 envoy_cluster_up Stream_c x_http1_total counterenvoy_cluster_upstream_cx_http1_total{envoy_cluster_name="Hawkeye"}6# 类型 envoy_cluster_upstream_rq_pending_overflow 计数器envoy_cluster_upstream_rq_pending_overflow{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_zone_routing_cross_zone 计数器envoy_cluster_lb_zone_routing_cross_zone{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_lb_subset s _created counterenvoy_cluster_lb_subsets_created{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_flow_control_backed_up_total counterenvoy_cluster_upstream_flow_control_backed_up_total{envoy_cluster_name="Hawkeye"} 0 # 类型 envoy_cluster_upstream_flow_control_drained_total counterenvoy_cluster_upstream_flow_control_drained_total{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_external_upstream_rq_xx counterenvoy_cluster_external_upstream_rq_xx{envoy_response_code_class="2", envoy_cluster_name="Hawkeye"} 211# 类型 envoy_cluster_upstream_rq_cancelled counterenvoy_cluster_upstream_rq_cancelled{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_subsets_removed counterenvoy_cluster_lb_subsets_removed{envoy_cluster_name="Hawkeye"} 0envoy_cluster_upstream_ rq{ en voy_response_code="401",envoy_cluster_name="Hawkeye"} 15# 类型 envoy_cluster_retry_or_shadow_abandoned counterenvoy_cluster_retry_or_shadow_abandoned { envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_cx_tx_bytes_total counterenvoy_cluster_upstream_cx_tx_bytes_total{envoy_cluster_name="hawkeye"} 179523# 类型 envoy_cluster_lb_zone_cluster_too_small counterenvoy_cl uster_ cluster_ name="Hawkeye"} 0# 类型 envoy_cluster_external_upstream_rq_completed counterenvoy_cluster_external_upstream_rq_completed{envoy_cluster_name="Hawkeye"} 240# 类型 envoy_cluster_internal_upstream_rq_xx counterenvoy_cluster_internal_upstream_rq_xx{envoy_response_code_class="4",envoy_cluster_name="Hawkeye"} 15# 类型 envoy_cluster_lb_recalculate_zone_struct counterenvoy_cluster_lb_recalc ulate_zone_structs{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_destroy_with_active_rq counterenvoy_cluster_upstream_cx_destroy_with_active_rq{envoy_cluster_name= "Hawkeye" } 0# 类型 envoy_cluster_lb_subsets_fallback counterenvoy_cluster_lb_subsets_fallback{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_xx counterenvoy_cluster_upstream_rq_xx{envoy_response_code_class="5",envoy_cluster_name="Hawkeye" "} 29# 类型 envoy_cl uster_upstream_rq_total counterenvoy_cluster_upstream_rq_total{envoy_cluster_name="Hawkeye"} 240# 类型 envoy_cluster_update_no_rebuild counterenvoy_cluster_update_no_rebuild{envoy_cluster_name="Hawkeye"} 18890# 类型 envoy_cluster_upstream_cx_destroy counterenvoy_cluster_upstream_cx_destroy{ envoy_cluster_name="Hawkeye"} en 0#类型 voy_cluster_upstream_cx_destroy_local counterenvoy_cluster_upstream_cx_destroy_local{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_rx_reset counterenvoy_cluster_upstream_rq_rx_reset { envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_cx_destroy_remote_with_active_rq counterenvoy_cluster_upstream_cx_destroy_remote_with_active_rq{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_upstream_flow_control_resumed_reading_total 计数器 envoy_cluster_upstream_ flow _control _resumed_reading_total{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_update_attempt counterenvoy_cluster_update_attempt{envoy_cluster_name="Hawkeye"} 18891# 类型 envoy_cluster_upstream_rq_maintenance_mode counterenvoy_cluster_upstream_rq_maintenance_mode{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_up date _failure counterenvoy_cluster_update_failure{envoy_cluster_name="hawkeye"} 0# 类型 envoy_cluster_ext_authz_ok counterenvoy_cluster_ext_authz_ok{ envoy_cluster_name = "Hawkeye"} 460envoy_cluster_external_upstream_rq_xx{envoy_response_code_class="5",envoy_cluster_name="Hawkeye"} 29# 类型 envoy_cluster_internal_upstream_rq counterenvoy_response_code="401",envoy_cluster_name="Hawkeye"} 15# PE envoy_cluster _update _empty counterenvoy_cluster_update_empty{envoy_cluster_name =“鹰眼”} 0# 类型 envoy_cluster_lb_zone_routing_all_directly counterenvoy_cluster_lb_zone_routing_all_directly{envoy_cluster_name="Hawkeye"} 0envoy_cluster_upstream_rq_xx{envoy_response_code_class="2",envoy_cluster_name="Hawkeye"} 211# 类型 envoy_ cluster_upstream_cx_http2_to tal counterenvoy_cluster_upstream_cx_http2_total{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_destroy_remote counterenvoy_cluster_upstream_cx_destroy_remote{envoy_cluster_name="鹰眼" " } 0# 类型 envoy_cluster_upstream_rq_retry counterenvoy_cluster_upstream_rq_retry{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_destroy_local_with_active_rq counterenvoy_cluster_upstream_cx_destroy_local_with_active_rq{envoy_clu ster_name="Hawkey e"} 0# TY PE envoy_cluster_upstream_cx_overflow counterenvoy_cluster_upstream_cx_overflow{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_protocol_error counterenvoy_cluster_upstream_cx_protocol_error{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_tx_reset counterenvoy_cluster_upstream {en voy_ cluster ter_name="Hawkeye"} 0# 类型 envoy_cluster_lb_healthy_panic counterenvoy_cluster_lb_healthy_panic{envoy_cluster_name="Hawkeye"} 0# 类型envoy_cluster_upstream_cx_idle_timeout counterenvoy_cluster_upstream_cx_idle_time out { envoy_cluster_name="Hawkeye"} 0envoy_cluster_upstream_rq_xx{envoy_response_code_class="4",envoy_cluster_name="Hawkeye"} 15envoy_cluster_external_upstream_rq{envoy_response_code="20 0",envoy_cluster_name="Hawkeye"} TYPE en voy_cluster_lb_subsets_selected counterenvoy_cluster_lb_subsets_selected{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_update_success counterenvoy_cluster_update_success{envoy_cluster_name="Hawkeye"} 18891# 类型 envoy_cluster_upstream_cx_close_notify counterenvoy_cluster_upstream_cx_close_notify{envoy_cluster_name="Hawkeye" "} 0envoy_cluster_upstream_ cx _ close_notify{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_tx_reset{envoy_cluster_name=" ext [ k4 ]authz"} 0envoy_cluster_lb_local_cluster_not_ok{envoy_cluster_name="ext-authz"} 0envoy_cluster_update_no_rebuild{envoy_cluster_name="ext-authz"} 18890envoy_cluster_upstream_rq{envoy_response_code="401",envoy_cluster _name ="ext- 授权"} 15envoy_cluster_upstream_cx_overflow{ envoy_cluster_name = "ext-authz"} 0envoy_cluster_internal_upstream_rq{envoy_response_code="200",envoy_cluster_name="ext-authz"}460envoy_cluster_upstream_rq_xx{envoy_response_code_class="4",envoy_cluster_name="ext-authz"} 15envoy_cluster_upstream_flow_control_paused_reading_total{envoy_cluster_name="ext-authz"} 0envoy_cluster_internal_upstream_rq_xx {envoy_response_code_class=" 2",envoy_cluster_name="ext-authz"} 460envoy_cluster_upstream_cx_tx_bytes_total { envoy_cluster_name="ext-authz"} 142288envoy_cluster_update_empty{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_cancelled{envoy_cluster_name="ext-authz"} 0envoy_cluster_ upload_cx_destro y_remote{envoy_cluster _name="ext[ k4]authz"} 0envoy_cluster_upstream_rq_timeout{ envoy_cluster_name = "ext-authz"} 0envoy_cluster_upstream_rq_retry{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_protocol_error{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_destroy_local{envoy_cluster_name="ext-authz"} 0envoy_cluster_update_attempt{envoy_cluster_name="ext-authz"} 18891envoy_cluster_upstream_rq_retry_overflow{envoy_cluster_name="ex t-authz"} 0en voy _cluster ter_upstream_cx_idle_timeout{envoy_cluster_name =“ext [k4 ] authz " } 0envoy_cluster_lb_zone_routing_sampled{envoy_cluster_name="ext-authz"} 0envoy_cluster_original_dst_host_invalid{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_flow_control_resumed_reading_total{envoy_cluster_name="]authz" } 0 envoy_cluster_upstream_rq_pending_failure_eject{envoy_cluster_name="ext-authz " } 0envoy_cluster_upstream_rq_per_try_timeout {envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_max_requests{envoy_cluster_name="ext-authz"} 0envoy_cluster_upload_cx_http2_total{envoy_cluster_name="ext-authz"} 0envoy_cluster_lb_zone_no_capacity_left{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_http1_total{envoy_cluster_name="ext-authz"} _cluster_upstream_rq_xx{en ponse_code_class =“2”,envoy_cluster_name =“ext [ k4]authz"} 460envoy_cluster_upstream_rq{envoy_response_code="200",envoy_cluster_name="ext-authz"} 460envoy_cluster_update_success{envoy_cluster_name="ext-authz"} 18891envoy_cluster_lb_subsets_fallback{envoy_cluster _name="ext[ k4]authz“} 0envoy_cluster_lb_healthy_panic{ envoy_cluster_name = "ext-authz"} 0envoy_cluster_upstream_cx_destroy{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_connect_fail{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_ cx_connect_attempts_exceeded{ envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_total{envoy_cluster_name="ext-authz"} 4envoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name="ext-authz"} 80016envoy_cluster_internal _upstream_rq_completed{envoy_ cluster_name="ext-authz"} 475envoy_cluster_lb_zone_number_differs { envoy_cluster_name = "ext-authz"} 0envoy_cluster_lb_zone_routing_all_directly{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_pending_total{envoy_cluster_name="ext-authz"} 4envoy_cluster_lb_subsets_created{envoy_c name="ext[k4 ]authz"} 0envoy_cluster_upstream_rq_retry_success{ envoy_cluster_name =“ext -authz”} 0envoy_cluster_internal_upstream_rq_xx {envoy_response_code_class =“4”,envoy_cluster_name =“ext -authz”} 15envoy_cluster_upstream_rq_maintenance_mode {envoy_cluster_name="ext-authz"} 0envoy_cluster_lb_zone_routing_cross_zone{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_completed{envoy_cluster_name="ext-authz"} 475envoy_cluster_upstream_flow_control_drained_total{ envoy_cluster_name="ext - authz"} 0envoy_cluster_membership_change{envoy_cluster_name= “ext-authz”} 1envoy_cluster_upstream_cx_none_healthy{envoy_cluster_name="ext-authz"} 0envoy_cluster_bind_errors{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_rx_reset{envoy_cluster_name="ext-authz"} 0特使_cluster_upstream_cx_destroy_remote_with_active_rq {envoy_cluster_name =“ ext -authz"} 0envoy_cluster_upstream_flow_control_backed_up_total{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_connect_timeout{envoy_cluster_name="ext-authz"} 0envoy_cluster_update_failure{envoy_cluster_name="ext-authz"} 0envoy_cluster_lb_subsets_removed{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_destroy_with_active_rq{envoy_cluster_name="ext-authz"} 0envoy_cluster_lb_sub 集_已选择{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_rq_total { envoy_cluster_name="ext-authz"} 475envoy_cluster_internal_upstream_rq{envoy_response_code="401",envoy_cluster_name="ext-authz"} 15envoy_cluster_lb_recalculate_zone_structs{envoy_cluster_name="ext-authz" } 0envoy_cluster_lb_zone _cluster_too_small{envoy_cluster_name="ext -]authz“} 0envoy_cluster_upstream_rq_pending_overflow{envoy_cluster_name=”ext-authz”} 0envoy_cluster_retry_or_shadow_abandoned{envoy_cluster_name=”ext-authz”} 0envoy_cluster_upstream_cx_destroy_local_with_active_rq{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_connect_timeout{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_pending_failure_eject{envoy_cluster_name="sso"} 0envoy_cluster_upstream_paused_reading_flow_control_ uster _name="sso "} 0envoy_cluster_upstream_flow_control_drained_total{envoy_cluster_name="sso"} 0envoy_cluster_lb_local_cluster_not_ok{envoy_cluster_name= " sso “”} 0envoy_cluster_lb_subsets_created{envoy_cluster_name="sso"} 0envoy_cluster_lb_subsets_selected{envoy_cluster_name="sso"} 0envoy_cluster_lb_zone_routing_cross_zone{envoy_cluster_name="sso"} 0envoy_cluster_external_up stream_rq{envoy_response_code ="405" ,envoy_cluster_name="sso"} 1envoy_cluster_upstream_rq_timeout{envoy_cluster_name="sso" " 0envoy_cluster_external_upstream_rq_xx{envoy_response_code_class="4",envoy_cluster_name="sso"} 8envoy_cluster_external_upstream_rq_xx{envoy_response_code_class="2",envoy_cluster_name="sso"} 13envoy_cluster_upstream_cx_overflow{envoy_cluster_name="sso"} ster_upstream_rq_per_try_time out{envoy_ cluster_名称=“sso”} 0envoy_cluster_upstream_cx_max_requests {envoy_cluster_name =“ sso“”} 0envoy_cluster_upstream_cx_destroy_remote_with_active_rq{envoy_cluster_name="sso"} 0envoy_cluster_retry_or_shadow_abandoned{envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_close_notify{envoy_cluster_name="sso"} _time out {envoy_cluster_name =“sso”} 0envoy_cluster_upstream_rq {envoy_response_code =“415”,envoy_cluster_name =“sso” 1envoy_cluster_upstream_cx_destroy_with_active_rq {envoy_cluster_name =“sso”} 0envoy_clusterr_lb_zone_cluster_too_small{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_xx{envoy_response_code_class="4",envoy_cluster_name="sso"} 8envoy_cluster_upstream_rq{envoy_response_code="401",envoy_cluster_name="sso"} 6 envoy_cluster_upstream_rq{ voy_response_code =“405”,envoy_cluster_name =“sso” } 1envoy_cluster_upstream_flow_control_backed_up_total{envoy_cluster_name="sso"} 0envoy_cluster_external_upstream_rq{envoy_response_code="401",envoy_cluster_name="sso"} 6envoy_cluster_external_upstream_rq{envoy_response_code="415", envoy_cluster_name="sso" 1envoy_cluster_upstream_rq_retry{envoy_cluster_name="sso"} 0envoy_cluster_lb_zone_no_capacity_left{envoy_cluster_name= “ sso”“}”} 0envoy_cluster_upstream_cx_http1_total{envoy_cluster_name =“sso”} 7envoy_cluster_upstream_rq_total {envoy_cluster_name =“sso”} 21envoy_cluster_upstream_cx_protocol_error{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_tx_reset{envoy_cluster_name="sso"} 0envoy_cluster_update_success{envoy_cluster_name="sso"} 18891envoy_cluster_upstream_ rq_completed{envoy_cluster_name=" sso"} 21envoy_cluster_external_upstream_rq{envoy_response_code="200",envoy_cluster_name="sso"} 13envoy_cluster_upstream_cx_destroy{ envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_destroy_local{envoy_cluster_name="sso"} 0envoy_cluster_lb_recalculate_zone_structs{envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_tx_bytes_total{envoy_cluster_name="sso"} 13072 envoy_cluster_上游stream_rq_pending_overflow{envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_total{envoy_cluster_name="sso"} 7envoy_cluster_lb_subsets_fallback{ envoy_cluster_name="sso"} 0envoy_cluster_original_dst_host_invalid{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_pending_total{envoy_cluster_name="sso"} 7envoy_cluster_upstream_rq_cancelled{envoy_cluster_name="sso"} _rq_maintenance_mode{envoy _cluster_name="sso “”} 0envoy_cluster_upstream_rq_retry_success{envoy_cluster_name="sso"} 0envoy_cluster_lb_healthy_panic{envoy_cluster_name =“ sso”} 0envoy_cluster_upstream_cx_http2_total{envoy_cluster_name =“sso”} 0envoy_cluster_update_failure {envoy_cluster_name =“sso”} 0envoy_cluster_upstream_cx_connect_fail {envoy_cluster_name =“sso”} 0envoy_cluster_update_attemp t {envoy_cluster_name =“sso” 1 8891envoy_cluster_upstream_flow_control_resumed_reading_total{envoy_cluster_name="sso"} 0envoy_cluster_update_empty{envoy_cluster_name =“sso”} 0envoy_cluster_upstream_cx_destroy_remote{envoy_cluster_name="sso"} 0envoy_cluster_update_no_rebuild{envoy_cluster_name="sso"} 18890envoy_cluster_bind_errors{envoy_cluster_name="sso"} 0envoy_cluster_lb_subsets_removed{envoy_c Glosser_name="sso"} 0envoy _cl uster _upstream_cx_connect_attempts_exceeded{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_retry_overflow{envoy_cluster_name="sso" } 0envoy_cluster_upstream_rq_xx { envoy_response_code_class="2",envoy_cluster_name="sso"} 13envoy_cluster_lb_zone_number_differs{envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name="sso"} 12934envoy_cluster_lb _ zone_rou ting_sampled{envoy_cluster_name =“sso”} 0envoy_cluster_lb_zone_routing_all_directly{envoy_cluster_name =“sso”} 0envoy_cluster_upstream_cx_destroy_local_with_active_rq {特使_cluster_name="sso"} 0envoy_cluster_upstream_rq_rx_reset{envoy_cluster_name="sso"} 0envoy_cluster_upstream_cx_none_healthy{envoy_cluster_name="sso"} 0envoy_cluster_membership_change{envoy_cluster_name="sso"} 1envoy_cluster_external{envoy_cl uster_name="sso"} 21envoy_cluster_upstream_rq{envoy_response_code="200",envoy_cluster_name =“ sso”} 13# 类型 envoy_http_downstream_rq_too_large counterenvoy_http_downstream_rq_too_large{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_protocol_error counterenvoy_http_downstream_cx_protocol_error{envoy_http_conn_manager_prefix="ad min"} 0#类型 envoy_http _downstream_rq_timeout counterenvoy_http_downstream_rq_timeout{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_runtime_load_error counterenvoy_runtime_load_err或 {} 0# TYPE envoy_runtime_override_dir_not_exists counterenvoy_runtime_override_dir_not_exists{} 0# TYPE envoy_http_no_cluster counterenvoy_http_no_cluster{envoy_http_conn_manager_prefix="async-client"} 0# TYPE envoy_server_watchdog_miss counterenvoy_server_ watchdog_miss{ } 0# TYPE envoy _http_downstream_rq_xx counterenvoy_http_downstream_rq_xx{envoy_response_code_class="3",envoy_http_conn_manager_prefix="admin " } 0# 类型 envoy_cluster_manager_cluster_removed counterenvoy_cluster_manager_cluster_removed{} 0# 类型 envoy_http_downstream_cx_upgrades_total counterenvoy_http_downstream_cx_upgrades_total{envoy_http_conn_manager_prefix="admin"} 0# 类型 Glosser_manager_update_merge _cancelled counterenvoy _cluster_manager_update_merge_cancelled{} 0# 类型 envoy_http_downstream_cx_overload_disable_keepalive counterenvoy_http_downstream_cx_overload_disable_keepalive{envoy_http_conn_manager_prefix="admin"} 0envoy_http_downstream_rq_xx{envoy_response_code_class="1",envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_destroy envoy_http_downstream_des troy{envoy_http_conn_manager_prefix="管理员"} 146344envoy_http_downstream_rq_xx{envoy_response_code_class="5",envoy_http_conn_manager_prefix="管理员"} 0 # 类型 envoy_http_downstream_cx_tx_bytes_total counterenvoy_http_downstream_cx_tx_bytes_total{envoy_http_conn_manager_prefix="admin"} 155797820 # 类型 envoy_http_downstream_cx_drain_close counterenvoy_http_downstream_cx_drain_close{envoy_http_conn_ ="admin" } 0 # 类型 envoy_http_downstream_cx_destroy_local_active_rq counterenvoy_http_downstream_cx_destroy_local_active_rq{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_destroy_active_rq counterenvoy_http_downstream_cx_destroy_active_rq{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_destroy_local y_http_downstream_cx _local {envoy_http_conn_manager_prefix =“经理”} 0envoy_http_downstream_rq_xx {envoy_response_code_class =“2”,envoy_http_conn_manager_prefix =“经理”} 3154#类型第3155章 3155总 counterenvoy_http_downstream_cx _total{envoy_http_conn_manager_prefix="经理"} 146346# 类型 envoy_runtime_load_success counterenvoy_runtime_load_success{} 0# 类型 envoy_filesystem_reopen_failed counterenvoy_filesystem_reopen_failed{} 0# 类型 envoy_http_downstream_rq_total counterenvoy_http_downstream_rq_total{envoy_http_conn_manager_prefix="admin"} 5# 类型 envoy_http_下游_ rq_rx_reset counterenvoy_http_downstream_rq_rx_reset{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_cluster_manager_cluster_modified counterenvoy_cluster_manager_cluster_modified{} 0# 类型 envoy_http_downstream_rq_idle _timeout counterenvoy_http_downstream_rq_idle_ timeout{ envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_destroy_remote_active_rq counterenvoy_http_downstream_cx_destroy_remote_active_rq{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_ssl_total counterenvoy_http_downstream_cx_ssl_total{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_layed_close_timeout counterenvoy_http_downstream_cx_layed_close_timeout{envoy_http_conn_manager_prefix="admin"} 0# 类型 envo y_cluster_man _update_out_of_merge_window counterenvoy_cluster_manager_update_out_of_merge_window{} 0# 类型 envoy_http_downstream_flow_control_resumed_reading_total counterenvoy_http_downstream_flow_control_resumed_reading_total{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_listener_manager_listener _added counterenvoy_监听器管理器监听器添加{} 1 # 类型 envoy_http_downstream_rq_overload_close counterenvoy_http_downstream_rq_overload_close{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_http2_total counterenvoy_http_downstream_cx_http2_total{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_listener_manager_listener_create_failure counterenvoy_listener_manager_listener_create_failure{} 0# 类型 envoy_stats_overflow counterenvoy_stats_overflow{} 0# 类型 envoy_listener_manager_list ener_create_成功 counterenvoy_listener_manager_listener_create_success{} 16# 类型 envoy_http_downstream_cx_http1_total counterenvoy_http_downstream_cx_http1_total{envoy_http_conn_manager_prefix="admin"} 2# 类型 envoy_http_no_route counterenvoy_http _no_route{ envoy_http_conn_manager_ prefix= "async-client"} 0# 类型 envoy_cluster_manager_cluster_updated counterenvoy_cluster_manager_cluster_updated{} 0# 类型 envoy_http_downstream_cx_destroy_remote counterenvoy_http_downstream_cx_destroy_remote{envoy_http_conn_manager_prefix="admin"} 146344# 类型 envoy_http_downstream_rq_non_relative_path counterenvoy_http_downstream_rq_non_relative_path{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_rs_too_large counterenvoy_http_rs_too_large{envoy_http_large conn_manager_prefix=" admin "} 0# 类型 envoy_http_downstream_rq_tx_reset counterenvoy_http_downstream_rq_tx_reset{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_server_watchdog_mega_miss counterenvoy_server_watchdog_mega_miss{} 0 # 类型 envoy_http_downstream_flow_control_paused_reading_total counterenvoy_http_downstream_flow_control_paused_reading_total{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_rx_bytes_total counterenvoy_http_downstream_cx_rx_bytes_total{envoy_http_conn_manage r_ prefix="管理员”} 795620# 类型envoy_http_downstream_rq_completed counterenvoy_http_downstream_rq_completed{envoy_http_conn_manager_prefix="admin"} 3154# 类型 envoy_listener_manager_listener_removed counterenvoy_http_downstream_rq_xx{envoy_response_code_ class="4",envoy_http_con n_manager_prefix="admin"} 0# envoy _http_r q_direct_response counterenvoy_http_rq_direct_response{envoy_http_conn_manager_prefix="async-client"} 0# 类型 envoy_filesystem_write_completed counterenvoy_filesystem_write_completed {} 3366# 类型 envoy_http_downstream_rq_ws_on_non_ws_route counterenvoy_http_downstream_rq_ws_on_non_ws_route{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_cluster_manager_cluster _updated_via_merge counterenvoy_cluster_manager_cluster_updated_via_m erge{} 0 # 类型 envoy_filesystem_flushed_by_timer counterenvoy_filesystem_flushed_by_timer{} 18495# 类型 envoy_filesystem_write_buffered counterenvoy_filesystem_write_buffered{} 3669# 类型 envoy_runtime_override_dir_exists counterenvoy_cluster_manager_clu ster_linked counteren voy_cluster_manager_cluster_linked{} 4# 类型 envoy_listener_ manager_listener_modified counterenvoy_listener_manager_listener_modified{} 0# 类型 envoy_http_downstream_rq_http2_total counterenvoy_http_downstream_rq_http2_total{envoy_http_conn_manager_prefix="ad min"} 0# 类型 envoy_http_downstream_r q_response_before_rq_complete counterenvoy_ http_downstream_rq_response _before_rq_complete{ envoy_http_conn_manager_prefix =“admin”} 0# 类型 envoy_http_downstream_cx_idle_timeout counterenvoy_http_downstream_cx_idle_timeout{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_rq_redirect counterenvoy_http_rq_redirect{envoy_http_conn_manager_prefix="async-client"} 0# 类型 envoy_listener_http_downstream_rq_xx counterenvoy_listener_http_downstream_rq_xx{envoy_ response_code_class="1" ,en voy_http_conn_manager_prefix =“ingress_http”,envoy_listener_address =“0.0.0.0_8000” } 0envoy_listener_http_downstream_rq_xx{envoy_response_code_class="2",envoy_http_conn_manager_prefix="ingress_http",envoy_listener_address="0.0.0.0_8000"} 456envoy_listener_http_downstream_rq_xx{envoy_response_code_class="4",envoy_ http_conn_manager _ prefix="ingress_http",envoy_listener_address="0.0.0.0_8000"} 30 # 类型 envoy_listener_downstream_pre_cx_timeout 计数器envoy_listener_downstream_pre_cx_timeout{envoy_listener_address="0.0.0.0_8000"} 0# 类型 envoy_listener_no_filter_chain_match counterenvoy_listener_no_filter_chain_match{envoy_listener_address="0.0.0.0_8000"} 0# 类型 envoy_listener_downstream_cx_total counterenvoy_listener_downstream_cx_total{envoy_listener_address="0.0.0 .0_ 8 000 “} 147370envoy_listener_http_downstream_rq_xx{envoy_response_code_class =“5”,envoy_http_conn_manager_prefix =“ingress_http” , envoy_listener_address = "0.0.0.0_8000"} 29envoy_listener_http_downstream_rq_xx{envoy_response_code_class="3",envoy_http_conn_manager_prefix="ingress_http",envoy_listener_address="0.0.0.0_8000"} 0# TYPE envoy_listener_downstream_cx_destroy_listen er_downstream_ cx_destroy{envoy_listener_address="0.0.0.0_8000"} 147369#类型 envoy_listener_http_downstream_rq_completed counterenvoy_listener_http_downstream_rq_已完成{envoy_http_conn_manager_prefix =“ingress_http”,envoy_listener_address =“0.0.0.0_8000”}515envoy_http_downstream_cx_destroy{envoy_http_conn_manager_prefix =“ingress_http”}147369envoy_http_downstream_rq_http1_total{envoy_http_conn _manager_pre修复= ing ress_http"} 515envoy_http_downstream_cx_destroy_local_active_rq{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_flow_control_resumed_reading_total{envoy_http_conn_manager_prefix="ingress_http "} 0 # 类型 envoy_http_tracing_health_check counterenvoy_http_tracing_health_check{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_rq_response_before_rq_complete{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_protocol_error{envoy_ http_conn_ manager_ prefix="ingress_http"} 2envoy_http_downstream_cx_destroy_remote{envoy_http_conn_manager_prefix="ingress_http"} 147367envoy_http_no_route{envoy_http_conn_manager_prefix="ingress_http"} 7envoy_http_rq_redirect{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_c x_http1_total{ en voy_http_conn_manager_prefix="ingress_http"} 41# 类型 envoy_http_tracing_random_sampling counterenvoy_http_tracing_random_sampling{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_total{envoy_http_conn_manager_prefix= “在gress_http“”} 147370envoy_http_downstream_cx_destroy_remote_active_rq{envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_rs_too_large{envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_rq_idle_timeout {envoy_http_conn_man _pre fix="ingress_http" "} 0envoy_http_downstream_cx_idle_timeout {envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_cx_rx_bytes_total {envoy_http_conn_manager_prefix =“ingress_http”} 306987envoy_http_downstream_rq_xx {envoy_response_code_class =“1”,envoy_http_conn_manage r_prefix =“ingress” _ http"} 0envoy_http_downstream_rq_ws_on_non_ws_route{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_rq_xx{envoy_response_code_class="3",envoy_http_conn_manager_prefix = " ingress_http" "} 0envoy_http_downstream_cx_overload_disable_keepalive{envoy_http_conn_manager_prefix="ingress_http"} 0# 类型 envoy_http_tracing_service_forced counterenvoy_http_tracing_service_forced{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_voy rain_close{en voy _http_conn _manager_prefix =“ingress_http”} 0envoy_http_downstream_cx_tx_bytes_total{envoy_http_conn_manager_prefix="ingress_http"} 227287envoy_http_downstream_cx_layed_close_timeout{envoy_http_conn_manager_prefix="ingress_http"} 2envoy_http_downstream_flow_control_paused_reading_total{envoy_http_conn_manager_prefix="ingress _http"} 0 envoy_http_downstream_rq_timeout{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_rq_rx_reset{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_destroy_local{envoy_http_conn_manager_prefix="ingress_http" 2 斯特{envoy_h ttp_conn_manager_prefix =“ingress_http”} 0#类型envoy_http_cors_origin_valid counterenvoy_http_cors_origin_valid {envoy_http_conn_manager_prefix =“ingress_http”} 485envoy_http_downstream_rq_completed {envoy_http_conn_manager_prefix =“ingress_http”} 515en voy_http_rq _总计{envoy_http_conn_manager_prefix =“ingress_http”} 268envoy_http_downstream_rq_tx_reset {envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_rq_total {envoy_http_conn_manager_prefix =“ ingress_http " } 515envoy_http_downstream_rq_overload_close{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_http2_total{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_destroy_active_rq{envoy_http_conn_manager_ prefix="ingress _http"} 0 envoy_http_downstream_rq_http2_total{envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_cx_upgrades_total {envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_rq_non_relative_path {envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_http_downstream_rq_xx {envoy_response_codevoy _class =“4”, en voy_http_conn_manager_prefix =“ingress_http”} 30envoy_http_downstream_rq_xx {envoy_response_code_class =“5”,envoy_http_conn_manager_prefix =“ingress_http” " } 29envoy_http_rq_direct_response{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_ssl_total{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_rq_too_large{envoy_http_conn_manager_prefix="ingress_ http"} 0envoy_ http_downstream_rq_xx{envoy_response_code_class =“2”,envoy_http_conn_manager_prefix =“ingress_http”} 456#类型envoy_http_tracing_client_enabled counterenvoy_http_tracing_client_enabled{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_cluster_upstream_cx_protocol_error{envoy_cluster_name="cost"} 0envoy_cluster_upstream_flow_control_paused_reading_total{envoy_cluster_name="cost"} 0envoy_ cluster_upstream_cx_http2 {en voy_cluster_name="成本"} 0envoy_cluster_lb_subsets_removed{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_http1_total{envoy_cluster_name="成本" } 0envoy_cluster_upstream_cx_close_notify {envoy_cluster_name="cost"} 0envoy_cluster_lb_zone_cluster_too_small{envoy_cluster_name="cost"} 0envoy_cluster_upstream_cx_max_requests{envoy_cluster_name="cost"} 0envoy_cluster_membership_change{envoy_cluster name = "cost"} 0envoy_ cluster _upstream_cx_destroy_local{envoy_cluster_名称“成本”} 0envoy_cluster_upstream_rq_cancelled{envoy_cluster_name="成本"} 0envoy_cluster_update_no_rebuild{envoy_cluster_name="成本"} 18872envoy_cluster_upstream_rq_timeout{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_rx_bytes_total{envoy_cluster_name="成本"} 0envoy _ cluster_lb _zone_no_capacity_left{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_destroy_local_with_active_rq{envoy_cluster_name="成本" } 0envoy_cluster_upstream_cx_total { envoy_cluster_name="cost"} 0envoy_cluster_upstream_rq_per_try_timeout{envoy_cluster_name="cost"} 0envoy_cluster_bind_errors{envoy_cluster_name="cost"} 0envoy_cluster_update_success{envoy_cluster_name="cost"} 18872envoy_cluster _ upload_rq_retry{envoy_cluster_name="成本"} 0envoy_cluster_upstream_rq_tx_reset{envoy_cluster_name="成本" " } 0envoy_cluster_upstream_rq_retry_success{zhvoy_cluster_name="cost"} 0envoy_cluster_upstream_cx_connect_attempts_exceeded{envoy_cluster_name="cost"} 0envoy_cluster_update_empty{envoy_cluster_name="cost"} 0envoy_cluster_upstream_cx_destroy_remote{envoy_cluster_name="cost"} _cluster_upstream_cx_tx_byte s_ 总计{ envoy_cluster_name="成本"} 0envoy_cluster_original_dst_host_invalid{envoy_cluster_name="成本"} 0envoy_cluster_update_failure{ envoy_cluster_name = "cost"} 0envoy_cluster_upstream_rq_pending_overflow{envoy_cluster_name="cost"} 0envoy_cluster_update_attempt{envoy_cluster_name="cost"} 18872envoy_cluster_upstream_cx_connect_timeout{envoy_cluster_name="cost"} 0envoy_cluster_lb_zone_rou{en voy_cluster_name="成本""} 0envoy_cluster_upstream_cx_none_healthy{envoy_cluster_name="成本"} 0envoy_cluster_retry_or_shadow_abandoned{envoy_cluster_name="成本"} 0envoy_cluster_upstream_flow_control_resumed_reading_total{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_connect_fail{envoy_cluster_name="成本"} 0envoy_cluster_name="成本"} 0envoy_cluster_lb_zone_routing_cross_zone_envoy_cluster_name ="成本"} 0envoy_cluster_upstream_rq_pending_total{envoy_cluster_name="成本"} 0envoy_cluster_lb_subsets_created { envoy_cluster_name ="成本"} 0envoy_cluster_upstream_rq_maintenance_mode{envoy_cluster_name="成本"} 0envoy_cluster_upstream_rq_completed{envoy_cluster_name="成本"} 0envoy_cluster_lb_healthy_panic{envoy_cluster_name="成本"} _zone_routing_sampled{envoy_cluster_name="成本"} 0envoy_cl uster_upstream _flow_control_drained_total{envoy_cluster_name="cost"} 0envoy_cluster_upstream_cx_destroy_remote_with_active_rq{envoy_cluster_name="cost"} 0envoy_cluster_lb_local_cluster_not_ok{envoy_cluster_name="cost"} 0envoy_cluster_upstream_flow_control_backed_up_total{envoy_cluster_name="cost"} 0envoy_cluster_reset{envoy_cluster_name="cost"} 0envoy_cluster_upstream_cx_destroy_with_active_rq{envoy_cluster_name="成本"} 0envoy_cluster_lb_subsets_fallback{envoy_cluster_name="成本"} 0envoy_cluster_lb_zone_number_differs { envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_idle_timeout{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_overflow{envoy_cluster_name="成本"} 0envoy_cluster_lb_subsets_selected{envoy_cluster_name="成本"} _up Stream_r q_total{envoy_cluster_name="成本"} 0envoy_cluster_upstream_cx_destroy{envoy_cluster_name="成本"}0envoy_cluster_lb_recalculate_zone_structs{envoy_cluster_name="cost"} 0envoy_cluster_upstream_rq_pending_failure_eject{envoy_cluster_name="cost"} 0# 类型 envoy_listener_admin_downstream_pre_cx_active 仪表 envoy_listener_admin_downstream_pre_cx_active{} 0# 类型 envoy_listener_admin_ 下游_cx_active 仪表 envoy_listener_admin_downstream_cx_active{} 2# 类型 envoy_cluster_upstream_cx_rx_bytes_buffered 仪表 envoy_cluster_upstream_cx_rx_bytes_buffered{envoy_cluster_name="Hawkeye"} 3402# 类型envoy_cluster_members_healthy 仪表 envoy_cluster_membership_healthy{envoy_cluster _name= "Hawkeye"} 1# 类型 envoy_cluster_ Circuit_breakers_high_cx_open 仪表 envoy_cluster_Circuit_breaks_high_cx_open{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_Circuit_breakers_default_rq_pending_open 仪表环境oy_cluster_ Circuit_breaks_default_rq_pending_open{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_cx_tx_bytes_buffered 仪表 envoy_cluster_upstream_cx_tx_bytes_buffered{envoy_cluster_name="Hawkeye"} 0# 类型 Circuit_breakers_high_rq_re try_open 仪表 envoy_cluster_circle_ Breaks_high_rq_retry_open{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_lb_subsets_active 计量表 envoy_cluster_lb_subsets_active{envoy_cluster_name="Hawkeye"} 0 # 类型 envoy_cluster_Circuit_breaker_default_cx_open 仪表 envoy_cluster_Circuit_breakers _default_cx_open{ envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_max_host_weight 仪表 envoy_cluster_max_host_weight{envoy_cluster_name="Hawkeye"} 1# 类型 envoy_cluster_Circuit_breaks_default_rq_retry_ open 仪表 envoy _集群电路断路器_default_rq_retry_open{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_version 计量表 envoy_cluster_version{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_membership_total 计量表 envoy_cluster_membership_total{envoy_cluster_name="Hawkeye"} 1# 类型 envo y_cluster_ Circuit_breakers_high _r q_pending_open 压力表 envoy_cluster_ Circuit_breakers_high_rq_pending_open{envoy_cluster_name="Hawkeye"} 0 # 类型 envoy_cluster_ Circuit_breaks_default_rq_open 仪表 envoy_cluster_Circuit_breakers_default_rq_open { envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_Circuit_breakers_high_rq_open 仪表 envoy_cluster_Circuit_breakers_high_rq_open{envoy_cluster_name="Hawkeye"} 0# envoy_cluster _upstream_cx_活跃仪表 envoy_cluster_upstream_cx_active{envoy_cluster name = "Hawkeye"} en 3# TYPE voy_cluster_upstream_rq_pending_active 仪表 envoy_cluster_upstream_rq_pending_active{envoy_cluster_name="Hawkeye"} 0# 类型 envoy_cluster_upstream_rq_active 仪表 envoy_cluster_upstream_rq_active{envoy_cluster_name="Hawkeye"} 0envoy_cluster_membership_healthy{envoy_cluster_name="ext -authz"} 1envoy _ cluster_ Circuit_breaks_default_rq_pending_open{envoy_cluster_name =“ext-authz”} 0envoy_cluster_ Circuit_breaks_default_rq_open{ envoy_cluster_name = " ext-authz"} 0envoy_cluster_membership_total{envoy_cluster_name="ext-authz"} 1envoy_cluster_circuster_breakers_default_rq_retry_open{envoy_cluster_name="ext-authz"} 0envoy_cluster_upstream_cx_active{envoy_cluster_name="ext- auth z"} 4 envoy_cluster_version {envoy_cluster_name =“ext-authz”} 0envoy_cluster_ Circuit_breakers_high_rq_pending_open{envoy_cluster_name =“ext-authz”} 0envoy_cluster_upstream_cx_rx_bytes_buffered{envoy_cluster_name=“ext-authz”} 714envoy_cluster_upstream_rq_pending_active{envoy_cluster_name=“ext-authz”} 0envoy_cluster_Circuit_breaks_high_c x_open{envoy_cluster_name=“ext [k 4]authz"} 0envoy_cluster_ Circuit_breakers_high_rq_retry_open{envoy_cluster_name =" ext" -authz"} 0envoy_cluster_max_host_weight{envoy_cluster_name="ext-authz"} 1envoy_cluster_upstream_rq_active{envoy_cluster_name="ext-authz"} 0envoy_cluster_ Circuit_breaks_high_rq_open{envoy_cluster_name="ext[k] 4]Auth"} 0en voy_cl uster_upstream_cx_tx_bytes_buffered{envoy_cluster_name =“ext-authz”} 0envoy_cluster_ Circuit_breaks_default_cx_open{envoy_cluster_name=“ext-authz”} 0envoy_cluster_lb_subsets_active{envoy_cluster_name=“ext-authz”} 0envoy_cluster_ Circuit_breakers_default_rq_open{envoy_cluster_name="sso"} 0envoy_cluster_upstream_rq_pending_active{envoy_cluster_name="sso"} 0envoy_cluster_membership_healthy{envoy_cluster_name="sso"}断路器 1envoy_cluster_ Circuit_pending_open{envoy_cluster _name="sso"} 0envoy_cluster _ Circuit_breaks_high_rq_open{envoy_cluster_name=“sso”} 0envoy_cluster_Circuit_breaks_high_rq_retry_open{envoy_cluster_name=“sso” } 0envoy_cluster_version { envoy_cluster_name =“sso”} 0envoy_cluster_circuster_breaks_high_cx_open {envoy_cluster_name =“sso”} 0envoy_cluster_membership_total {envoy_cluster_name =“sso”} 1envoy_cluster_upstream_cx_active{envoy_cluster_name =“sso”} 0envoy_clu ster_upstream_ c x_tx_bytes_buffered {envoy_cluster_name =“sso”} 0envoy_cluster_ Circuit_breakers_default_rq_pending_open {envoy_cluster_name =“sso”} 0envoy_cluster_lb_subsets_active{envoy_cluster_name=“sso”} 0envoy_cluster_upstream_cx_rx_bytes_buffered{envoy_cluster_name=“sso”} 0envoy_cluster_电路_breaks_default_cx_open{envoy_cluster_name=“sso”} 0envoy_cluster_upstream_rq_active{envoy_cluster_name ="sso"} 0envoy_cluster_max_host_weight{envoy_cluster_name="sso"} 1envoy_cluster_ Circuit_breakers_default_rq_retry_open{envoy_cluster_name= " sso" "} 0# 类型 envoy_filesystem_write_total_buffered 仪表 envoy_filesystem_write_total_buffered{} 0# 类型 envoy_http_downstream_cx_http1_active 仪表 envoy_http_downstream_cx_http1_active{envoy_http_conn_manager_prefix="admin"} 2# 类型 envoy_listener_manager_total_list eners_war ming 仪表 envoy_http_downstream_cx_http1_active voy_list ener_manager_total_listeners_warming{} 0# 类型 envoy_runtime_num_keys 仪表 envoy_runtime_num_keys{} 0#类型 envoy_http_downstream_cx_rx_bytes_buffered 仪表 envoy_http_downstream_cx_rx_bytes_buffered{envoy_http_conn_manager_prefix="admin"} 845# 类型 envoy_runtime_admin_overrides_active 仪表 envoy_runtime_admin_overrides_active{} 0# 类型 en_server_version voyenvoy_server_version{ } 365359 2# 类型 envoy_cluster_manager_active_clusters 仪表 envoy_cluster_manager_active_clusters{} 4# 类型 envoy_server_live 仪表 envoy_server_live{} 1# 类型 envoy_http_downstream_cx_ssl_active 仪表 envoy_http_downstream_cx_ssl_active{envoy_http_conn _manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_http2_active 仪表 envoy_http_downstream_cx_http2_active{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream _cx_tx_bytes_buffered 仪表 envoy_http_downstream_cx_tx_bytes_buffered{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_cx_upgrades_active 仪表 envoy_http_downstream_cx_upgrades_active{envoy_http_conn_manager_prefix="admin"} 0# 类型 envoy_http_downstream_rq_active 仪表 envoy_http_downstream_rq_active{envoy_http_conn_manager_prefix=" admin"} 1# 类型 envoy_http_downstream_cx_upgrades_active voy_listener_manager_total_listeners_active 仪表 envoy_listener_manager_total_listeners_active{} 1# 类型 envoy_server_parent_connections 仪表 envoy_server_parent_connections{} 0#类型 envoy_cluster_manager_warming_clusters 计量表 envoy_cluster_manager_warming_clusters{ } 0# 类型 envoy_http_downstream_cx_active 计量表 envoy_http_downstream_cx_active{envoy_http_conn_manager_prefix="admin"} 2# 类型 envoy_listener_manager_total_listeners_draining 计量表 envoy_listener_manager _to tal_listeners_draining{} 0# 类型 envoy_server_total_connections 计量 envoy_server_total_connections{} 1# 类型 envoy_server_concurrency 计量 envoy_server_concurrency{} 16# 类型 envoy_server_memory_alulated 计量 envoy_server_memory_alulated{} 4216000# 类型 envoy_server_hot_restart_epoch 计量 envoy_server _hot_restart _ epoch{} 0# 类型 envoy_server_up时间计量 envoy_server_uptime{} 94576# 类型 envoy_server_memory_heap_size 计量 envoy_server_memory_heap_size{} 6291456#类型 envoy_server_days_until_first_cert_expiring 仪表 envoy_server_days_until_first_cert_expiring{} 2 147483647#TYPE envoy_listener_downstream_cx_active 仪表 envoy_listener_downstream_cx_active{envoy_listener_address="0.0.0.0_8000"} 1# 类型 envoy_listener_down stream_pre_cx _active 仪表 envoy_listener_downstream_pre_cx_active{envoy_listener_address="0.0.0.0_8000"} 0envoy_http_downstream_cx_tx_bytes_buffered{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_upgrades_active{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_ssl_active{envoy_http_conn_manager_prefix="ingress_ http"} 0envoy_ http _downstream_cx_active{envoy_http_conn_manager_prefix="ingress_http"} 1envoy_http_downstream_cx_http1_active{envoy_http_conn_manager_prefix="ingress_http"} 1envoy_http_downstream_cx_http2_active{envoy_http_conn_manager_prefix="ingress_http"} 0envoy_http_downstream_cx_rx_bytes _buffered{ envoy_http_conn_manager_prefix =“ingress_http”} 403envoy_http_downstream_rq_active {envoy_http_conn_manager_prefix =“ingress_http”} 0envoy_cluster_upstream_rq_pending_active {envoy_cluster_name =“成本”} 0envoy_cluster_Circuit_breaker s_default_c x_open{envoy_cluster_name=“成本”} 0envoy_cluster_ Circuit_breaks_default_rq_pending_open{envoy_cluster_name=“成本”} 0envoy_cluster_upstream_rq_active{envoy_cluster_name=“成本”} 0envoy_cluster_circuster_breaks_high_rq_pending_open{envoy_cluster_name=“成本”“} 0envoy_cluster_circus_breakers _default_rq_open{envoy_cluster_name="cost"} 0envoy_cluster_max_host_weight{envoy_cluster_name="cost"} 1envoy_cluster_membership_total{ envoy_cluster_name = "cost"} 0envoy_cluster_circuster_breakers_high_cx_open{envoy_cluster_name="cost"} 0envoy_cluster_ Circuit_breakers_default_rq_retry_open{envoy_cluster_name="cost"} 0envoy_cluster_membership_healthy{envoy_cluster_name="cost"} {envoy_cluster_name="cost"} 0envoy_cluster_ upload_c x_active{envoy_cluster_name="成本"} 0envoy_cluster_Circuit_breakers_high_rq_retry_open{envoy_cluster_name=“成本”} 0envoy_cluster_ Circuit_breaks_high_rq_open{envoy_cluster_name=“成本”} 0envoy_cluster_lb_subsets_active{envoy_cluster_name=“成本”} 0envoy_cluster_upstream_cx_tx_bytes_buffered{envoy_clu ster_name=“成本”} 0envoy_cl uster _upstream_cx_rx_bytes_buffered{envoy_cluster_name="cost"} 0

配置prometheus envoy收集

实际测试时,envoy部署在k8s上,所以prometheus中并没有静态配置使用prometheus自动发现pod的功能。 自动发现的好处是安装 pod hpa 时不需要修改任何配置文件。

要收集 Envoy 指标,请将以下注释添加到您的 Envoy 部署中。

kind:DeploymentapiVersion:apps / v1metadata:name:gatewaylabels:app:gatewayspec:replicas:2selector:matchLabels:app:网关模板:元数据:标签:app:网关注释:prometheus.io/scrape:“真”普罗米特us.io/path: "/stats/prometheus" prometheus.io/port: "9000" 规格: 卷: - 名称: config configMap: 名称: Gateway-cm 容器: - 名称: Gateway 镜像: “envoyproxy/envoy:v1.9.0” env: - 名称: “CPUS” 值: “1” - 名称: “SERVICE_NAME” 值: “-gateway” 资源: 限制: cpu: “1” 内存: 1Gi 请求: cpu: "1" 内存: 1Gi volumeMounts: - name: config mountPath: /etc/envoy/ imagePullPolicy: Always 

请注意以下注释:

注释: prometheus.io/scrape: "true" prometheus.io/path: "/stats/prometheus" prometheus.io/port: "9000"

接下来,检查 prometheus 。检查管理界面中的指标。

Prometheus 成功收集指标。

查看 Grafana

grafana 仪表板已经有两个现成的模板。 简单介绍给大家吧。

具体来说,Envoy 全球仪表板 (7253) 和 Envoy 服务仪表板 (7250)。

最终效果为:

未经允许不得转载:主机频道 » 使用 Envoy 作为 Sidecar 代理的微服务模型 - 4. Prometheus 指标收集

评论 抢沙发

评论前必须登录!