我们有一个Spring (1.5.3)应用程序,它使用Micrometer.io和InfluxDB来收集度量,使用Grafana来显示它们。
当我查看InfluxDB记录时,我可以看到它中有以下指标的值:
dataSource_connections_active
dataSource_connections_max
dataSource_connections_min
jvm_buffer_count
jvm_buffer_memory_used
jvm_buffer_total_capacity
jvm_classes_loaded
jvm_classes_unloaded
jvm_gc_live_data_size
jvm_gc_max_data_size
jvm_gc_memory_allocated
jvm_gc_memory_promoted
jvm_gc_pause
jvm_memory_committed
jvm_memory_max
jvm_memory_used
jvm_threads_daemon
jvm_threads_live
jvm_threads_peak
jvm_threads_states
logback_events
process_cpu_usage
process_files_max
process_files_open
process_start_time
process_uptime
request_duration
system_cpu_count
system_cpu_usage
system_load_average_1m
tomcat_global_error
tomcat_global_received
tomcat_global_request
tomcat_global_request_max
tomcat_global_sent
tomcat_sessions_active_current
tomcat_sessions_active_max
tomcat_sessions_alive_max
tomcat_sessions_created
tomcat_sessions_expired
tomcat_sessions_rejected
tomcat_threads_busy
tomcat_threads_config_max
tomcat_threads_current我不确定这些是Sprint指标还是包含了一些千分尺魔法,但无论哪种情况,我都无法找到这些度量的详细描述,特别是内存和GC相关的描述。
jvm_gc_live_data_size
jvm_gc_max_data_size
jvm_gc_memory_allocated
jvm_gc_memory_promoted
jvm_gc_pause
jvm_memory_committed
jvm_memory_max
jvm_memory_used不知何故,Sprint文档没有提供任何细节,也没有提供千分尺文档。
有人能指点我能找到关于这些指标的详细解释的地方吗?
发布于 2020-03-10 07:42:16
您可以在千分尺源代码中找到这些度量的定义:https://github.com/micrometer-metrics/micrometer,以及它们的名称、描述和基本单位。
例如,在这里定义了jvm_memory_max:https://github.com/micrometer-metrics/micrometer/blob/48eb59d3b5cb5e4df7f35c0dfa323241f3cf2484/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/jvm/JvmMemoryMetrics.java#L97
因此,jvm_memory_max是“可用于内存管理的最大内存容量(以字节为单位)”。
https://stackoverflow.com/questions/59171673
复制相似问题