CloudWatch 代理收集的 Prometheus 指标 - Amazon CloudWatch
AWS 文档中描述的 AWS 服务或功能可能因区域而异。要查看适用于中国区域的差异,请参阅中国的 AWS 服务入门

CloudWatch 代理收集的 Prometheus 指标

Support for Prometheus metrics is in beta. The beta is open to all AWS accounts and you do not need to request access. Features may be added or changed before announcing General Availability. Don’t hesitate to contact us with any feedback or let us know if you would like to be informed when updates are made by emailing us at containerinsightsfeedback@amazon.com

具有 Prometheus 支持的 CloudWatch 代理可自动从多个服务和工作负载收集指标。以下部分列出了这些指标。您还可以将代理配置为从其他应用程序和服务收集其他 Prometheus 指标。

所有 Prometheus 指标都收集在 ContainerInsights/Prometheus 命名空间中。

App Mesh 的 Prometheus 指标

从 App Mesh 自动收集以下指标。

CloudWatch Container Insights 还可以收集 App Mesh Envoy 访问日志。有关更多信息,请参阅(可选)启用 App Mesh Envoy 访问日志

指标名称 维度

envoy_http_downstream_rq_total

ClusterName,Namespace

envoy_http_downstream_rq_xx

ClusterName,Namespace

ClusterName,Namespace,envoy_http_conn_manager_prefix,envoy_response_code_class

envoy_cluster_upstream_cx_rx_bytes_total

ClusterName,Namespace

envoy_cluster_upstream_cx_tx_bytes_total

ClusterName,Namespace

envoy_cluster_membership_healthy

ClusterName,Namespace

envoy_cluster_membership_total

ClusterName,Namespace

envoy_server_memory_heap_size

ClusterName,Namespace

envoy_server_memory_allocated

ClusterName,Namespace

envoy_cluster_upstream_cx_connect_timeout

ClusterName,Namespace

envoy_cluster_upstream_rq_pending_failure_eject

ClusterName,Namespace

envoy_cluster_upstream_rq_pending_overflow

ClusterName,Namespace

envoy_cluster_upstream_rq_timeout

ClusterName,Namespace

envoy_cluster_upstream_rq_try_per_timeout

ClusterName,Namespace

envoy_cluster_upstream_rq_rx_reset

ClusterName,Namespace

envoy_cluster_upstream_cx_destroy_local_with_active_rq

ClusterName,Namespace

envoy_cluster_upstream_cx_destroy_remote_active_rq

ClusterName,Namespace

envoy_cluster_upstream_rq_maintenance_mode

ClusterName,Namespace

envoy_cluster_upstream_flow_control_paused_reading_total

ClusterName,Namespace

envoy_cluster_upstream_flow_control_resumed_reading_total

ClusterName,Namespace

envoy_cluster_upstream_flow_control_backed_up_total

ClusterName,Namespace

envoy_cluster_upstream_flow_control_drained_total

ClusterName,Namespace

envoy_cluster_upstream_rq_retry

ClusterName,Namespace

envoy_cluster_upstream_rq_retry_success

ClusterName,Namespace

envoy_cluster_upstream_rq_retry_overflow

ClusterName,Namespace

envoy_server_live

ClusterName,Namespace

envoy_server_uptime

ClusterName,Namespace

NGINX 的 Prometheus 指标

从 NGINX 自动收集以下指标。

指标名称 维度

nginx_ingress_controller_nginx_process_cpu_seconds_total

ClusterName,Namespace,Service

nginx_ingress_controller_success

ClusterName,Namespace,Service

nginx_ingress_controller_requests

ClusterName,Namespace,Service

nginx_ingress_controller_nginx_process_connections

ClusterName,Namespace,Service

nginx_ingress_controller_nginx_process_connections_total

ClusterName,Namespace,Service

nginx_ingress_controller_nginx_process_resident_memory_bytes

ClusterName,Namespace,Service

nginx_ingress_controller_config_last_reload_successful

ClusterName,Namespace,Service

nginx_ingress_controller_requests

ClusterName,Namespace,Service,status

memcached 的 Prometheus 指标

从 memcached 中自动收集以下指标。

指标名称 维度

memcached_current_items

ClusterName,Namespace,Service

memcached_current_connections

ClusterName,Namespace,Service

memcached_limit_bytes

ClusterName,Namespace,Service

memcached_current_bytes

ClusterName,Namespace,Service

memcached_written_bytes_total

ClusterName,Namespace,Service

memcached_read_bytes_total

ClusterName,Namespace,Service

memcached_items_evicted_total

ClusterName,Namespace,Service

memcached_items_reclaimed_total

ClusterName,Namespace,Service

memcached_commands_total

ClusterName,Namespace,Service

ClusterName,Namespace,Service,command

ClusterName,Namespace,Service,status,command

Java/JMX 的 Prometheus 指标

Container Insights 可以使用 JMX Exporter 从 Java 虚拟机 (JVM)、Java 和 Tomcat (Catalina) 收集以下预定义的 Prometheus 指标。有关更多信息,请参阅 Github 上的 prometheus/jmx_exporter

Java/JMX

指标名称 维度

jvm_classes_loaded

ClusterName,Namespace

jvm_threads_current

ClusterName,Namespace

jvm_threads_daemon

ClusterName,Namespace

java_lang_operatingsystem_totalswapspacesize

ClusterName,Namespace

java_lang_operatingsystem_systemcpuload

ClusterName,Namespace

java_lang_operatingsystem_processcpuload

ClusterName,Namespace

java_lang_operatingsystem_freeswapspacesize

ClusterName,Namespace

java_lang_operatingsystem_totalphysicalmemorysize

ClusterName,Namespace

java_lang_operatingsystem_freephysicalmemorysize

ClusterName,Namespace

java_lang_operatingsystem_openfiledescriptorcount

ClusterName,Namespace

java_lang_operatingsystem_availableprocessors

ClusterName,Namespace

jvm_memory_bytes_used

ClusterName,Namespace,area

jvm_memory_pool_bytes_used

ClusterName,Namespace,pool

注意

area 维度的值可以是 heapnonheap

pool 维度的值可以是 Tenured GenCompress Class SpaceSurvivor SpaceEden SpaceCode CacheMetaspace

Tomcat/JMX

除了上表中的 Java/JMX 指标外,还收集 Tomcat 工作负载的以下指标。

指标名称 维度

catalina_manager_activesessions

ClusterName,Namespace

catalina_manager_rejectedsessions

ClusterName,Namespace

catalina_globalrequestprocessor_bytesreceived

ClusterName,Namespace

catalina_globalrequestprocessor_bytessent

ClusterName,Namespace

catalina_globalrequestprocessor_requestcount

ClusterName,Namespace

catalina_globalrequestprocessor_errorcount

ClusterName,Namespace

catalina_globalrequestprocessor_processingtime

ClusterName,Namespace

HAProxy 的 Prometheus 指标

从 HAProxy 自动收集以下指标。

指标名称 维度

haproxy_backend_bytes_in_total

ClusterName,Namespace,Service

haproxy_backend_bytes_out_total

ClusterName,Namespace,Service

haproxy_backend_connection_errors_total

ClusterName,Namespace,Service

haproxy_backend_current_queue

ClusterName,Namespace,Service

haproxy_backend_current_session_rate

ClusterName,Namespace,Service

haproxy_backend_current_sessions

ClusterName,Namespace,Service

haproxy_backend_http_responses_total

ClusterName,Namespace,Service,code,backend

haproxy_backend_limit_sessions

ClusterName,Namespace,Service

haproxy_backend_max_queue

ClusterName,Namespace,Service

haproxy_backend_mex_session_rate

ClusterName,Namespace,Service

haproxy_backend_mex_sessions

ClusterName,Namespace,Service

haproxy_backend_redispatch_warnings_total

ClusterName,Namespace,Service

haproxy_backend_response_errors_total

ClusterName,Namespace,Service

haproxy_backend_retry-warnings_total

ClusterName,Namespace,Service

haproxy_backend_up

ClusterName,Namespace,Service

haproxy_backend_weight

ClusterName,Namespace,Service

haproxy_backend_bytes_in_total

ClusterName,Namespace,Service

haproxy_frontend_bytes_in_total

ClusterName,Namespace,Service

haproxy_frontend_bytes_out_total

ClusterName,Namespace,Service

haproxy_frontend_connections_total

ClusterName,Namespace,Service

haproxy_frontend_current_session_rate

ClusterName,Namespace,Service

haproxy_frontend_current_sessions

ClusterName,Namespace,Service

haproxy_frontend_http_requests_total

ClusterName,Namespace,Service

haproxy_frontend_http_responses_total

ClusterName,Namespace,Service,code,frontend

haproxy_frontend_limit_session_rate

ClusterName,Namespace,Service

haproxy_frontend_limit_sessions

ClusterName,Namespace,Service

haproxy_frontend_max_session_rate

ClusterName,Namespace,Service

haproxy_frontend_max_sessions

ClusterName,Namespace,Service

haproxy_frontend_request_errors_total

ClusterName,Namespace,Service

haproxy_frontend_requests_denied_total

ClusterName,Namespace,Service

注意

code 维度的值可以是 1xx2xx3xx4xx5xxother

backend 维度的值可以是 error413error495error496error503noendpointshttp-default-backendupstream-default-backend 或其他值。

frontend 维度的值可以是 error503noendpointshttpfront-default-backendstate/code> healthz 或其他值。