1. # HELP system_cpu_count The number of processors available to the Java virtual machine
    2. # TYPE system_cpu_count gauge
    3. system_cpu_count{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 1.0
    4. # HELP system_load_average_1m The sum of the number of runnable entities queued to available processors and the number of runnable
    5. entities running on the available processors averaged over a period of time
    6. # TYPE system_load_average_1m gauge
    7. system_load_average_1m{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 6.49
    8. # HELP jvm_gc_max_data_size_bytes Max size of old generation memory pool
    9. # TYPE jvm_gc_max_data_size_bytes gauge
    10. jvm_gc_max_data_size_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 8.05306368E8
    11. # HELP process_cpu_usage The "recent cpu usage" for the Java Virtual Machine process
    12. # TYPE process_cpu_usage gauge
    13. process_cpu_usage{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 9.87166831194472E-4
    14. # HELP tomcat_sessions_active_current_sessions
    15. # TYPE tomcat_sessions_active_current_sessions gauge
    16. tomcat_sessions_active_current_sessions{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    17. # HELP jvm_memory_max_bytes The maximum amount of memory in bytes that can be used for memory management
    18. # TYPE jvm_memory_max_bytes gauge
    19. jvm_memory_max_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Compressed Class Space",} 2.60046848E8
    20. jvm_memory_max_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Eden Space",} 6.44349952E8
    21. jvm_memory_max_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="CMS Old Gen",} 8.05306368E8
    22. jvm_memory_max_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Metaspace",} -1.0
    23. jvm_memory_max_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Survivor Space",} 8.0478208E7
    24. jvm_memory_max_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Code Cache",} 2.5165824E8
    25. # HELP jvm_threads_states_threads The current number of threads having NEW state
    26. # TYPE jvm_threads_states_threads gauge
    27. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="runnable",} 19.0
    28. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="new",} 0.0
    29. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="terminated",} 0.0
    30. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="blocked",} 0.0
    31. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="waiting",} 236.0
    32. jvm_threads_states_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",state="timed-waiting",} 37.0
    33. # HELP jdbc_connections_min Minimum number of idle connections in the pool.
    34. # TYPE jdbc_connections_min gauge
    35. jdbc_connections_min{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",name="dataSource",} -1.0
    36. # HELP process_uptime_seconds The uptime of the Java virtual machine
    37. # TYPE process_uptime_seconds gauge
    38. process_uptime_seconds{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 16540.895
    39. # HELP process_files_open_files The open file descriptor count
    40. # TYPE process_files_open_files gauge
    41. process_files_open_files{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 239.0
    42. # HELP process_start_time_seconds Start time of the process since unix epoch.
    43. # TYPE process_start_time_seconds gauge
    44. process_start_time_seconds{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 1.663727451892E9
    45. # HELP tomcat_sessions_rejected_sessions_total
    46. # TYPE tomcat_sessions_rejected_sessions_total counter
    47. tomcat_sessions_rejected_sessions_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    48. # HELP jvm_gc_memory_promoted_bytes_total Count of positive increases in the size of the old generation memory pool before GC to after GC
    49. # TYPE jvm_gc_memory_promoted_bytes_total counter
    50. jvm_gc_memory_promoted_bytes_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 3.755264E7
    51. # HELP jvm_gc_memory_allocated_bytes_total Incremented for an increase in the size of the young generation memory pool after one GC to before the next
    52. # TYPE jvm_gc_memory_allocated_bytes_total counter
    53. jvm_gc_memory_allocated_bytes_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 1.3531348992E10
    54. # HELP system_cpu_usage The "recent cpu usage" for the whole system
    55. # TYPE system_cpu_usage gauge
    56. system_cpu_usage{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.17716924056678873
    57. # HELP jdbc_connections_max Maximum number of active connections that can be allocated at the same time.
    58. # TYPE jdbc_connections_max gauge
    59. jdbc_connections_max{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",name="dataSource",} -1.0
    60. # HELP jvm_buffer_count_buffers An estimate of the number of buffers in the pool
    61. # TYPE jvm_buffer_count_buffers gauge
    62. jvm_buffer_count_buffers{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="direct",} 18.0
    63. jvm_buffer_count_buffers{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="mapped",} 0.0
    64. # HELP jvm_buffer_total_capacity_bytes An estimate of the total capacity of the buffers in this pool
    65. # TYPE jvm_buffer_total_capacity_bytes gauge
    66. jvm_buffer_total_capacity_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="direct",} 93936.0
    67. jvm_buffer_total_capacity_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="mapped",} 0.0
    68. # HELP jvm_threads_daemon_threads The current number of live daemon threads
    69. # TYPE jvm_threads_daemon_threads gauge
    70. jvm_threads_daemon_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 286.0
    71. # HELP jvm_classes_loaded_classes The number of classes that are currently loaded in the Java virtual machine
    72. # TYPE jvm_classes_loaded_classes gauge
    73. jvm_classes_loaded_classes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 19338.0
    74. # HELP process_files_max_files The maximum file descriptor count
    75. # TYPE process_files_max_files gauge
    76. process_files_max_files{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 1048576.0
    77. # HELP jvm_gc_live_data_size_bytes Size of old generation memory pool after a full GC
    78. # TYPE jvm_gc_live_data_size_bytes gauge
    79. jvm_gc_live_data_size_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    80. # HELP tomcat_sessions_active_max_sessions
    81. # TYPE tomcat_sessions_active_max_sessions gauge
    82. tomcat_sessions_active_max_sessions{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    83. # HELP jvm_threads_peak_threads The peak live thread count since the Java virtual machine started or peak was reset
    84. # TYPE jvm_threads_peak_threads gauge
    85. jvm_threads_peak_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 293.0
    86. # HELP tomcat_sessions_expired_sessions_total
    87. # TYPE tomcat_sessions_expired_sessions_total counter
    88. tomcat_sessions_expired_sessions_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    89. # HELP tomcat_sessions_created_sessions_total
    90. # TYPE tomcat_sessions_created_sessions_total counter
    91. tomcat_sessions_created_sessions_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    92. # HELP jvm_buffer_memory_used_bytes An estimate of the memory that the Java virtual machine is using for this buffer pool
    93. # TYPE jvm_buffer_memory_used_bytes gauge
    94. jvm_buffer_memory_used_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="direct",} 93938.0
    95. jvm_buffer_memory_used_bytes{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",id="mapped",} 0.0
    96. # HELP jvm_memory_committed_bytes The amount of memory in bytes that is committed for the Java virtual machine to use
    97. # TYPE jvm_memory_committed_bytes gauge
    98. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Compressed Class Space",} 1.441792E7
    99. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Eden Space",} 6.44349952E8
    100. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="CMS Old Gen",} 8.05306368E8
    101. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Metaspace",} 1.1010048E8
    102. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Survivor Space",} 8.0478208E7
    103. jvm_memory_committed_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Code Cache",} 5.3477376E7
    104. # HELP jvm_classes_unloaded_classes_total The total number of classes unloaded since the Java virtual machine has started execution
    105. # TYPE jvm_classes_unloaded_classes_total counter
    106. jvm_classes_unloaded_classes_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    107. # HELP jvm_threads_live_threads The current number of live threads including both daemon and non-daemon threads
    108. # TYPE jvm_threads_live_threads gauge
    109. jvm_threads_live_threads{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 292.0
    110. # HELP log4j2_events_total Number of fatal level log events
    111. # TYPE log4j2_events_total counter
    112. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="fatal",} 0.0
    113. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="trace",} 0.0
    114. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="warn",} 2.0
    115. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="info",} 19.0
    116. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="error",} 11.0
    117. log4j2_events_total{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",level="debug",} 0.0
    118. # HELP jvm_memory_used_bytes The amount of used memory
    119. # TYPE jvm_memory_used_bytes gauge
    120. jvm_memory_used_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Compressed Class Space",} 1.345356E7
    121. jvm_memory_used_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Eden Space",} 3.6888272E7
    122. jvm_memory_used_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="CMS Old Gen",} 5.412156E7
    123. jvm_memory_used_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Metaspace",} 1.0442104E8
    124. jvm_memory_used_bytes{application="scp-brand-demand-service",area="heap",environment="dev",host="172.27.173.229",id="Par Survivor Space",} 2.1593152E7
    125. jvm_memory_used_bytes{application="scp-brand-demand-service",area="nonheap",environment="dev",host="172.27.173.229",id="Code Cache",} 5.2955072E7
    126. # HELP tomcat_sessions_alive_max_seconds
    127. # TYPE tomcat_sessions_alive_max_seconds gauge
    128. tomcat_sessions_alive_max_seconds{application="scp-brand-demand-service",environment="dev",host="172.27.173.229",} 0.0
    129. # HELP jvm_gc_pause_seconds Time spent in GC pause
    130. # TYPE jvm_gc_pause_seconds summary
    131. jvm_gc_pause_seconds_count{action="end of minor GC",application="scp-brand-demand-service",cause="Allocation Failure",environment="dev",host="172.27.173.229",} 21.0
    132. jvm_gc_pause_seconds_sum{action="end of minor GC",application="scp-brand-demand-service",cause="Allocation Failure",environment="dev",host="172.27.173.229",} 1.826
    133. # HELP jvm_gc_pause_seconds_max Time spent in GC pause
    134. # TYPE jvm_gc_pause_seconds_max gauge
    135. jvm_gc_pause_seconds_max{action="end of minor GC",application="scp-brand-demand-service",cause="Allocation Failure",environment="dev",host="172.27.173.229",} 0.022
    136. # HELP http_server_requests_seconds
    137. # TYPE http_server_requests_seconds summary
    138. http_server_requests_seconds_count{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="CLIENT_ERROR",status="404",uri="/**",} 1.0
    139. http_server_requests_seconds_sum{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="CLIENT_ERROR",status="404",uri="/**",} 0.010332595
    140. http_server_requests_seconds_count{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/scp-brand-demand-service/metrics/prometheus",} 550.0
    141. http_server_requests_seconds_sum{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/scp-brand-demand-service/metrics/prometheus",} 5.088314167
    142. http_server_requests_seconds_count{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/health/check",} 4939.0
    143. http_server_requests_seconds_sum{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/health/check",} 5.741246228
    144. # HELP http_server_requests_seconds_max
    145. # TYPE http_server_requests_seconds_max gauge
    146. http_server_requests_seconds_max{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="CLIENT_ERROR",status="404",uri="/**",} 0.0
    147. http_server_requests_seconds_max{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/scp-brand-demand-service/metrics/prometheus",} 0.011999
    148. http_server_requests_seconds_max{application="scp-brand-demand-service",environment="dev",exception="None",host="172.27.173.229",method="GET",outcome="SUCCESS",status="200",uri="/health/check",} 0.001631965
    1. # HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.
    2. # TYPE jvm_gc_collection_seconds summary
    3. #这是一个Summary指标,与Histogram类似,可以对指标数据进行采样
    4. # 并发收集器 CMS(Concurrent Mark-Sweep)
    5. 以牺牲吞吐量为代价来获得最短回收停顿时间的垃圾回收器
    6. 对于要求服务器响应速度的应用上,这种垃圾回收器非常适合。
    7. CMS是用于对tenured generation的回收,也就是年老代的回收,目标是尽量减少应用的暂停时间,减少full gc发生的几率,
    8. 利用和应用程序线程并发的垃圾回收线程来标记清除年老代。
    9. 在启动JVM参数加上-XX:+UseConcMarkSweepGC ,这个参数表示对于老年代的回收采用CMSCMS采用的基础算法是:标记—清除。
    10. CMS不对堆空间整理压缩节约了垃圾回收的停顿时间,但也带来的堆空间的浪费。为了解决堆空间浪费问题,
    11. CMS回收器不再采用简单的指针指向一块可用堆空 间来为下次对象分配使用。
    12. 而是把一些未分配的空间汇总成一个列表,当JVM分配对象空间的时候,会搜索这个列表找到足够大的空间来hold住这个对象。
    13. CMS的另一个缺点是它需要更大的堆空间。因为CMS标记阶段应用程序的线程还是在执行的,那么就会有堆空间继续分配的情况,
    14. 为了保证在CMS 收完堆之前还有空间分配给正在运行的应用程序,必须预留一部分空间。
    15. 在回收完成之前,堆没有足够空间分配!默认当老年代使用68%的时候,CMS就开始行动了。 XX:CMSInitiatingOccupancyFraction =n 来设置这个阀值。
    16. 总得来说,CMS回收器减少了回收的停顿时间,但是降低了堆空间的利用率。
    17. 如果你的应用程序对停顿比较敏感,并且在应用程序运行的时候可以提供更大的内存和更多的CPU(也就是硬件牛逼),那么使用CMS来收集会给你带来好处。
    18. 还有,如果在JVM中,有相对较多存活时间较长的对象(老年代比较大)会更适合使用CMS
    19. ParNew垃圾收集器
    20. ParParallel的缩写,多线程的意思,
    21. 但是这里的多线程仅仅指垃圾收集多线程并行,并不是垃圾收集和程序并行运行.ParNew也需要暂停一切工作,然后多线程并行垃圾收集.
    22. 参数
    23. "-XX:+UseConcMarkSweepGC":指定使用CMS后,会默认使用ParNew作为新生代收集器;
    24. "-XX:+UseParNewGC":强制指定使用ParNew
    25. "-XX:ParallelGCThreads":指定垃圾收集的线程数量,ParNew默认开启的收集线程尽量与CPU的数量相当;
    26. # HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.
    27. # TYPE jvm_gc_collection_seconds summary
    28. jvm_gc_collection_seconds_count{gc="ParNew",} 87.0 ==>YGC
    29. jvm_gc_collection_seconds_sum{gc="ParNew",} 15.487 ==>YGCT
    30. jvm_gc_collection_seconds_count{gc="ConcurrentMarkSweep",} 0.0 ==>FGC
    31. jvm_gc_collection_seconds_sum{gc="ConcurrentMarkSweep",} 0.0 ==>FGCT
    32. [root@test /]# /usr/local/java/jdk1.8.0_151/bin/jstat -gcutil 48 1000 1000
    33. S0 S1 E O M CCS YGC YGCT FGC FGCT GCT
    34. 1.07 0.00 11.43 2.73 96.31 94.32 88 15.550 0 0.000 15.550
    35. 1.07 0.00 11.92 2.73 96.31 94.32 88 15.550 0 0.000 15.550
    36. 1.07 0.00 12.26 2.73 96.31 94.32 88 15.550 0 0.000 15.550
    37. # HELP jvm_memory_bytes_used Used bytes of a given JVM memory area.
    38. # TYPE jvm_memory_bytes_used gauge
    39. #jvm已用内存区域
    40. jvm_memory_bytes_used{area="heap",} 2.334615096E9 ==>堆内存使用
    41. jvm_memory_bytes_used{area="nonheap",} 1.8031396E8 ==>非堆内存使用
    42. 备注:
    43. nonheap = "Code Cache" + "Metaspace" + "Compressed Class Space"
    44. heap = "Par Eden Space" + "Par Survivor Space" + "CMS Old Gen"
    45. 结论:init约等于xms的值,max约等于xmx的值。
    46. used是已经被使用的内存大小,committed是当前可使用的内存大小(包括已使用的),committed >= used
    47. committed不足时jvm向系统申请,若超过max则发生OutOfMemoryError错误。
    48. # HELP jvm_memory_bytes_committed Committed (bytes) of a given JVM memory area.
    49. # TYPE jvm_memory_bytes_committed gauge
    50. jvm_memory_bytes_committed{area="heap",} 8.267825152E9
    51. jvm_memory_bytes_committed{area="nonheap",} 1.85270272E8
    52. # HELP jvm_memory_bytes_max Max (bytes) of a given JVM memory area.
    53. # TYPE jvm_memory_bytes_max gauge
    54. #jvm内存区域的最大字节数
    55. jvm_memory_bytes_max{area="heap",} 8.267825152E9
    56. jvm_memory_bytes_max{area="nonheap",} 1.59383552E9
    57. # HELP jvm_memory_bytes_init Initial bytes of a given JVM memory area.
    58. # TYPE jvm_memory_bytes_init gauge
    59. #jvm内存区域的初始化字节数
    60. jvm_memory_bytes_init{area="heap",} 8.589934592E9
    61. jvm_memory_bytes_init{area="nonheap",} 2555904.0
    62. # HELP jvm_memory_pool_bytes_used Used bytes of a given JVM memory pool.
    63. # TYPE jvm_memory_pool_bytes_used gauge
    64. #jvm内存池使用情况
    65. jvm_memory_pool_bytes_used{pool="Code Cache",} 7.2995456E7
    66. jvm_memory_pool_bytes_used{pool="Metaspace",} 9.6191616E7
    67. jvm_memory_pool_bytes_used{pool="Compressed Class Space",} 1.1126888E7
    68. jvm_memory_pool_bytes_used{pool="Par Eden Space",} 2.184666584E9
    69. jvm_memory_pool_bytes_used{pool="Par Survivor Space",} 3342224.0
    70. jvm_memory_pool_bytes_used{pool="CMS Old Gen",} 1.46606288E8
    71. # HELP jvm_memory_pool_bytes_committed Committed bytes of a given JVM memory pool.
    72. # TYPE jvm_memory_pool_bytes_committed gauge
    73. jvm_memory_pool_bytes_committed{pool="Code Cache",} 7.3596928E7
    74. jvm_memory_pool_bytes_committed{pool="Metaspace",} 9.9876864E7
    75. jvm_memory_pool_bytes_committed{pool="Compressed Class Space",} 1.179648E7
    76. jvm_memory_pool_bytes_committed{pool="Par Eden Space",} 2.577006592E9
    77. jvm_memory_pool_bytes_committed{pool="Par Survivor Space",} 3.2210944E8
    78. jvm_memory_pool_bytes_committed{pool="CMS Old Gen",} 5.36870912E9
    79. # HELP jvm_memory_pool_bytes_max Max bytes of a given JVM memory pool.
    80. # TYPE jvm_memory_pool_bytes_max gauge
    81. #jvm内存池最大数
    82. jvm_memory_pool_bytes_max{pool="Code Cache",} 2.5165824E8
    83. jvm_memory_pool_bytes_max{pool="Metaspace",} 2.68435456E8
    84. jvm_memory_pool_bytes_max{pool="Compressed Class Space",} 1.073741824E9
    85. jvm_memory_pool_bytes_max{pool="Par Eden Space",} 2.577006592E9
    86. jvm_memory_pool_bytes_max{pool="Par Survivor Space",} 3.2210944E8
    87. jvm_memory_pool_bytes_max{pool="CMS Old Gen",} 5.36870912E9
    88. # HELP jvm_memory_pool_bytes_init Initial bytes of a given JVM memory pool.
    89. # TYPE jvm_memory_pool_bytes_init gauge
    90. #jvm内存池初始化数
    91. jvm_memory_pool_bytes_init{pool="Code Cache",} 2555904.0
    92. jvm_memory_pool_bytes_init{pool="Metaspace",} 0.0
    93. jvm_memory_pool_bytes_init{pool="Compressed Class Space",} 0.0
    94. jvm_memory_pool_bytes_init{pool="Par Eden Space",} 2.577006592E9
    95. jvm_memory_pool_bytes_init{pool="Par Survivor Space",} 3.2210944E8
    96. jvm_memory_pool_bytes_init{pool="CMS Old Gen",} 5.36870912E9
    97. # HELP jmx_config_reload_success_total Number of times configuration have successfully been reloaded.
    98. # TYPE jmx_config_reload_success_total counter
    99. jmx_config_reload_success_total 0.0
    100. # HELP jvm_classes_loaded The number of classes that are currently loaded in the JVM
    101. # TYPE jvm_classes_loaded gauge
    102. #当前jvm已加载类数量
    103. jvm_classes_loaded 16377.0
    104. # HELP jvm_classes_loaded_total The total number of classes that have been loaded since the JVM has started execution
    105. # TYPE jvm_classes_loaded_total counter
    106. #从jvm运行开始加载的类的数量,这是一个Counter指标,递增
    107. jvm_classes_loaded_total 16377.0
    108. # HELP jvm_classes_unloaded_total The total number of classes that have been unloaded since the JVM has started execution
    109. # TYPE jvm_classes_unloaded_total counter
    110. #jvm运行后卸载的类数量,这是一个Counter指标。生产环境一直是0
    111. jvm_classes_unloaded_total 0.0
    112. # HELP jvm_info JVM version info
    113. # TYPE jvm_info gauge
    114. jvm_info{version="1.8.0_151-b12",vendor="Oracle Corporation",runtime="Java(TM) SE Runtime Environment",} 1.0
    115. # HELP os_free_physical_memory_bytes FreePhysicalMemorySize (java.lang<type=OperatingSystem><>FreePhysicalMemorySize)
    116. # TYPE os_free_physical_memory_bytes gauge
    117. os_free_physical_memory_bytes 1.9491221504E10
    118. # HELP os_committed_virtual_memory_bytes CommittedVirtualMemorySize (java.lang<type=OperatingSystem><>CommittedVirtualMemorySize)
    119. # TYPE os_committed_virtual_memory_bytes gauge
    120. os_committed_virtual_memory_bytes 3.4423967744E10
    121. # HELP os_total_swap_space_bytes TotalSwapSpaceSize (java.lang<type=OperatingSystem><>TotalSwapSpaceSize)
    122. # TYPE os_total_swap_space_bytes gauge
    123. os_total_swap_space_bytes 0.0
    124. # HELP os_max_file_descriptor_count MaxFileDescriptorCount (java.lang<type=OperatingSystem><>MaxFileDescriptorCount)
    125. # TYPE os_max_file_descriptor_count gauge
    126. os_max_file_descriptor_count 1048576.0
    127. # HELP os_system_load_average SystemLoadAverage (java.lang<type=OperatingSystem><>SystemLoadAverage)
    128. # TYPE os_system_load_average gauge
    129. os_system_load_average 3.84
    130. # HELP os_total_physical_memory_bytes TotalPhysicalMemorySize (java.lang<type=OperatingSystem><>TotalPhysicalMemorySize)
    131. # TYPE os_total_physical_memory_bytes gauge
    132. os_total_physical_memory_bytes 2.02692759552E11
    133. # HELP os_system_cpu_load SystemCpuLoad (java.lang<type=OperatingSystem><>SystemCpuLoad)
    134. # TYPE os_system_cpu_load gauge
    135. os_system_cpu_load 0.04950495049504951
    136. # HELP os_free_swap_space_bytes FreeSwapSpaceSize (java.lang<type=OperatingSystem><>FreeSwapSpaceSize)
    137. # TYPE os_free_swap_space_bytes gauge
    138. os_free_swap_space_bytes 0.0
    139. # HELP os_available_processors AvailableProcessors (java.lang<type=OperatingSystem><>AvailableProcessors)
    140. # TYPE os_available_processors gauge
    141. os_available_processors 48.0
    142. # HELP os_process_cpu_load ProcessCpuLoad (java.lang<type=OperatingSystem><>ProcessCpuLoad)
    143. # TYPE os_process_cpu_load gauge
    144. os_process_cpu_load 0.0
    145. # HELP os_open_file_descriptor_count OpenFileDescriptorCount (java.lang<type=OperatingSystem><>OpenFileDescriptorCount)
    146. # TYPE os_open_file_descriptor_count gauge
    147. os_open_file_descriptor_count 163.0
    148. # HELP jmx_scrape_duration_seconds Time this JMX scrape took, in seconds.
    149. # TYPE jmx_scrape_duration_seconds gauge
    150. jmx_scrape_duration_seconds 0.00121965
    151. # HELP jmx_scrape_error Non-zero if this scrape failed.
    152. # TYPE jmx_scrape_error gauge
    153. jmx_scrape_error 0.0
    154. # HELP jmx_config_reload_failure_total Number of times configuration have failed to be reloaded.
    155. # TYPE jmx_config_reload_failure_total counter
    156. jmx_config_reload_failure_total 0.0
    157. # HELP process_cpu_seconds_total Total user and system CPU time spent in seconds.
    158. # TYPE process_cpu_seconds_total counter
    159. #用户和系统的总cpu使用时间
    160. process_cpu_seconds_total 2293.82
    161. # HELP process_start_time_seconds Start time of the process since unix epoch in seconds.
    162. # TYPE process_start_time_seconds gauge
    163. process_start_time_seconds 1.618365917041E9
    164. # HELP process_open_fds Number of open file descriptors.
    165. # TYPE process_open_fds gauge
    166. process_open_fds 163.0
    167. # HELP process_max_fds Maximum number of open file descriptors.
    168. # TYPE process_max_fds gauge
    169. process_max_fds 1048576.0
    170. # HELP process_virtual_memory_bytes Virtual memory size in bytes.
    171. # TYPE process_virtual_memory_bytes gauge
    172. process_virtual_memory_bytes 3.4423963648E10
    173. # HELP process_resident_memory_bytes Resident memory size in bytes.
    174. # TYPE process_resident_memory_bytes gauge
    175. process_resident_memory_bytes 3.942313984E9
    176. # HELP jvm_buffer_pool_used_bytes Used bytes of a given JVM buffer pool.
    177. # TYPE jvm_buffer_pool_used_bytes gauge
    178. #jvm缓冲区使用情况,包括Code Cache(编译后的代码缓存,
    179. 不同版本的jvm默认大小不同)、PS Old Gen(老年代)、PS Eden Space(伊甸园)、PS Survivor Space(幸存者)、PS Perm Gen(永久代)
    180. jvm_buffer_pool_used_bytes{pool="direct",} 1729229.0
    181. jvm_buffer_pool_used_bytes{pool="mapped",} 0.0
    182. # HELP jvm_buffer_pool_capacity_bytes Bytes capacity of a given JVM buffer pool.
    183. # TYPE jvm_buffer_pool_capacity_bytes gauge
    184. #给定jvm的估算缓冲区大小
    185. jvm_buffer_pool_capacity_bytes{pool="direct",} 1729229.0
    186. jvm_buffer_pool_capacity_bytes{pool="mapped",} 0.0
    187. # HELP jvm_buffer_pool_used_buffers Used buffers of a given JVM buffer pool.
    188. # TYPE jvm_buffer_pool_used_buffers gauge
    189. #给定jvm的已使用缓冲区大小
    190. jvm_buffer_pool_used_buffers{pool="direct",} 243.0
    191. jvm_buffer_pool_used_buffers{pool="mapped",} 0.0
    192. # HELP jvm_threads_current Current thread count of a JVM
    193. # TYPE jvm_threads_current gauge
    194. #jvm当前线程数
    195. jvm_threads_current 284.0
    196. # HELP jvm_threads_daemon Daemon thread count of a JVM
    197. # TYPE jvm_threads_daemon gauge
    198. #jvm后台线程数
    199. jvm_threads_daemon 241.0
    200. # HELP jvm_threads_peak Peak thread count of a JVM
    201. # TYPE jvm_threads_peak gauge
    202. #jvm线程峰值
    203. jvm_threads_peak 286.0
    204. # HELP jvm_threads_started_total Started thread count of a JVM
    205. # TYPE jvm_threads_started_total counter
    206. #jvm总启动线程数量,Counter指标
    207. jvm_threads_started_total 1260.0
    208. # HELP jvm_threads_deadlocked Cycles of JVM-threads that are in deadlock waiting to acquire object monitors or ownable synchronizers
    209. # TYPE jvm_threads_deadlocked gauge
    210. #死锁线程数量
    211. jvm_threads_deadlocked 0.0
    212. # HELP jvm_threads_deadlocked_monitor Cycles of JVM-threads that are in deadlock waiting to acquire object monitors
    213. # TYPE jvm_threads_deadlocked_monitor gauge
    214. jvm_threads_deadlocked_monitor 0.0

    jvm 监控面板

    1. {
    2. "annotations": {
    3. "list": [
    4. {
    5. "builtIn": 1,
    6. "datasource": "Prometheus-测试环境",
    7. "enable": true,
    8. "hide": true,
    9. "iconColor": "rgba(0, 211, 255, 1)",
    10. "limit": 100,
    11. "name": "Annotations & Alerts",
    12. "showIn": 0,
    13. "type": "dashboard"
    14. },
    15. {
    16. "datasource": "Prometheus-测试环境",
    17. "enable": true,
    18. "expr": "resets(process_uptime_seconds{application=\"$application\", instance=\"$instance\"}[1m]) > 0",
    19. "iconColor": "rgba(255, 96, 96, 1)",
    20. "limit": 100,
    21. "name": "进程重启打标",
    22. "showIn": 0,
    23. "step": "1m",
    24. "tagKeys": "restart-tag",
    25. "tags": [],
    26. "textFormat": "uptime reset",
    27. "titleFormat": "Restart",
    28. "type": "tags"
    29. }
    30. ]
    31. },
    32. "description": "Dashboard for Micrometer instrumented applications (Java, Spring Boot, Micronaut)",
    33. "editable": true,
    34. "gnetId": 12856,
    35. "graphTooltip": 1,
    36. "id": 62,
    37. "iteration": 1663751129146,
    38. "links": [],
    39. "panels": [
    40. {
    41. "collapsed": true,
    42. "datasource": "${DS_SPRING-DEMOT}",
    43. "gridPos": {
    44. "h": 1,
    45. "w": 24,
    46. "x": 0,
    47. "y": 0
    48. },
    49. "id": 125,
    50. "panels": [
    51. {
    52. "cacheTimeout": null,
    53. "colorBackground": false,
    54. "colorValue": true,
    55. "colors": [
    56. "rgba(245, 54, 54, 0.9)",
    57. "rgba(237, 129, 40, 0.89)",
    58. "rgba(50, 172, 45, 0.97)"
    59. ],
    60. "datasource": "Prometheus-测试环境",
    61. "decimals": 1,
    62. "editable": true,
    63. "error": false,
    64. "fieldConfig": {
    65. "defaults": {
    66. "custom": {}
    67. },
    68. "overrides": []
    69. },
    70. "format": "s",
    71. "gauge": {
    72. "maxValue": 100,
    73. "minValue": 0,
    74. "show": false,
    75. "thresholdLabels": false,
    76. "thresholdMarkers": true
    77. },
    78. "gridPos": {
    79. "h": 3,
    80. "w": 6,
    81. "x": 0,
    82. "y": 1
    83. },
    84. "height": "",
    85. "id": 63,
    86. "interval": null,
    87. "links": [],
    88. "mappingType": 1,
    89. "mappingTypes": [
    90. {
    91. "name": "value to text",
    92. "value": 1
    93. },
    94. {
    95. "name": "range to text",
    96. "value": 2
    97. }
    98. ],
    99. "maxDataPoints": 100,
    100. "nullPointMode": "connected",
    101. "nullText": null,
    102. "postfix": "",
    103. "postfixFontSize": "50%",
    104. "prefix": "",
    105. "prefixFontSize": "70%",
    106. "rangeMaps": [
    107. {
    108. "from": "null",
    109. "text": "N/A",
    110. "to": "null"
    111. }
    112. ],
    113. "sparkline": {
    114. "fillColor": "rgba(31, 118, 189, 0.18)",
    115. "full": false,
    116. "lineColor": "rgb(31, 120, 193)",
    117. "show": false
    118. },
    119. "tableColumn": "",
    120. "targets": [
    121. {
    122. "expr": "process_uptime_seconds{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    123. "format": "time_series",
    124. "interval": "",
    125. "intervalFactor": 2,
    126. "legendFormat": "",
    127. "metric": "",
    128. "refId": "A",
    129. "step": 14400
    130. }
    131. ],
    132. "thresholds": "",
    133. "title": "进程启动时长",
    134. "type": "singlestat",
    135. "valueFontSize": "80%",
    136. "valueMaps": [
    137. {
    138. "op": "=",
    139. "text": "N/A",
    140. "value": "null"
    141. }
    142. ],
    143. "valueName": "current"
    144. },
    145. {
    146. "cacheTimeout": null,
    147. "colorBackground": false,
    148. "colorValue": true,
    149. "colors": [
    150. "rgba(245, 54, 54, 0.9)",
    151. "rgba(237, 129, 40, 0.89)",
    152. "rgba(50, 172, 45, 0.97)"
    153. ],
    154. "datasource": "Prometheus-测试环境",
    155. "decimals": null,
    156. "editable": true,
    157. "error": false,
    158. "fieldConfig": {
    159. "defaults": {
    160. "custom": {}
    161. },
    162. "overrides": []
    163. },
    164. "format": "dateTimeAsIso",
    165. "gauge": {
    166. "maxValue": 100,
    167. "minValue": 0,
    168. "show": false,
    169. "thresholdLabels": false,
    170. "thresholdMarkers": true
    171. },
    172. "gridPos": {
    173. "h": 3,
    174. "w": 6,
    175. "x": 6,
    176. "y": 1
    177. },
    178. "height": "",
    179. "id": 92,
    180. "interval": null,
    181. "links": [],
    182. "mappingType": 1,
    183. "mappingTypes": [
    184. {
    185. "name": "value to text",
    186. "value": 1
    187. },
    188. {
    189. "name": "range to text",
    190. "value": 2
    191. }
    192. ],
    193. "maxDataPoints": 100,
    194. "nullPointMode": "connected",
    195. "nullText": null,
    196. "postfix": "",
    197. "postfixFontSize": "50%",
    198. "prefix": "",
    199. "prefixFontSize": "70%",
    200. "rangeMaps": [
    201. {
    202. "from": "null",
    203. "text": "N/A",
    204. "to": "null"
    205. }
    206. ],
    207. "sparkline": {
    208. "fillColor": "rgba(31, 118, 189, 0.18)",
    209. "full": false,
    210. "lineColor": "rgb(31, 120, 193)",
    211. "show": false
    212. },
    213. "tableColumn": "",
    214. "targets": [
    215. {
    216. "expr": "process_start_time_seconds{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}*1000",
    217. "format": "time_series",
    218. "interval": "",
    219. "intervalFactor": 2,
    220. "legendFormat": "",
    221. "metric": "",
    222. "refId": "A",
    223. "step": 14400
    224. }
    225. ],
    226. "thresholds": "",
    227. "title": "进程启动时间",
    228. "type": "singlestat",
    229. "valueFontSize": "70%",
    230. "valueMaps": [
    231. {
    232. "op": "=",
    233. "text": "N/A",
    234. "value": "null"
    235. }
    236. ],
    237. "valueName": "current"
    238. },
    239. {
    240. "cacheTimeout": null,
    241. "colorBackground": false,
    242. "colorValue": true,
    243. "colors": [
    244. "rgba(50, 172, 45, 0.97)",
    245. "rgba(237, 129, 40, 0.89)",
    246. "rgba(245, 54, 54, 0.9)"
    247. ],
    248. "datasource": "Prometheus-测试环境",
    249. "decimals": 2,
    250. "editable": true,
    251. "error": false,
    252. "fieldConfig": {
    253. "defaults": {
    254. "custom": {}
    255. },
    256. "overrides": []
    257. },
    258. "format": "percent",
    259. "gauge": {
    260. "maxValue": 100,
    261. "minValue": 0,
    262. "show": false,
    263. "thresholdLabels": false,
    264. "thresholdMarkers": true
    265. },
    266. "gridPos": {
    267. "h": 3,
    268. "w": 6,
    269. "x": 12,
    270. "y": 1
    271. },
    272. "id": 65,
    273. "interval": null,
    274. "links": [],
    275. "mappingType": 1,
    276. "mappingTypes": [
    277. {
    278. "name": "value to text",
    279. "value": 1
    280. },
    281. {
    282. "name": "range to text",
    283. "value": 2
    284. }
    285. ],
    286. "maxDataPoints": 100,
    287. "nullPointMode": "connected",
    288. "nullText": null,
    289. "postfix": "",
    290. "postfixFontSize": "50%",
    291. "prefix": "",
    292. "prefixFontSize": "70%",
    293. "rangeMaps": [
    294. {
    295. "from": "null",
    296. "text": "N/A",
    297. "to": "null"
    298. }
    299. ],
    300. "sparkline": {
    301. "fillColor": "rgba(31, 118, 189, 0.18)",
    302. "full": false,
    303. "lineColor": "rgb(31, 120, 193)",
    304. "show": false
    305. },
    306. "tableColumn": "",
    307. "targets": [
    308. {
    309. "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\",environment=\"$environment\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"heap\",environment=\"$environment\"})",
    310. "format": "time_series",
    311. "interval": "",
    312. "intervalFactor": 2,
    313. "legendFormat": "",
    314. "refId": "A",
    315. "step": 14400
    316. }
    317. ],
    318. "thresholds": "70,90",
    319. "title": "堆内存使用率",
    320. "type": "singlestat",
    321. "valueFontSize": "80%",
    322. "valueMaps": [
    323. {
    324. "op": "=",
    325. "text": "N/A",
    326. "value": "null"
    327. }
    328. ],
    329. "valueName": "current"
    330. },
    331. {
    332. "cacheTimeout": null,
    333. "colorBackground": false,
    334. "colorValue": true,
    335. "colors": [
    336. "rgba(50, 172, 45, 0.97)",
    337. "rgba(237, 129, 40, 0.89)",
    338. "rgba(245, 54, 54, 0.9)"
    339. ],
    340. "datasource": "Prometheus-测试环境",
    341. "decimals": 2,
    342. "editable": true,
    343. "error": false,
    344. "fieldConfig": {
    345. "defaults": {
    346. "custom": {}
    347. },
    348. "overrides": []
    349. },
    350. "format": "percent",
    351. "gauge": {
    352. "maxValue": 100,
    353. "minValue": 0,
    354. "show": false,
    355. "thresholdLabels": false,
    356. "thresholdMarkers": true
    357. },
    358. "gridPos": {
    359. "h": 3,
    360. "w": 6,
    361. "x": 18,
    362. "y": 1
    363. },
    364. "id": 75,
    365. "interval": null,
    366. "links": [],
    367. "mappingType": 2,
    368. "mappingTypes": [
    369. {
    370. "name": "value to text",
    371. "value": 1
    372. },
    373. {
    374. "name": "range to text",
    375. "value": 2
    376. }
    377. ],
    378. "maxDataPoints": 100,
    379. "nullPointMode": "connected",
    380. "nullText": null,
    381. "postfix": "",
    382. "postfixFontSize": "50%",
    383. "prefix": "",
    384. "prefixFontSize": "70%",
    385. "rangeMaps": [
    386. {
    387. "from": "null",
    388. "text": "N/A",
    389. "to": "null"
    390. },
    391. {
    392. "from": "-99999999999999999999999999999999",
    393. "text": "N/A",
    394. "to": "0"
    395. }
    396. ],
    397. "sparkline": {
    398. "fillColor": "rgba(31, 118, 189, 0.18)",
    399. "full": false,
    400. "lineColor": "rgb(31, 120, 193)",
    401. "show": false
    402. },
    403. "tableColumn": "",
    404. "targets": [
    405. {
    406. "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\",environment=\"$environment\"})*100/sum(jvm_memory_max_bytes{application=\"$application\",instance=\"$instance\", area=\"nonheap\",environment=\"$environment\"})",
    407. "format": "time_series",
    408. "interval": "",
    409. "intervalFactor": 2,
    410. "legendFormat": "",
    411. "refId": "A",
    412. "step": 14400
    413. }
    414. ],
    415. "thresholds": "70,90",
    416. "title": "非堆内存使用率",
    417. "type": "singlestat",
    418. "valueFontSize": "80%",
    419. "valueMaps": [
    420. {
    421. "op": "=",
    422. "text": "N/A",
    423. "value": "null"
    424. },
    425. {
    426. "op": "=",
    427. "text": "x",
    428. "value": ""
    429. }
    430. ],
    431. "valueName": "current"
    432. }
    433. ],
    434. "repeat": null,
    435. "title": "概览",
    436. "type": "row"
    437. },
    438. {
    439. "collapsed": true,
    440. "datasource": "${DS_SPRING-DEMOT}",
    441. "gridPos": {
    442. "h": 1,
    443. "w": 24,
    444. "x": 0,
    445. "y": 1
    446. },
    447. "id": 126,
    448. "panels": [
    449. {
    450. "aliasColors": {},
    451. "bars": false,
    452. "dashLength": 10,
    453. "dashes": false,
    454. "datasource": "Prometheus-测试环境",
    455. "description": "平均每秒处理的请求数",
    456. "fieldConfig": {
    457. "defaults": {
    458. "custom": {},
    459. "links": []
    460. },
    461. "overrides": []
    462. },
    463. "fill": 1,
    464. "fillGradient": 0,
    465. "gridPos": {
    466. "h": 7,
    467. "w": 6,
    468. "x": 0,
    469. "y": 2
    470. },
    471. "hiddenSeries": false,
    472. "id": 111,
    473. "legend": {
    474. "avg": false,
    475. "current": true,
    476. "max": false,
    477. "min": false,
    478. "show": true,
    479. "total": false,
    480. "values": true
    481. },
    482. "lines": true,
    483. "linewidth": 1,
    484. "links": [],
    485. "nullPointMode": "null",
    486. "options": {
    487. "alertThreshold": true
    488. },
    489. "percentage": false,
    490. "pluginVersion": "7.4.3",
    491. "pointradius": 5,
    492. "points": false,
    493. "renderer": "flot",
    494. "seriesOverrides": [],
    495. "spaceLength": 10,
    496. "stack": false,
    497. "steppedLine": false,
    498. "targets": [
    499. {
    500. "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\"}[1m]))",
    501. "format": "time_series",
    502. "interval": "",
    503. "intervalFactor": 1,
    504. "legendFormat": "HTTP",
    505. "refId": "A"
    506. }
    507. ],
    508. "thresholds": [],
    509. "timeFrom": null,
    510. "timeRegions": [],
    511. "timeShift": null,
    512. "title": "QPS(1分钟平均)",
    513. "tooltip": {
    514. "shared": true,
    515. "sort": 0,
    516. "value_type": "individual"
    517. },
    518. "type": "graph",
    519. "xaxis": {
    520. "buckets": null,
    521. "mode": "time",
    522. "name": null,
    523. "show": true,
    524. "values": []
    525. },
    526. "yaxes": [
    527. {
    528. "$$hashKey": "object:294",
    529. "decimals": null,
    530. "format": "ops",
    531. "label": null,
    532. "logBase": 1,
    533. "max": null,
    534. "min": "0",
    535. "show": true
    536. },
    537. {
    538. "$$hashKey": "object:295",
    539. "format": "short",
    540. "label": null,
    541. "logBase": 1,
    542. "max": null,
    543. "min": null,
    544. "show": true
    545. }
    546. ],
    547. "yaxis": {
    548. "align": false,
    549. "alignLevel": null
    550. }
    551. },
    552. {
    553. "aliasColors": {
    554. "HTTP": "#890f02",
    555. "HTTP - 5xx": "#bf1b00"
    556. },
    557. "bars": false,
    558. "dashLength": 10,
    559. "dashes": false,
    560. "datasource": "Prometheus-测试环境",
    561. "fieldConfig": {
    562. "defaults": {
    563. "custom": {},
    564. "links": []
    565. },
    566. "overrides": []
    567. },
    568. "fill": 1,
    569. "fillGradient": 0,
    570. "gridPos": {
    571. "h": 7,
    572. "w": 6,
    573. "x": 6,
    574. "y": 2
    575. },
    576. "hiddenSeries": false,
    577. "id": 112,
    578. "legend": {
    579. "avg": false,
    580. "current": true,
    581. "max": false,
    582. "min": false,
    583. "show": true,
    584. "total": false,
    585. "values": true
    586. },
    587. "lines": true,
    588. "linewidth": 1,
    589. "links": [],
    590. "nullPointMode": "null",
    591. "options": {
    592. "alertThreshold": true
    593. },
    594. "percentage": false,
    595. "pluginVersion": "7.4.3",
    596. "pointradius": 5,
    597. "points": false,
    598. "renderer": "flot",
    599. "seriesOverrides": [],
    600. "spaceLength": 10,
    601. "stack": false,
    602. "steppedLine": false,
    603. "targets": [
    604. {
    605. "expr": "sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status=~\"5..\"}[1m]))",
    606. "format": "time_series",
    607. "intervalFactor": 1,
    608. "legendFormat": "HTTP - 5xx",
    609. "refId": "A"
    610. }
    611. ],
    612. "thresholds": [],
    613. "timeFrom": null,
    614. "timeRegions": [],
    615. "timeShift": null,
    616. "title": "错误数(1分钟平均)",
    617. "tooltip": {
    618. "shared": true,
    619. "sort": 0,
    620. "value_type": "individual"
    621. },
    622. "type": "graph",
    623. "xaxis": {
    624. "buckets": null,
    625. "mode": "time",
    626. "name": null,
    627. "show": true,
    628. "values": []
    629. },
    630. "yaxes": [
    631. {
    632. "decimals": null,
    633. "format": "ops",
    634. "label": null,
    635. "logBase": 1,
    636. "max": null,
    637. "min": "0",
    638. "show": true
    639. },
    640. {
    641. "format": "short",
    642. "label": null,
    643. "logBase": 1,
    644. "max": null,
    645. "min": null,
    646. "show": true
    647. }
    648. ],
    649. "yaxis": {
    650. "align": false,
    651. "alignLevel": null
    652. }
    653. },
    654. {
    655. "aliasColors": {},
    656. "bars": false,
    657. "dashLength": 10,
    658. "dashes": false,
    659. "datasource": "Prometheus-测试环境",
    660. "fieldConfig": {
    661. "defaults": {
    662. "custom": {},
    663. "links": []
    664. },
    665. "overrides": []
    666. },
    667. "fill": 1,
    668. "fillGradient": 0,
    669. "gridPos": {
    670. "h": 7,
    671. "w": 6,
    672. "x": 12,
    673. "y": 2
    674. },
    675. "hiddenSeries": false,
    676. "id": 113,
    677. "legend": {
    678. "avg": false,
    679. "current": true,
    680. "max": false,
    681. "min": false,
    682. "show": true,
    683. "total": false,
    684. "values": true
    685. },
    686. "lines": true,
    687. "linewidth": 1,
    688. "links": [],
    689. "nullPointMode": "null",
    690. "options": {
    691. "alertThreshold": true
    692. },
    693. "percentage": false,
    694. "pluginVersion": "7.4.3",
    695. "pointradius": 5,
    696. "points": false,
    697. "renderer": "flot",
    698. "seriesOverrides": [],
    699. "spaceLength": 10,
    700. "stack": false,
    701. "steppedLine": false,
    702. "targets": [
    703. {
    704. "expr": "sum(rate(http_server_requests_seconds_sum{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))/sum(rate(http_server_requests_seconds_count{application=\"$application\", instance=\"$instance\", status!~\"5..\"}[1m]))",
    705. "format": "time_series",
    706. "hide": false,
    707. "intervalFactor": 1,
    708. "legendFormat": "HTTP - AVG",
    709. "refId": "A"
    710. },
    711. {
    712. "expr": "max(http_server_requests_seconds_max{application=\"$application\", instance=\"$instance\", status!~\"5..\"})",
    713. "format": "time_series",
    714. "hide": false,
    715. "intervalFactor": 1,
    716. "legendFormat": "HTTP - MAX",
    717. "refId": "B"
    718. }
    719. ],
    720. "thresholds": [],
    721. "timeFrom": null,
    722. "timeRegions": [],
    723. "timeShift": null,
    724. "title": "请求耗时(1分钟平均)",
    725. "tooltip": {
    726. "shared": true,
    727. "sort": 0,
    728. "value_type": "individual"
    729. },
    730. "type": "graph",
    731. "xaxis": {
    732. "buckets": null,
    733. "mode": "time",
    734. "name": null,
    735. "show": true,
    736. "values": []
    737. },
    738. "yaxes": [
    739. {
    740. "format": "s",
    741. "label": null,
    742. "logBase": 1,
    743. "max": null,
    744. "min": "0",
    745. "show": true
    746. },
    747. {
    748. "format": "short",
    749. "label": null,
    750. "logBase": 1,
    751. "max": null,
    752. "min": null,
    753. "show": true
    754. }
    755. ],
    756. "yaxis": {
    757. "align": false,
    758. "alignLevel": null
    759. }
    760. },
    761. {
    762. "aliasColors": {},
    763. "bars": false,
    764. "dashLength": 10,
    765. "dashes": false,
    766. "datasource": "Prometheus-测试环境",
    767. "description": "饱和度指标来自于Google SRE的的黄金指标, 指服务的过载程度, 当系统过载时, 往往意味着请求需要排队处理",
    768. "fieldConfig": {
    769. "defaults": {
    770. "custom": {},
    771. "links": [],
    772. "unit": "timeticks"
    773. },
    774. "overrides": []
    775. },
    776. "fill": 1,
    777. "fillGradient": 0,
    778. "gridPos": {
    779. "h": 7,
    780. "w": 6,
    781. "x": 18,
    782. "y": 2
    783. },
    784. "hiddenSeries": false,
    785. "id": 119,
    786. "legend": {
    787. "alignAsTable": false,
    788. "avg": false,
    789. "current": true,
    790. "max": false,
    791. "min": false,
    792. "show": true,
    793. "total": false,
    794. "values": true
    795. },
    796. "lines": true,
    797. "linewidth": 1,
    798. "links": [],
    799. "nullPointMode": "null",
    800. "options": {
    801. "alertThreshold": true
    802. },
    803. "percentage": false,
    804. "pluginVersion": "7.4.3",
    805. "pointradius": 5,
    806. "points": false,
    807. "renderer": "flot",
    808. "seriesOverrides": [],
    809. "spaceLength": 10,
    810. "stack": false,
    811. "steppedLine": false,
    812. "targets": [
    813. {
    814. "expr": "tomcat_threads_busy_threads{application=\"$application\", instance=\"$instance\"}",
    815. "format": "time_series",
    816. "hide": false,
    817. "interval": "",
    818. "intervalFactor": 2,
    819. "legendFormat": "TOMCAT - BSY",
    820. "refId": "A"
    821. },
    822. {
    823. "expr": "tomcat_threads_current_threads{application=\"$application\", instance=\"$instance\"}",
    824. "format": "time_series",
    825. "hide": false,
    826. "intervalFactor": 2,
    827. "legendFormat": "TOMCAT - CUR",
    828. "refId": "B"
    829. },
    830. {
    831. "expr": "tomcat_threads_config_max_threads{application=\"$application\", instance=\"$instance\"}",
    832. "format": "time_series",
    833. "hide": false,
    834. "intervalFactor": 2,
    835. "legendFormat": "TOMCAT - MAX",
    836. "refId": "C"
    837. },
    838. {
    839. "expr": "jetty_threads_busy{application=\"$application\", instance=\"$instance\"}",
    840. "format": "time_series",
    841. "hide": false,
    842. "intervalFactor": 2,
    843. "legendFormat": "JETTY - BSY",
    844. "refId": "D"
    845. },
    846. {
    847. "expr": "jetty_threads_current{application=\"$application\", instance=\"$instance\"}",
    848. "format": "time_series",
    849. "hide": false,
    850. "intervalFactor": 2,
    851. "legendFormat": "JETTY - CUR",
    852. "refId": "E"
    853. },
    854. {
    855. "expr": "jetty_threads_config_max{application=\"$application\", instance=\"$instance\"}",
    856. "format": "time_series",
    857. "hide": false,
    858. "interval": "",
    859. "intervalFactor": 2,
    860. "legendFormat": "JETTY - MAX",
    861. "refId": "F"
    862. },
    863. {
    864. "expr": "http_server_requests_seconds_sum{uri=\"/health/check\",application=\"$application\", instance=\"$instance\"}",
    865. "hide": false,
    866. "interval": "",
    867. "legendFormat": "http_server_requests",
    868. "refId": "G"
    869. }
    870. ],
    871. "thresholds": [],
    872. "timeFrom": null,
    873. "timeRegions": [],
    874. "timeShift": null,
    875. "title": "饱和度",
    876. "tooltip": {
    877. "shared": true,
    878. "sort": 0,
    879. "value_type": "individual"
    880. },
    881. "type": "graph",
    882. "xaxis": {
    883. "buckets": null,
    884. "mode": "time",
    885. "name": null,
    886. "show": true,
    887. "values": []
    888. },
    889. "yaxes": [
    890. {
    891. "$$hashKey": "object:1218",
    892. "format": "timeticks",
    893. "label": null,
    894. "logBase": 1,
    895. "max": null,
    896. "min": "0",
    897. "show": true
    898. },
    899. {
    900. "$$hashKey": "object:1219",
    901. "format": "short",
    902. "label": null,
    903. "logBase": 1,
    904. "max": null,
    905. "min": null,
    906. "show": true
    907. }
    908. ],
    909. "yaxis": {
    910. "align": false,
    911. "alignLevel": null
    912. }
    913. }
    914. ],
    915. "repeat": null,
    916. "title": "服务黄金指标",
    917. "type": "row"
    918. },
    919. {
    920. "collapsed": true,
    921. "datasource": "${DS_SPRING-DEMOT}",
    922. "gridPos": {
    923. "h": 1,
    924. "w": 24,
    925. "x": 0,
    926. "y": 2
    927. },
    928. "id": 127,
    929. "panels": [
    930. {
    931. "aliasColors": {},
    932. "bars": false,
    933. "dashLength": 10,
    934. "dashes": false,
    935. "datasource": "Prometheus-测试环境",
    936. "editable": true,
    937. "error": false,
    938. "fieldConfig": {
    939. "defaults": {
    940. "custom": {},
    941. "links": []
    942. },
    943. "overrides": []
    944. },
    945. "fill": 1,
    946. "fillGradient": 0,
    947. "grid": {
    948. "leftLogBase": 1,
    949. "leftMax": null,
    950. "leftMin": null,
    951. "rightLogBase": 1,
    952. "rightMax": null,
    953. "rightMin": null
    954. },
    955. "gridPos": {
    956. "h": 7,
    957. "w": 6,
    958. "x": 0,
    959. "y": 3
    960. },
    961. "hiddenSeries": false,
    962. "id": 24,
    963. "legend": {
    964. "avg": false,
    965. "current": true,
    966. "max": true,
    967. "min": false,
    968. "show": true,
    969. "total": false,
    970. "values": true
    971. },
    972. "lines": true,
    973. "linewidth": 1,
    974. "links": [],
    975. "nullPointMode": "null",
    976. "options": {
    977. "alertThreshold": true
    978. },
    979. "percentage": false,
    980. "pluginVersion": "7.4.3",
    981. "pointradius": 5,
    982. "points": false,
    983. "renderer": "flot",
    984. "seriesOverrides": [],
    985. "spaceLength": 10,
    986. "stack": false,
    987. "steppedLine": false,
    988. "targets": [
    989. {
    990. "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\",environment=\"$environment\"})",
    991. "format": "time_series",
    992. "interval": "",
    993. "intervalFactor": 2,
    994. "legendFormat": "used",
    995. "metric": "",
    996. "refId": "A",
    997. "step": 2400
    998. },
    999. {
    1000. "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\",environment=\"$environment\"})",
    1001. "format": "time_series",
    1002. "interval": "",
    1003. "intervalFactor": 2,
    1004. "legendFormat": "committed",
    1005. "refId": "B",
    1006. "step": 2400
    1007. },
    1008. {
    1009. "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\",environment=\"$environment\"})",
    1010. "format": "time_series",
    1011. "interval": "",
    1012. "intervalFactor": 2,
    1013. "legendFormat": "max",
    1014. "refId": "C",
    1015. "step": 2400
    1016. }
    1017. ],
    1018. "thresholds": [],
    1019. "timeFrom": null,
    1020. "timeRegions": [],
    1021. "timeShift": null,
    1022. "title": "堆内存",
    1023. "tooltip": {
    1024. "msResolution": false,
    1025. "shared": true,
    1026. "sort": 0,
    1027. "value_type": "cumulative"
    1028. },
    1029. "type": "graph",
    1030. "x-axis": true,
    1031. "xaxis": {
    1032. "buckets": null,
    1033. "mode": "time",
    1034. "name": null,
    1035. "show": true,
    1036. "values": []
    1037. },
    1038. "y-axis": true,
    1039. "y_formats": [
    1040. "mbytes",
    1041. "short"
    1042. ],
    1043. "yaxes": [
    1044. {
    1045. "format": "bytes",
    1046. "label": null,
    1047. "logBase": 1,
    1048. "max": null,
    1049. "min": 0,
    1050. "show": true
    1051. },
    1052. {
    1053. "format": "short",
    1054. "label": null,
    1055. "logBase": 1,
    1056. "max": null,
    1057. "min": null,
    1058. "show": true
    1059. }
    1060. ],
    1061. "yaxis": {
    1062. "align": false,
    1063. "alignLevel": null
    1064. }
    1065. },
    1066. {
    1067. "aliasColors": {},
    1068. "bars": false,
    1069. "dashLength": 10,
    1070. "dashes": false,
    1071. "datasource": "Prometheus-测试环境",
    1072. "editable": true,
    1073. "error": false,
    1074. "fieldConfig": {
    1075. "defaults": {
    1076. "custom": {},
    1077. "links": []
    1078. },
    1079. "overrides": []
    1080. },
    1081. "fill": 1,
    1082. "fillGradient": 0,
    1083. "grid": {
    1084. "leftLogBase": 1,
    1085. "leftMax": null,
    1086. "leftMin": null,
    1087. "rightLogBase": 1,
    1088. "rightMax": null,
    1089. "rightMin": null
    1090. },
    1091. "gridPos": {
    1092. "h": 7,
    1093. "w": 6,
    1094. "x": 6,
    1095. "y": 3
    1096. },
    1097. "hiddenSeries": false,
    1098. "id": 25,
    1099. "legend": {
    1100. "avg": false,
    1101. "current": true,
    1102. "max": true,
    1103. "min": false,
    1104. "show": true,
    1105. "total": false,
    1106. "values": true
    1107. },
    1108. "lines": true,
    1109. "linewidth": 1,
    1110. "links": [],
    1111. "nullPointMode": "null",
    1112. "options": {
    1113. "alertThreshold": true
    1114. },
    1115. "percentage": false,
    1116. "pluginVersion": "7.4.3",
    1117. "pointradius": 5,
    1118. "points": false,
    1119. "renderer": "flot",
    1120. "seriesOverrides": [],
    1121. "spaceLength": 10,
    1122. "stack": false,
    1123. "steppedLine": false,
    1124. "targets": [
    1125. {
    1126. "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\",environment=\"$environment\"})",
    1127. "format": "time_series",
    1128. "interval": "",
    1129. "intervalFactor": 2,
    1130. "legendFormat": "used",
    1131. "metric": "",
    1132. "refId": "A",
    1133. "step": 2400
    1134. },
    1135. {
    1136. "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\",environment=\"$environment\"})",
    1137. "format": "time_series",
    1138. "interval": "",
    1139. "intervalFactor": 2,
    1140. "legendFormat": "committed",
    1141. "refId": "B",
    1142. "step": 2400
    1143. },
    1144. {
    1145. "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\",environment=\"$environment\"})",
    1146. "format": "time_series",
    1147. "interval": "",
    1148. "intervalFactor": 2,
    1149. "legendFormat": "max",
    1150. "refId": "C",
    1151. "step": 2400
    1152. }
    1153. ],
    1154. "thresholds": [],
    1155. "timeFrom": null,
    1156. "timeRegions": [],
    1157. "timeShift": null,
    1158. "title": "非堆内存",
    1159. "tooltip": {
    1160. "msResolution": false,
    1161. "shared": true,
    1162. "sort": 0,
    1163. "value_type": "cumulative"
    1164. },
    1165. "type": "graph",
    1166. "x-axis": true,
    1167. "xaxis": {
    1168. "buckets": null,
    1169. "mode": "time",
    1170. "name": null,
    1171. "show": true,
    1172. "values": []
    1173. },
    1174. "y-axis": true,
    1175. "y_formats": [
    1176. "mbytes",
    1177. "short"
    1178. ],
    1179. "yaxes": [
    1180. {
    1181. "format": "bytes",
    1182. "label": null,
    1183. "logBase": 1,
    1184. "max": null,
    1185. "min": 0,
    1186. "show": true
    1187. },
    1188. {
    1189. "format": "short",
    1190. "label": null,
    1191. "logBase": 1,
    1192. "max": null,
    1193. "min": null,
    1194. "show": true
    1195. }
    1196. ],
    1197. "yaxis": {
    1198. "align": false,
    1199. "alignLevel": null
    1200. }
    1201. },
    1202. {
    1203. "aliasColors": {},
    1204. "bars": false,
    1205. "dashLength": 10,
    1206. "dashes": false,
    1207. "datasource": "Prometheus-测试环境",
    1208. "editable": true,
    1209. "error": false,
    1210. "fieldConfig": {
    1211. "defaults": {
    1212. "custom": {},
    1213. "links": []
    1214. },
    1215. "overrides": []
    1216. },
    1217. "fill": 1,
    1218. "fillGradient": 0,
    1219. "grid": {
    1220. "leftLogBase": 1,
    1221. "leftMax": null,
    1222. "leftMin": null,
    1223. "rightLogBase": 1,
    1224. "rightMax": null,
    1225. "rightMin": null
    1226. },
    1227. "gridPos": {
    1228. "h": 7,
    1229. "w": 6,
    1230. "x": 12,
    1231. "y": 3
    1232. },
    1233. "hiddenSeries": false,
    1234. "id": 26,
    1235. "legend": {
    1236. "alignAsTable": false,
    1237. "avg": false,
    1238. "current": true,
    1239. "max": true,
    1240. "min": false,
    1241. "show": true,
    1242. "total": false,
    1243. "values": true
    1244. },
    1245. "lines": true,
    1246. "linewidth": 1,
    1247. "links": [],
    1248. "nullPointMode": "null",
    1249. "options": {
    1250. "alertThreshold": true
    1251. },
    1252. "percentage": false,
    1253. "pluginVersion": "7.4.3",
    1254. "pointradius": 5,
    1255. "points": false,
    1256. "renderer": "flot",
    1257. "seriesOverrides": [],
    1258. "spaceLength": 10,
    1259. "stack": false,
    1260. "steppedLine": false,
    1261. "targets": [
    1262. {
    1263. "expr": "sum(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"})",
    1264. "format": "time_series",
    1265. "interval": "",
    1266. "intervalFactor": 2,
    1267. "legendFormat": "used",
    1268. "metric": "",
    1269. "refId": "A",
    1270. "step": 2400
    1271. },
    1272. {
    1273. "expr": "sum(jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"})",
    1274. "format": "time_series",
    1275. "interval": "",
    1276. "intervalFactor": 2,
    1277. "legendFormat": "committed",
    1278. "refId": "B",
    1279. "step": 2400
    1280. },
    1281. {
    1282. "expr": "sum(jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"})",
    1283. "format": "time_series",
    1284. "interval": "",
    1285. "intervalFactor": 2,
    1286. "legendFormat": "max",
    1287. "refId": "C",
    1288. "step": 2400
    1289. }
    1290. ],
    1291. "thresholds": [],
    1292. "timeFrom": null,
    1293. "timeRegions": [],
    1294. "timeShift": null,
    1295. "title": "总内存",
    1296. "tooltip": {
    1297. "msResolution": false,
    1298. "shared": true,
    1299. "sort": 0,
    1300. "value_type": "cumulative"
    1301. },
    1302. "type": "graph",
    1303. "x-axis": true,
    1304. "xaxis": {
    1305. "buckets": null,
    1306. "mode": "time",
    1307. "name": null,
    1308. "show": true,
    1309. "values": []
    1310. },
    1311. "y-axis": true,
    1312. "y_formats": [
    1313. "mbytes",
    1314. "short"
    1315. ],
    1316. "yaxes": [
    1317. {
    1318. "format": "bytes",
    1319. "label": "",
    1320. "logBase": 1,
    1321. "max": null,
    1322. "min": 0,
    1323. "show": true
    1324. },
    1325. {
    1326. "format": "short",
    1327. "label": null,
    1328. "logBase": 1,
    1329. "max": null,
    1330. "min": null,
    1331. "show": true
    1332. }
    1333. ],
    1334. "yaxis": {
    1335. "align": false,
    1336. "alignLevel": null
    1337. }
    1338. },
    1339. {
    1340. "aliasColors": {},
    1341. "bars": false,
    1342. "dashLength": 10,
    1343. "dashes": false,
    1344. "datasource": "Prometheus-测试环境",
    1345. "description": "从操作系统层面看JVM进程的内存使用, 因为JVM并不是直接按照配置的内存参数申请全部内存",
    1346. "editable": true,
    1347. "error": false,
    1348. "fieldConfig": {
    1349. "defaults": {
    1350. "custom": {},
    1351. "links": []
    1352. },
    1353. "overrides": []
    1354. },
    1355. "fill": 1,
    1356. "fillGradient": 0,
    1357. "grid": {
    1358. "leftLogBase": 1,
    1359. "leftMax": null,
    1360. "leftMin": null,
    1361. "rightLogBase": 1,
    1362. "rightMax": null,
    1363. "rightMin": null
    1364. },
    1365. "gridPos": {
    1366. "h": 7,
    1367. "w": 6,
    1368. "x": 18,
    1369. "y": 3
    1370. },
    1371. "hiddenSeries": false,
    1372. "id": 86,
    1373. "legend": {
    1374. "avg": false,
    1375. "current": true,
    1376. "max": true,
    1377. "min": false,
    1378. "show": true,
    1379. "total": false,
    1380. "values": true
    1381. },
    1382. "lines": true,
    1383. "linewidth": 1,
    1384. "links": [],
    1385. "nullPointMode": "null",
    1386. "options": {
    1387. "alertThreshold": true
    1388. },
    1389. "percentage": false,
    1390. "pluginVersion": "7.4.3",
    1391. "pointradius": 5,
    1392. "points": false,
    1393. "renderer": "flot",
    1394. "seriesOverrides": [],
    1395. "spaceLength": 10,
    1396. "stack": false,
    1397. "steppedLine": false,
    1398. "targets": [
    1399. {
    1400. "expr": "process_memory_vss_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1401. "format": "time_series",
    1402. "hide": true,
    1403. "interval": "",
    1404. "intervalFactor": 2,
    1405. "legendFormat": "vss",
    1406. "metric": "",
    1407. "refId": "A",
    1408. "step": 2400
    1409. },
    1410. {
    1411. "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1412. "format": "time_series",
    1413. "interval": "",
    1414. "intervalFactor": 2,
    1415. "legendFormat": "rss",
    1416. "refId": "B"
    1417. },
    1418. {
    1419. "expr": "process_memory_swap_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1420. "format": "time_series",
    1421. "interval": "",
    1422. "intervalFactor": 2,
    1423. "legendFormat": "swap",
    1424. "refId": "C"
    1425. },
    1426. {
    1427. "expr": "process_memory_rss_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"} + process_memory_swap_bytes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1428. "format": "time_series",
    1429. "interval": "",
    1430. "intervalFactor": 2,
    1431. "legendFormat": "total",
    1432. "refId": "D"
    1433. },
    1434. {
    1435. "expr": "jvm_threads_peak_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1436. "hide": false,
    1437. "interval": "",
    1438. "legendFormat": "",
    1439. "refId": "E"
    1440. }
    1441. ],
    1442. "thresholds": [],
    1443. "timeFrom": null,
    1444. "timeRegions": [],
    1445. "timeShift": null,
    1446. "title": "JVM 进程内存",
    1447. "tooltip": {
    1448. "msResolution": false,
    1449. "shared": true,
    1450. "sort": 0,
    1451. "value_type": "cumulative"
    1452. },
    1453. "type": "graph",
    1454. "x-axis": true,
    1455. "xaxis": {
    1456. "buckets": null,
    1457. "mode": "time",
    1458. "name": null,
    1459. "show": true,
    1460. "values": []
    1461. },
    1462. "y-axis": true,
    1463. "y_formats": [
    1464. "mbytes",
    1465. "short"
    1466. ],
    1467. "yaxes": [
    1468. {
    1469. "$$hashKey": "object:1117",
    1470. "format": "bytes",
    1471. "label": "",
    1472. "logBase": 2,
    1473. "max": null,
    1474. "min": "0",
    1475. "show": true
    1476. },
    1477. {
    1478. "$$hashKey": "object:1118",
    1479. "format": "short",
    1480. "label": null,
    1481. "logBase": 1,
    1482. "max": null,
    1483. "min": null,
    1484. "show": true
    1485. }
    1486. ],
    1487. "yaxis": {
    1488. "align": false,
    1489. "alignLevel": null
    1490. }
    1491. }
    1492. ],
    1493. "repeat": null,
    1494. "title": "JVM 内存",
    1495. "type": "row"
    1496. },
    1497. {
    1498. "collapsed": true,
    1499. "datasource": "Prometheus-测试环境",
    1500. "gridPos": {
    1501. "h": 1,
    1502. "w": 24,
    1503. "x": 0,
    1504. "y": 3
    1505. },
    1506. "id": 128,
    1507. "panels": [
    1508. {
    1509. "aliasColors": {},
    1510. "bars": false,
    1511. "dashLength": 10,
    1512. "dashes": false,
    1513. "datasource": "Prometheus-测试环境",
    1514. "editable": true,
    1515. "error": false,
    1516. "fieldConfig": {
    1517. "defaults": {
    1518. "custom": {},
    1519. "links": []
    1520. },
    1521. "overrides": []
    1522. },
    1523. "fill": 1,
    1524. "fillGradient": 0,
    1525. "grid": {
    1526. "leftLogBase": 1,
    1527. "leftMax": null,
    1528. "leftMin": null,
    1529. "rightLogBase": 1,
    1530. "rightMax": null,
    1531. "rightMin": null
    1532. },
    1533. "gridPos": {
    1534. "h": 7,
    1535. "w": 6,
    1536. "x": 0,
    1537. "y": 4
    1538. },
    1539. "hiddenSeries": false,
    1540. "id": 106,
    1541. "legend": {
    1542. "avg": false,
    1543. "current": true,
    1544. "max": true,
    1545. "min": false,
    1546. "show": true,
    1547. "total": false,
    1548. "values": true
    1549. },
    1550. "lines": true,
    1551. "linewidth": 1,
    1552. "links": [],
    1553. "nullPointMode": "null",
    1554. "options": {
    1555. "alertThreshold": true
    1556. },
    1557. "percentage": false,
    1558. "pluginVersion": "7.4.3",
    1559. "pointradius": 5,
    1560. "points": false,
    1561. "renderer": "flot",
    1562. "seriesOverrides": [],
    1563. "spaceLength": 10,
    1564. "stack": false,
    1565. "steppedLine": false,
    1566. "targets": [
    1567. {
    1568. "expr": "system_cpu_usage{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1569. "format": "time_series",
    1570. "hide": false,
    1571. "interval": "",
    1572. "intervalFactor": 1,
    1573. "legendFormat": "system",
    1574. "metric": "",
    1575. "refId": "A",
    1576. "step": 2400
    1577. },
    1578. {
    1579. "expr": "process_cpu_usage{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1580. "format": "time_series",
    1581. "hide": false,
    1582. "interval": "",
    1583. "intervalFactor": 1,
    1584. "legendFormat": "process",
    1585. "refId": "B"
    1586. },
    1587. {
    1588. "expr": "avg_over_time(process_cpu_usage{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1h])",
    1589. "format": "time_series",
    1590. "hide": false,
    1591. "interval": "",
    1592. "intervalFactor": 1,
    1593. "legendFormat": "process-1h",
    1594. "refId": "C"
    1595. }
    1596. ],
    1597. "thresholds": [],
    1598. "timeFrom": null,
    1599. "timeRegions": [],
    1600. "timeShift": null,
    1601. "title": "CPU 使用率",
    1602. "tooltip": {
    1603. "msResolution": false,
    1604. "shared": true,
    1605. "sort": 0,
    1606. "value_type": "cumulative"
    1607. },
    1608. "type": "graph",
    1609. "x-axis": true,
    1610. "xaxis": {
    1611. "buckets": null,
    1612. "mode": "time",
    1613. "name": null,
    1614. "show": true,
    1615. "values": []
    1616. },
    1617. "y-axis": true,
    1618. "y_formats": [
    1619. "short",
    1620. "short"
    1621. ],
    1622. "yaxes": [
    1623. {
    1624. "decimals": 1,
    1625. "format": "percentunit",
    1626. "label": "",
    1627. "logBase": 1,
    1628. "max": "1",
    1629. "min": 0,
    1630. "show": true
    1631. },
    1632. {
    1633. "format": "short",
    1634. "label": null,
    1635. "logBase": 1,
    1636. "max": null,
    1637. "min": null,
    1638. "show": true
    1639. }
    1640. ],
    1641. "yaxis": {
    1642. "align": false,
    1643. "alignLevel": null
    1644. }
    1645. },
    1646. {
    1647. "aliasColors": {},
    1648. "bars": false,
    1649. "dashLength": 10,
    1650. "dashes": false,
    1651. "datasource": "Prometheus-测试环境",
    1652. "editable": true,
    1653. "error": false,
    1654. "fieldConfig": {
    1655. "defaults": {
    1656. "custom": {},
    1657. "links": []
    1658. },
    1659. "overrides": []
    1660. },
    1661. "fill": 1,
    1662. "fillGradient": 0,
    1663. "grid": {
    1664. "leftLogBase": 1,
    1665. "leftMax": null,
    1666. "leftMin": null,
    1667. "rightLogBase": 1,
    1668. "rightMax": null,
    1669. "rightMin": null
    1670. },
    1671. "gridPos": {
    1672. "h": 7,
    1673. "w": 6,
    1674. "x": 6,
    1675. "y": 4
    1676. },
    1677. "hiddenSeries": false,
    1678. "id": 93,
    1679. "legend": {
    1680. "avg": false,
    1681. "current": true,
    1682. "max": true,
    1683. "min": false,
    1684. "show": true,
    1685. "total": false,
    1686. "values": true
    1687. },
    1688. "lines": true,
    1689. "linewidth": 1,
    1690. "links": [],
    1691. "nullPointMode": "null",
    1692. "options": {
    1693. "alertThreshold": true
    1694. },
    1695. "percentage": false,
    1696. "pluginVersion": "7.4.3",
    1697. "pointradius": 5,
    1698. "points": false,
    1699. "renderer": "flot",
    1700. "seriesOverrides": [],
    1701. "spaceLength": 10,
    1702. "stack": false,
    1703. "steppedLine": false,
    1704. "targets": [
    1705. {
    1706. "expr": "system_load_average_1m{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1707. "format": "time_series",
    1708. "interval": "",
    1709. "intervalFactor": 2,
    1710. "legendFormat": "load1",
    1711. "metric": "",
    1712. "refId": "A",
    1713. "step": 2400
    1714. },
    1715. {
    1716. "expr": "system_cpu_count{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1717. "format": "time_series",
    1718. "interval": "",
    1719. "intervalFactor": 2,
    1720. "legendFormat": "cpu核数",
    1721. "refId": "B"
    1722. }
    1723. ],
    1724. "thresholds": [],
    1725. "timeFrom": null,
    1726. "timeRegions": [],
    1727. "timeShift": null,
    1728. "title": "Load 系统负载",
    1729. "tooltip": {
    1730. "msResolution": false,
    1731. "shared": true,
    1732. "sort": 0,
    1733. "value_type": "cumulative"
    1734. },
    1735. "type": "graph",
    1736. "x-axis": true,
    1737. "xaxis": {
    1738. "buckets": null,
    1739. "mode": "time",
    1740. "name": null,
    1741. "show": true,
    1742. "values": []
    1743. },
    1744. "y-axis": true,
    1745. "y_formats": [
    1746. "short",
    1747. "short"
    1748. ],
    1749. "yaxes": [
    1750. {
    1751. "$$hashKey": "object:318",
    1752. "decimals": 1,
    1753. "format": "short",
    1754. "label": "",
    1755. "logBase": 1,
    1756. "max": null,
    1757. "min": 0,
    1758. "show": true
    1759. },
    1760. {
    1761. "$$hashKey": "object:319",
    1762. "format": "short",
    1763. "label": null,
    1764. "logBase": 1,
    1765. "max": null,
    1766. "min": null,
    1767. "show": true
    1768. }
    1769. ],
    1770. "yaxis": {
    1771. "align": false,
    1772. "alignLevel": null
    1773. }
    1774. },
    1775. {
    1776. "aliasColors": {},
    1777. "bars": false,
    1778. "dashLength": 10,
    1779. "dashes": false,
    1780. "datasource": "Prometheus-测试环境",
    1781. "editable": true,
    1782. "error": false,
    1783. "fieldConfig": {
    1784. "defaults": {
    1785. "custom": {},
    1786. "links": []
    1787. },
    1788. "overrides": []
    1789. },
    1790. "fill": 1,
    1791. "fillGradient": 0,
    1792. "grid": {
    1793. "leftLogBase": 1,
    1794. "leftMax": null,
    1795. "leftMin": null,
    1796. "rightLogBase": 1,
    1797. "rightMax": null,
    1798. "rightMin": null
    1799. },
    1800. "gridPos": {
    1801. "h": 7,
    1802. "w": 6,
    1803. "x": 12,
    1804. "y": 4
    1805. },
    1806. "hiddenSeries": false,
    1807. "id": 32,
    1808. "legend": {
    1809. "avg": false,
    1810. "current": true,
    1811. "max": true,
    1812. "min": false,
    1813. "show": true,
    1814. "total": false,
    1815. "values": true
    1816. },
    1817. "lines": true,
    1818. "linewidth": 1,
    1819. "links": [],
    1820. "nullPointMode": "null",
    1821. "options": {
    1822. "alertThreshold": true
    1823. },
    1824. "percentage": false,
    1825. "pluginVersion": "7.4.3",
    1826. "pointradius": 5,
    1827. "points": false,
    1828. "renderer": "flot",
    1829. "seriesOverrides": [],
    1830. "spaceLength": 10,
    1831. "stack": false,
    1832. "steppedLine": false,
    1833. "targets": [
    1834. {
    1835. "expr": "jvm_threads_live_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1836. "format": "time_series",
    1837. "interval": "",
    1838. "intervalFactor": 2,
    1839. "legendFormat": "live",
    1840. "metric": "",
    1841. "refId": "A",
    1842. "step": 2400
    1843. },
    1844. {
    1845. "expr": "jvm_threads_daemon_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1846. "format": "time_series",
    1847. "interval": "",
    1848. "intervalFactor": 2,
    1849. "legendFormat": "daemon",
    1850. "metric": "",
    1851. "refId": "B",
    1852. "step": 2400
    1853. },
    1854. {
    1855. "expr": "jvm_threads_peak_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1856. "format": "time_series",
    1857. "interval": "",
    1858. "intervalFactor": 2,
    1859. "legendFormat": "peak",
    1860. "refId": "C",
    1861. "step": 2400
    1862. },
    1863. {
    1864. "expr": "process_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1865. "format": "time_series",
    1866. "interval": "",
    1867. "intervalFactor": 2,
    1868. "legendFormat": "process",
    1869. "refId": "D",
    1870. "step": 2400
    1871. }
    1872. ],
    1873. "thresholds": [],
    1874. "timeFrom": null,
    1875. "timeRegions": [],
    1876. "timeShift": null,
    1877. "title": "线程数",
    1878. "tooltip": {
    1879. "msResolution": false,
    1880. "shared": true,
    1881. "sort": 0,
    1882. "value_type": "cumulative"
    1883. },
    1884. "type": "graph",
    1885. "x-axis": true,
    1886. "xaxis": {
    1887. "buckets": null,
    1888. "mode": "time",
    1889. "name": null,
    1890. "show": true,
    1891. "values": []
    1892. },
    1893. "y-axis": true,
    1894. "y_formats": [
    1895. "short",
    1896. "short"
    1897. ],
    1898. "yaxes": [
    1899. {
    1900. "decimals": 0,
    1901. "format": "short",
    1902. "label": null,
    1903. "logBase": 1,
    1904. "max": null,
    1905. "min": 0,
    1906. "show": true
    1907. },
    1908. {
    1909. "format": "short",
    1910. "label": null,
    1911. "logBase": 1,
    1912. "max": null,
    1913. "min": null,
    1914. "show": true
    1915. }
    1916. ],
    1917. "yaxis": {
    1918. "align": false,
    1919. "alignLevel": null
    1920. }
    1921. },
    1922. {
    1923. "aliasColors": {
    1924. "blocked": "#bf1b00",
    1925. "new": "#fce2de",
    1926. "runnable": "#7eb26d",
    1927. "terminated": "#511749",
    1928. "timed-waiting": "#c15c17",
    1929. "waiting": "#eab839"
    1930. },
    1931. "bars": false,
    1932. "dashLength": 10,
    1933. "dashes": false,
    1934. "datasource": "Prometheus-测试环境",
    1935. "description": "需特别关注blocked的线程数, 这意味着线程被阻塞了, 如果线程全部是blocked状态, 则系统无法处理新请求",
    1936. "fieldConfig": {
    1937. "defaults": {
    1938. "custom": {},
    1939. "links": []
    1940. },
    1941. "overrides": []
    1942. },
    1943. "fill": 1,
    1944. "fillGradient": 0,
    1945. "gridPos": {
    1946. "h": 7,
    1947. "w": 6,
    1948. "x": 18,
    1949. "y": 4
    1950. },
    1951. "hiddenSeries": false,
    1952. "id": 124,
    1953. "legend": {
    1954. "alignAsTable": false,
    1955. "avg": false,
    1956. "current": true,
    1957. "max": true,
    1958. "min": false,
    1959. "rightSide": false,
    1960. "show": true,
    1961. "total": false,
    1962. "values": true
    1963. },
    1964. "lines": true,
    1965. "linewidth": 1,
    1966. "links": [],
    1967. "nullPointMode": "null",
    1968. "options": {
    1969. "alertThreshold": true
    1970. },
    1971. "percentage": false,
    1972. "pluginVersion": "7.4.3",
    1973. "pointradius": 5,
    1974. "points": false,
    1975. "renderer": "flot",
    1976. "seriesOverrides": [],
    1977. "spaceLength": 10,
    1978. "stack": false,
    1979. "steppedLine": false,
    1980. "targets": [
    1981. {
    1982. "expr": "jvm_threads_states_threads{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    1983. "format": "time_series",
    1984. "interval": "",
    1985. "intervalFactor": 2,
    1986. "legendFormat": "{{state}}",
    1987. "refId": "A"
    1988. }
    1989. ],
    1990. "thresholds": [],
    1991. "timeFrom": null,
    1992. "timeRegions": [],
    1993. "timeShift": null,
    1994. "title": "各状态线程数",
    1995. "tooltip": {
    1996. "shared": true,
    1997. "sort": 0,
    1998. "value_type": "individual"
    1999. },
    2000. "type": "graph",
    2001. "xaxis": {
    2002. "buckets": null,
    2003. "mode": "time",
    2004. "name": null,
    2005. "show": true,
    2006. "values": []
    2007. },
    2008. "yaxes": [
    2009. {
    2010. "format": "short",
    2011. "label": null,
    2012. "logBase": 1,
    2013. "max": null,
    2014. "min": null,
    2015. "show": true
    2016. },
    2017. {
    2018. "format": "short",
    2019. "label": null,
    2020. "logBase": 1,
    2021. "max": null,
    2022. "min": null,
    2023. "show": true
    2024. }
    2025. ],
    2026. "yaxis": {
    2027. "align": false,
    2028. "alignLevel": null
    2029. }
    2030. },
    2031. {
    2032. "aliasColors": {
    2033. "debug": "#1F78C1",
    2034. "error": "#BF1B00",
    2035. "info": "#508642",
    2036. "trace": "#6ED0E0",
    2037. "warn": "#EAB839"
    2038. },
    2039. "bars": false,
    2040. "dashLength": 10,
    2041. "dashes": false,
    2042. "datasource": "Prometheus-测试环境",
    2043. "editable": true,
    2044. "error": false,
    2045. "fieldConfig": {
    2046. "defaults": {
    2047. "custom": {},
    2048. "links": [],
    2049. "unit": "string"
    2050. },
    2051. "overrides": []
    2052. },
    2053. "fill": 1,
    2054. "fillGradient": 0,
    2055. "grid": {
    2056. "leftLogBase": 1,
    2057. "leftMax": null,
    2058. "leftMin": null,
    2059. "rightLogBase": 1,
    2060. "rightMax": null,
    2061. "rightMin": null
    2062. },
    2063. "gridPos": {
    2064. "h": 7,
    2065. "w": 18,
    2066. "x": 0,
    2067. "y": 11
    2068. },
    2069. "height": "",
    2070. "hiddenSeries": false,
    2071. "id": 91,
    2072. "legend": {
    2073. "alignAsTable": false,
    2074. "avg": false,
    2075. "current": true,
    2076. "hideEmpty": false,
    2077. "hideZero": false,
    2078. "max": true,
    2079. "min": false,
    2080. "rightSide": false,
    2081. "show": true,
    2082. "total": false,
    2083. "values": true
    2084. },
    2085. "lines": true,
    2086. "linewidth": 1,
    2087. "links": [],
    2088. "nullPointMode": "null",
    2089. "options": {
    2090. "alertThreshold": true
    2091. },
    2092. "percentage": true,
    2093. "pluginVersion": "7.4.3",
    2094. "pointradius": 5,
    2095. "points": false,
    2096. "renderer": "flot",
    2097. "seriesOverrides": [
    2098. {
    2099. "$$hashKey": "object:259",
    2100. "alias": "error",
    2101. "yaxis": 1
    2102. },
    2103. {
    2104. "$$hashKey": "object:260",
    2105. "alias": "warn",
    2106. "yaxis": 1
    2107. }
    2108. ],
    2109. "spaceLength": 10,
    2110. "stack": false,
    2111. "steppedLine": false,
    2112. "targets": [
    2113. {
    2114. "expr": "log4j2_events_total{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    2115. "format": "time_series",
    2116. "interval": "",
    2117. "intervalFactor": 2,
    2118. "legendFormat": "{{level}}",
    2119. "metric": "",
    2120. "refId": "A",
    2121. "step": 1200
    2122. },
    2123. {
    2124. "expr": "logback_events_total{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    2125. "hide": false,
    2126. "interval": "",
    2127. "intervalFactor": 2,
    2128. "legendFormat": "{{level}}",
    2129. "refId": "B"
    2130. }
    2131. ],
    2132. "thresholds": [],
    2133. "timeFrom": null,
    2134. "timeRegions": [],
    2135. "timeShift": null,
    2136. "title": "日志数",
    2137. "tooltip": {
    2138. "msResolution": false,
    2139. "shared": true,
    2140. "sort": 0,
    2141. "value_type": "individual"
    2142. },
    2143. "type": "graph",
    2144. "x-axis": true,
    2145. "xaxis": {
    2146. "buckets": null,
    2147. "mode": "time",
    2148. "name": null,
    2149. "show": true,
    2150. "values": []
    2151. },
    2152. "y-axis": true,
    2153. "y_formats": [
    2154. "short",
    2155. "short"
    2156. ],
    2157. "yaxes": [
    2158. {
    2159. "$$hashKey": "object:273",
    2160. "decimals": 0,
    2161. "format": "string",
    2162. "label": null,
    2163. "logBase": 1,
    2164. "max": null,
    2165. "min": "0",
    2166. "show": true
    2167. },
    2168. {
    2169. "$$hashKey": "object:274",
    2170. "format": "short",
    2171. "label": null,
    2172. "logBase": 1,
    2173. "max": null,
    2174. "min": null,
    2175. "show": true
    2176. }
    2177. ],
    2178. "yaxis": {
    2179. "align": false,
    2180. "alignLevel": null
    2181. }
    2182. },
    2183. {
    2184. "aliasColors": {},
    2185. "bars": false,
    2186. "dashLength": 10,
    2187. "dashes": false,
    2188. "datasource": "Prometheus-测试环境",
    2189. "editable": true,
    2190. "error": false,
    2191. "fieldConfig": {
    2192. "defaults": {
    2193. "custom": {},
    2194. "links": []
    2195. },
    2196. "overrides": []
    2197. },
    2198. "fill": 1,
    2199. "fillGradient": 0,
    2200. "grid": {
    2201. "leftLogBase": 1,
    2202. "leftMax": null,
    2203. "leftMin": null,
    2204. "rightLogBase": 1,
    2205. "rightMax": null,
    2206. "rightMin": null
    2207. },
    2208. "gridPos": {
    2209. "h": 7,
    2210. "w": 6,
    2211. "x": 18,
    2212. "y": 11
    2213. },
    2214. "hiddenSeries": false,
    2215. "id": 61,
    2216. "legend": {
    2217. "avg": false,
    2218. "current": true,
    2219. "max": true,
    2220. "min": false,
    2221. "show": true,
    2222. "total": false,
    2223. "values": true
    2224. },
    2225. "lines": true,
    2226. "linewidth": 1,
    2227. "links": [],
    2228. "nullPointMode": "null",
    2229. "options": {
    2230. "alertThreshold": true
    2231. },
    2232. "percentage": false,
    2233. "pluginVersion": "7.4.3",
    2234. "pointradius": 5,
    2235. "points": false,
    2236. "renderer": "flot",
    2237. "seriesOverrides": [],
    2238. "spaceLength": 10,
    2239. "stack": false,
    2240. "steppedLine": false,
    2241. "targets": [
    2242. {
    2243. "expr": "process_files_open_files{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    2244. "format": "time_series",
    2245. "hide": false,
    2246. "interval": "",
    2247. "intervalFactor": 2,
    2248. "legendFormat": "open",
    2249. "metric": "",
    2250. "refId": "A",
    2251. "step": 2400
    2252. },
    2253. {
    2254. "expr": "process_files_max_files{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    2255. "format": "time_series",
    2256. "hide": false,
    2257. "interval": "",
    2258. "intervalFactor": 2,
    2259. "legendFormat": "max",
    2260. "metric": "",
    2261. "refId": "B",
    2262. "step": 2400
    2263. }
    2264. ],
    2265. "thresholds": [],
    2266. "timeFrom": null,
    2267. "timeRegions": [],
    2268. "timeShift": null,
    2269. "title": "文件描述符",
    2270. "tooltip": {
    2271. "msResolution": false,
    2272. "shared": true,
    2273. "sort": 0,
    2274. "value_type": "cumulative"
    2275. },
    2276. "type": "graph",
    2277. "x-axis": true,
    2278. "xaxis": {
    2279. "buckets": null,
    2280. "mode": "time",
    2281. "name": null,
    2282. "show": true,
    2283. "values": []
    2284. },
    2285. "y-axis": true,
    2286. "y_formats": [
    2287. "short",
    2288. "short"
    2289. ],
    2290. "yaxes": [
    2291. {
    2292. "decimals": 0,
    2293. "format": "short",
    2294. "label": null,
    2295. "logBase": 10,
    2296. "max": null,
    2297. "min": 0,
    2298. "show": true
    2299. },
    2300. {
    2301. "format": "short",
    2302. "label": null,
    2303. "logBase": 1,
    2304. "max": null,
    2305. "min": null,
    2306. "show": true
    2307. }
    2308. ],
    2309. "yaxis": {
    2310. "align": false,
    2311. "alignLevel": null
    2312. }
    2313. }
    2314. ],
    2315. "repeat": null,
    2316. "title": "JVM 负载",
    2317. "type": "row"
    2318. },
    2319. {
    2320. "collapsed": true,
    2321. "datasource": "Prometheus-测试环境",
    2322. "gridPos": {
    2323. "h": 1,
    2324. "w": 24,
    2325. "x": 0,
    2326. "y": 4
    2327. },
    2328. "id": 129,
    2329. "panels": [
    2330. {
    2331. "aliasColors": {},
    2332. "bars": false,
    2333. "dashLength": 10,
    2334. "dashes": false,
    2335. "datasource": "Prometheus-测试环境",
    2336. "editable": true,
    2337. "error": false,
    2338. "fieldConfig": {
    2339. "defaults": {
    2340. "custom": {},
    2341. "links": []
    2342. },
    2343. "overrides": []
    2344. },
    2345. "fill": 1,
    2346. "fillGradient": 0,
    2347. "grid": {
    2348. "leftLogBase": 1,
    2349. "leftMax": null,
    2350. "leftMin": null,
    2351. "rightLogBase": 1,
    2352. "rightMax": null,
    2353. "rightMin": null
    2354. },
    2355. "gridPos": {
    2356. "h": 7,
    2357. "w": 8,
    2358. "x": 0,
    2359. "y": 5
    2360. },
    2361. "hiddenSeries": false,
    2362. "id": 3,
    2363. "legend": {
    2364. "alignAsTable": false,
    2365. "avg": false,
    2366. "current": true,
    2367. "max": true,
    2368. "min": false,
    2369. "rightSide": false,
    2370. "show": true,
    2371. "total": false,
    2372. "values": true
    2373. },
    2374. "lines": true,
    2375. "linewidth": 1,
    2376. "links": [],
    2377. "maxPerRow": 3,
    2378. "nullPointMode": "null",
    2379. "options": {
    2380. "alertThreshold": true
    2381. },
    2382. "percentage": false,
    2383. "pluginVersion": "7.4.3",
    2384. "pointradius": 5,
    2385. "points": false,
    2386. "renderer": "flot",
    2387. "repeat": "jvm_memory_pool_heap",
    2388. "scopedVars": {
    2389. "jvm_memory_pool_heap": {
    2390. "selected": false,
    2391. "text": "PS Eden Space",
    2392. "value": "PS Eden Space"
    2393. }
    2394. },
    2395. "seriesOverrides": [],
    2396. "spaceLength": 10,
    2397. "stack": false,
    2398. "steppedLine": false,
    2399. "targets": [
    2400. {
    2401. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2402. "format": "time_series",
    2403. "hide": false,
    2404. "interval": "",
    2405. "intervalFactor": 2,
    2406. "legendFormat": "used",
    2407. "metric": "",
    2408. "refId": "A",
    2409. "step": 1800
    2410. },
    2411. {
    2412. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2413. "format": "time_series",
    2414. "hide": false,
    2415. "interval": "",
    2416. "intervalFactor": 2,
    2417. "legendFormat": "commited",
    2418. "metric": "",
    2419. "refId": "B",
    2420. "step": 1800
    2421. },
    2422. {
    2423. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2424. "format": "time_series",
    2425. "hide": false,
    2426. "interval": "",
    2427. "intervalFactor": 2,
    2428. "legendFormat": "max",
    2429. "metric": "",
    2430. "refId": "C",
    2431. "step": 1800
    2432. }
    2433. ],
    2434. "thresholds": [],
    2435. "timeFrom": null,
    2436. "timeRegions": [],
    2437. "timeShift": null,
    2438. "title": "$jvm_memory_pool_heap",
    2439. "tooltip": {
    2440. "msResolution": false,
    2441. "shared": true,
    2442. "sort": 0,
    2443. "value_type": "cumulative"
    2444. },
    2445. "type": "graph",
    2446. "x-axis": true,
    2447. "xaxis": {
    2448. "buckets": null,
    2449. "mode": "time",
    2450. "name": null,
    2451. "show": true,
    2452. "values": []
    2453. },
    2454. "y-axis": true,
    2455. "y_formats": [
    2456. "mbytes",
    2457. "short"
    2458. ],
    2459. "yaxes": [
    2460. {
    2461. "format": "bytes",
    2462. "label": null,
    2463. "logBase": 1,
    2464. "max": null,
    2465. "min": 0,
    2466. "show": true
    2467. },
    2468. {
    2469. "format": "short",
    2470. "label": null,
    2471. "logBase": 1,
    2472. "max": null,
    2473. "min": null,
    2474. "show": true
    2475. }
    2476. ],
    2477. "yaxis": {
    2478. "align": false,
    2479. "alignLevel": null
    2480. }
    2481. },
    2482. {
    2483. "aliasColors": {},
    2484. "bars": false,
    2485. "dashLength": 10,
    2486. "dashes": false,
    2487. "datasource": "Prometheus-测试环境",
    2488. "editable": true,
    2489. "error": false,
    2490. "fieldConfig": {
    2491. "defaults": {
    2492. "custom": {},
    2493. "links": []
    2494. },
    2495. "overrides": []
    2496. },
    2497. "fill": 1,
    2498. "fillGradient": 0,
    2499. "grid": {
    2500. "leftLogBase": 1,
    2501. "leftMax": null,
    2502. "leftMin": null,
    2503. "rightLogBase": 1,
    2504. "rightMax": null,
    2505. "rightMin": null
    2506. },
    2507. "gridPos": {
    2508. "h": 7,
    2509. "w": 8,
    2510. "x": 8,
    2511. "y": 5
    2512. },
    2513. "hiddenSeries": false,
    2514. "id": 138,
    2515. "legend": {
    2516. "alignAsTable": false,
    2517. "avg": false,
    2518. "current": true,
    2519. "max": true,
    2520. "min": false,
    2521. "rightSide": false,
    2522. "show": true,
    2523. "total": false,
    2524. "values": true
    2525. },
    2526. "lines": true,
    2527. "linewidth": 1,
    2528. "links": [],
    2529. "maxPerRow": 3,
    2530. "nullPointMode": "null",
    2531. "options": {
    2532. "alertThreshold": true
    2533. },
    2534. "percentage": false,
    2535. "pluginVersion": "7.4.3",
    2536. "pointradius": 5,
    2537. "points": false,
    2538. "renderer": "flot",
    2539. "repeatIteration": 1663750949340,
    2540. "repeatPanelId": 3,
    2541. "scopedVars": {
    2542. "jvm_memory_pool_heap": {
    2543. "selected": false,
    2544. "text": "PS Old Gen",
    2545. "value": "PS Old Gen"
    2546. }
    2547. },
    2548. "seriesOverrides": [],
    2549. "spaceLength": 10,
    2550. "stack": false,
    2551. "steppedLine": false,
    2552. "targets": [
    2553. {
    2554. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2555. "format": "time_series",
    2556. "hide": false,
    2557. "interval": "",
    2558. "intervalFactor": 2,
    2559. "legendFormat": "used",
    2560. "metric": "",
    2561. "refId": "A",
    2562. "step": 1800
    2563. },
    2564. {
    2565. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2566. "format": "time_series",
    2567. "hide": false,
    2568. "interval": "",
    2569. "intervalFactor": 2,
    2570. "legendFormat": "commited",
    2571. "metric": "",
    2572. "refId": "B",
    2573. "step": 1800
    2574. },
    2575. {
    2576. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2577. "format": "time_series",
    2578. "hide": false,
    2579. "interval": "",
    2580. "intervalFactor": 2,
    2581. "legendFormat": "max",
    2582. "metric": "",
    2583. "refId": "C",
    2584. "step": 1800
    2585. }
    2586. ],
    2587. "thresholds": [],
    2588. "timeFrom": null,
    2589. "timeRegions": [],
    2590. "timeShift": null,
    2591. "title": "$jvm_memory_pool_heap",
    2592. "tooltip": {
    2593. "msResolution": false,
    2594. "shared": true,
    2595. "sort": 0,
    2596. "value_type": "cumulative"
    2597. },
    2598. "type": "graph",
    2599. "x-axis": true,
    2600. "xaxis": {
    2601. "buckets": null,
    2602. "mode": "time",
    2603. "name": null,
    2604. "show": true,
    2605. "values": []
    2606. },
    2607. "y-axis": true,
    2608. "y_formats": [
    2609. "mbytes",
    2610. "short"
    2611. ],
    2612. "yaxes": [
    2613. {
    2614. "format": "bytes",
    2615. "label": null,
    2616. "logBase": 1,
    2617. "max": null,
    2618. "min": 0,
    2619. "show": true
    2620. },
    2621. {
    2622. "format": "short",
    2623. "label": null,
    2624. "logBase": 1,
    2625. "max": null,
    2626. "min": null,
    2627. "show": true
    2628. }
    2629. ],
    2630. "yaxis": {
    2631. "align": false,
    2632. "alignLevel": null
    2633. }
    2634. },
    2635. {
    2636. "aliasColors": {},
    2637. "bars": false,
    2638. "dashLength": 10,
    2639. "dashes": false,
    2640. "datasource": "Prometheus-测试环境",
    2641. "editable": true,
    2642. "error": false,
    2643. "fieldConfig": {
    2644. "defaults": {
    2645. "custom": {},
    2646. "links": []
    2647. },
    2648. "overrides": []
    2649. },
    2650. "fill": 1,
    2651. "fillGradient": 0,
    2652. "grid": {
    2653. "leftLogBase": 1,
    2654. "leftMax": null,
    2655. "leftMin": null,
    2656. "rightLogBase": 1,
    2657. "rightMax": null,
    2658. "rightMin": null
    2659. },
    2660. "gridPos": {
    2661. "h": 7,
    2662. "w": 8,
    2663. "x": 16,
    2664. "y": 5
    2665. },
    2666. "hiddenSeries": false,
    2667. "id": 139,
    2668. "legend": {
    2669. "alignAsTable": false,
    2670. "avg": false,
    2671. "current": true,
    2672. "max": true,
    2673. "min": false,
    2674. "rightSide": false,
    2675. "show": true,
    2676. "total": false,
    2677. "values": true
    2678. },
    2679. "lines": true,
    2680. "linewidth": 1,
    2681. "links": [],
    2682. "maxPerRow": 3,
    2683. "nullPointMode": "null",
    2684. "options": {
    2685. "alertThreshold": true
    2686. },
    2687. "percentage": false,
    2688. "pluginVersion": "7.4.3",
    2689. "pointradius": 5,
    2690. "points": false,
    2691. "renderer": "flot",
    2692. "repeatIteration": 1663750949340,
    2693. "repeatPanelId": 3,
    2694. "scopedVars": {
    2695. "jvm_memory_pool_heap": {
    2696. "selected": false,
    2697. "text": "PS Survivor Space",
    2698. "value": "PS Survivor Space"
    2699. }
    2700. },
    2701. "seriesOverrides": [],
    2702. "spaceLength": 10,
    2703. "stack": false,
    2704. "steppedLine": false,
    2705. "targets": [
    2706. {
    2707. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2708. "format": "time_series",
    2709. "hide": false,
    2710. "interval": "",
    2711. "intervalFactor": 2,
    2712. "legendFormat": "used",
    2713. "metric": "",
    2714. "refId": "A",
    2715. "step": 1800
    2716. },
    2717. {
    2718. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2719. "format": "time_series",
    2720. "hide": false,
    2721. "interval": "",
    2722. "intervalFactor": 2,
    2723. "legendFormat": "commited",
    2724. "metric": "",
    2725. "refId": "B",
    2726. "step": 1800
    2727. },
    2728. {
    2729. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_heap\",environment=\"$environment\"}",
    2730. "format": "time_series",
    2731. "hide": false,
    2732. "interval": "",
    2733. "intervalFactor": 2,
    2734. "legendFormat": "max",
    2735. "metric": "",
    2736. "refId": "C",
    2737. "step": 1800
    2738. }
    2739. ],
    2740. "thresholds": [],
    2741. "timeFrom": null,
    2742. "timeRegions": [],
    2743. "timeShift": null,
    2744. "title": "$jvm_memory_pool_heap",
    2745. "tooltip": {
    2746. "msResolution": false,
    2747. "shared": true,
    2748. "sort": 0,
    2749. "value_type": "cumulative"
    2750. },
    2751. "type": "graph",
    2752. "x-axis": true,
    2753. "xaxis": {
    2754. "buckets": null,
    2755. "mode": "time",
    2756. "name": null,
    2757. "show": true,
    2758. "values": []
    2759. },
    2760. "y-axis": true,
    2761. "y_formats": [
    2762. "mbytes",
    2763. "short"
    2764. ],
    2765. "yaxes": [
    2766. {
    2767. "format": "bytes",
    2768. "label": null,
    2769. "logBase": 1,
    2770. "max": null,
    2771. "min": 0,
    2772. "show": true
    2773. },
    2774. {
    2775. "format": "short",
    2776. "label": null,
    2777. "logBase": 1,
    2778. "max": null,
    2779. "min": null,
    2780. "show": true
    2781. }
    2782. ],
    2783. "yaxis": {
    2784. "align": false,
    2785. "alignLevel": null
    2786. }
    2787. }
    2788. ],
    2789. "repeat": "persistence_counts",
    2790. "title": "JVM 堆内存详细",
    2791. "type": "row"
    2792. },
    2793. {
    2794. "collapsed": true,
    2795. "datasource": "Prometheus-测试环境",
    2796. "gridPos": {
    2797. "h": 1,
    2798. "w": 24,
    2799. "x": 0,
    2800. "y": 5
    2801. },
    2802. "id": 130,
    2803. "panels": [
    2804. {
    2805. "aliasColors": {},
    2806. "bars": false,
    2807. "dashLength": 10,
    2808. "dashes": false,
    2809. "datasource": "Prometheus-测试环境",
    2810. "editable": true,
    2811. "error": false,
    2812. "fieldConfig": {
    2813. "defaults": {
    2814. "custom": {},
    2815. "links": []
    2816. },
    2817. "overrides": []
    2818. },
    2819. "fill": 1,
    2820. "fillGradient": 0,
    2821. "grid": {
    2822. "leftLogBase": 1,
    2823. "leftMax": null,
    2824. "leftMin": null,
    2825. "rightLogBase": 1,
    2826. "rightMax": null,
    2827. "rightMin": null
    2828. },
    2829. "gridPos": {
    2830. "h": 7,
    2831. "w": 8,
    2832. "x": 0,
    2833. "y": 6
    2834. },
    2835. "hiddenSeries": false,
    2836. "id": 78,
    2837. "legend": {
    2838. "alignAsTable": false,
    2839. "avg": false,
    2840. "current": true,
    2841. "max": true,
    2842. "min": false,
    2843. "rightSide": false,
    2844. "show": true,
    2845. "total": false,
    2846. "values": true
    2847. },
    2848. "lines": true,
    2849. "linewidth": 1,
    2850. "links": [],
    2851. "maxPerRow": 3,
    2852. "nullPointMode": "null",
    2853. "options": {
    2854. "alertThreshold": true
    2855. },
    2856. "percentage": false,
    2857. "pluginVersion": "7.4.3",
    2858. "pointradius": 5,
    2859. "points": false,
    2860. "renderer": "flot",
    2861. "repeat": "jvm_memory_pool_nonheap",
    2862. "scopedVars": {
    2863. "jvm_memory_pool_nonheap": {
    2864. "selected": false,
    2865. "text": "Metaspace",
    2866. "value": "Metaspace"
    2867. }
    2868. },
    2869. "seriesOverrides": [],
    2870. "spaceLength": 10,
    2871. "stack": false,
    2872. "steppedLine": false,
    2873. "targets": [
    2874. {
    2875. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    2876. "format": "time_series",
    2877. "hide": false,
    2878. "interval": "",
    2879. "intervalFactor": 2,
    2880. "legendFormat": "used",
    2881. "metric": "",
    2882. "refId": "A",
    2883. "step": 1800
    2884. },
    2885. {
    2886. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    2887. "format": "time_series",
    2888. "hide": false,
    2889. "interval": "",
    2890. "intervalFactor": 2,
    2891. "legendFormat": "commited",
    2892. "metric": "",
    2893. "refId": "B",
    2894. "step": 1800
    2895. },
    2896. {
    2897. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    2898. "format": "time_series",
    2899. "hide": false,
    2900. "interval": "",
    2901. "intervalFactor": 2,
    2902. "legendFormat": "max",
    2903. "metric": "",
    2904. "refId": "C",
    2905. "step": 1800
    2906. }
    2907. ],
    2908. "thresholds": [],
    2909. "timeFrom": null,
    2910. "timeRegions": [],
    2911. "timeShift": null,
    2912. "title": "$jvm_memory_pool_nonheap",
    2913. "tooltip": {
    2914. "msResolution": false,
    2915. "shared": true,
    2916. "sort": 0,
    2917. "value_type": "cumulative"
    2918. },
    2919. "type": "graph",
    2920. "x-axis": true,
    2921. "xaxis": {
    2922. "buckets": null,
    2923. "mode": "time",
    2924. "name": null,
    2925. "show": true,
    2926. "values": []
    2927. },
    2928. "y-axis": true,
    2929. "y_formats": [
    2930. "mbytes",
    2931. "short"
    2932. ],
    2933. "yaxes": [
    2934. {
    2935. "format": "bytes",
    2936. "label": null,
    2937. "logBase": 1,
    2938. "max": null,
    2939. "min": 0,
    2940. "show": true
    2941. },
    2942. {
    2943. "format": "short",
    2944. "label": null,
    2945. "logBase": 1,
    2946. "max": null,
    2947. "min": null,
    2948. "show": true
    2949. }
    2950. ],
    2951. "yaxis": {
    2952. "align": false,
    2953. "alignLevel": null
    2954. }
    2955. },
    2956. {
    2957. "aliasColors": {},
    2958. "bars": false,
    2959. "dashLength": 10,
    2960. "dashes": false,
    2961. "datasource": "Prometheus-测试环境",
    2962. "editable": true,
    2963. "error": false,
    2964. "fieldConfig": {
    2965. "defaults": {
    2966. "custom": {},
    2967. "links": []
    2968. },
    2969. "overrides": []
    2970. },
    2971. "fill": 1,
    2972. "fillGradient": 0,
    2973. "grid": {
    2974. "leftLogBase": 1,
    2975. "leftMax": null,
    2976. "leftMin": null,
    2977. "rightLogBase": 1,
    2978. "rightMax": null,
    2979. "rightMin": null
    2980. },
    2981. "gridPos": {
    2982. "h": 7,
    2983. "w": 8,
    2984. "x": 8,
    2985. "y": 6
    2986. },
    2987. "hiddenSeries": false,
    2988. "id": 136,
    2989. "legend": {
    2990. "alignAsTable": false,
    2991. "avg": false,
    2992. "current": true,
    2993. "max": true,
    2994. "min": false,
    2995. "rightSide": false,
    2996. "show": true,
    2997. "total": false,
    2998. "values": true
    2999. },
    3000. "lines": true,
    3001. "linewidth": 1,
    3002. "links": [],
    3003. "maxPerRow": 3,
    3004. "nullPointMode": "null",
    3005. "options": {
    3006. "alertThreshold": true
    3007. },
    3008. "percentage": false,
    3009. "pluginVersion": "7.4.3",
    3010. "pointradius": 5,
    3011. "points": false,
    3012. "renderer": "flot",
    3013. "repeatIteration": 1663750949340,
    3014. "repeatPanelId": 78,
    3015. "scopedVars": {
    3016. "jvm_memory_pool_nonheap": {
    3017. "selected": false,
    3018. "text": "Compressed Class Space",
    3019. "value": "Compressed Class Space"
    3020. }
    3021. },
    3022. "seriesOverrides": [],
    3023. "spaceLength": 10,
    3024. "stack": false,
    3025. "steppedLine": false,
    3026. "targets": [
    3027. {
    3028. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3029. "format": "time_series",
    3030. "hide": false,
    3031. "interval": "",
    3032. "intervalFactor": 2,
    3033. "legendFormat": "used",
    3034. "metric": "",
    3035. "refId": "A",
    3036. "step": 1800
    3037. },
    3038. {
    3039. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3040. "format": "time_series",
    3041. "hide": false,
    3042. "interval": "",
    3043. "intervalFactor": 2,
    3044. "legendFormat": "commited",
    3045. "metric": "",
    3046. "refId": "B",
    3047. "step": 1800
    3048. },
    3049. {
    3050. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3051. "format": "time_series",
    3052. "hide": false,
    3053. "interval": "",
    3054. "intervalFactor": 2,
    3055. "legendFormat": "max",
    3056. "metric": "",
    3057. "refId": "C",
    3058. "step": 1800
    3059. }
    3060. ],
    3061. "thresholds": [],
    3062. "timeFrom": null,
    3063. "timeRegions": [],
    3064. "timeShift": null,
    3065. "title": "$jvm_memory_pool_nonheap",
    3066. "tooltip": {
    3067. "msResolution": false,
    3068. "shared": true,
    3069. "sort": 0,
    3070. "value_type": "cumulative"
    3071. },
    3072. "type": "graph",
    3073. "x-axis": true,
    3074. "xaxis": {
    3075. "buckets": null,
    3076. "mode": "time",
    3077. "name": null,
    3078. "show": true,
    3079. "values": []
    3080. },
    3081. "y-axis": true,
    3082. "y_formats": [
    3083. "mbytes",
    3084. "short"
    3085. ],
    3086. "yaxes": [
    3087. {
    3088. "format": "bytes",
    3089. "label": null,
    3090. "logBase": 1,
    3091. "max": null,
    3092. "min": 0,
    3093. "show": true
    3094. },
    3095. {
    3096. "format": "short",
    3097. "label": null,
    3098. "logBase": 1,
    3099. "max": null,
    3100. "min": null,
    3101. "show": true
    3102. }
    3103. ],
    3104. "yaxis": {
    3105. "align": false,
    3106. "alignLevel": null
    3107. }
    3108. },
    3109. {
    3110. "aliasColors": {},
    3111. "bars": false,
    3112. "dashLength": 10,
    3113. "dashes": false,
    3114. "datasource": "Prometheus-测试环境",
    3115. "editable": true,
    3116. "error": false,
    3117. "fieldConfig": {
    3118. "defaults": {
    3119. "custom": {},
    3120. "links": []
    3121. },
    3122. "overrides": []
    3123. },
    3124. "fill": 1,
    3125. "fillGradient": 0,
    3126. "grid": {
    3127. "leftLogBase": 1,
    3128. "leftMax": null,
    3129. "leftMin": null,
    3130. "rightLogBase": 1,
    3131. "rightMax": null,
    3132. "rightMin": null
    3133. },
    3134. "gridPos": {
    3135. "h": 7,
    3136. "w": 8,
    3137. "x": 16,
    3138. "y": 6
    3139. },
    3140. "hiddenSeries": false,
    3141. "id": 137,
    3142. "legend": {
    3143. "alignAsTable": false,
    3144. "avg": false,
    3145. "current": true,
    3146. "max": true,
    3147. "min": false,
    3148. "rightSide": false,
    3149. "show": true,
    3150. "total": false,
    3151. "values": true
    3152. },
    3153. "lines": true,
    3154. "linewidth": 1,
    3155. "links": [],
    3156. "maxPerRow": 3,
    3157. "nullPointMode": "null",
    3158. "options": {
    3159. "alertThreshold": true
    3160. },
    3161. "percentage": false,
    3162. "pluginVersion": "7.4.3",
    3163. "pointradius": 5,
    3164. "points": false,
    3165. "renderer": "flot",
    3166. "repeatIteration": 1663750949340,
    3167. "repeatPanelId": 78,
    3168. "scopedVars": {
    3169. "jvm_memory_pool_nonheap": {
    3170. "selected": false,
    3171. "text": "Code Cache",
    3172. "value": "Code Cache"
    3173. }
    3174. },
    3175. "seriesOverrides": [],
    3176. "spaceLength": 10,
    3177. "stack": false,
    3178. "steppedLine": false,
    3179. "targets": [
    3180. {
    3181. "expr": "jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3182. "format": "time_series",
    3183. "hide": false,
    3184. "interval": "",
    3185. "intervalFactor": 2,
    3186. "legendFormat": "used",
    3187. "metric": "",
    3188. "refId": "A",
    3189. "step": 1800
    3190. },
    3191. {
    3192. "expr": "jvm_memory_committed_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3193. "format": "time_series",
    3194. "hide": false,
    3195. "interval": "",
    3196. "intervalFactor": 2,
    3197. "legendFormat": "commited",
    3198. "metric": "",
    3199. "refId": "B",
    3200. "step": 1800
    3201. },
    3202. {
    3203. "expr": "jvm_memory_max_bytes{application=\"$application\", instance=\"$instance\", id=~\"$jvm_memory_pool_nonheap\",environment=\"$environment\"}",
    3204. "format": "time_series",
    3205. "hide": false,
    3206. "interval": "",
    3207. "intervalFactor": 2,
    3208. "legendFormat": "max",
    3209. "metric": "",
    3210. "refId": "C",
    3211. "step": 1800
    3212. }
    3213. ],
    3214. "thresholds": [],
    3215. "timeFrom": null,
    3216. "timeRegions": [],
    3217. "timeShift": null,
    3218. "title": "$jvm_memory_pool_nonheap",
    3219. "tooltip": {
    3220. "msResolution": false,
    3221. "shared": true,
    3222. "sort": 0,
    3223. "value_type": "cumulative"
    3224. },
    3225. "type": "graph",
    3226. "x-axis": true,
    3227. "xaxis": {
    3228. "buckets": null,
    3229. "mode": "time",
    3230. "name": null,
    3231. "show": true,
    3232. "values": []
    3233. },
    3234. "y-axis": true,
    3235. "y_formats": [
    3236. "mbytes",
    3237. "short"
    3238. ],
    3239. "yaxes": [
    3240. {
    3241. "format": "bytes",
    3242. "label": null,
    3243. "logBase": 1,
    3244. "max": null,
    3245. "min": 0,
    3246. "show": true
    3247. },
    3248. {
    3249. "format": "short",
    3250. "label": null,
    3251. "logBase": 1,
    3252. "max": null,
    3253. "min": null,
    3254. "show": true
    3255. }
    3256. ],
    3257. "yaxis": {
    3258. "align": false,
    3259. "alignLevel": null
    3260. }
    3261. }
    3262. ],
    3263. "repeat": null,
    3264. "title": "JVM 非堆内存详细",
    3265. "type": "row"
    3266. },
    3267. {
    3268. "collapsed": true,
    3269. "datasource": "Prometheus-测试环境",
    3270. "gridPos": {
    3271. "h": 1,
    3272. "w": 24,
    3273. "x": 0,
    3274. "y": 6
    3275. },
    3276. "id": 131,
    3277. "panels": [
    3278. {
    3279. "aliasColors": {},
    3280. "bars": false,
    3281. "dashLength": 10,
    3282. "dashes": false,
    3283. "datasource": "Prometheus-测试环境",
    3284. "fieldConfig": {
    3285. "defaults": {
    3286. "custom": {},
    3287. "links": []
    3288. },
    3289. "overrides": []
    3290. },
    3291. "fill": 1,
    3292. "fillGradient": 0,
    3293. "gridPos": {
    3294. "h": 7,
    3295. "w": 8,
    3296. "x": 0,
    3297. "y": 7
    3298. },
    3299. "hiddenSeries": false,
    3300. "id": 98,
    3301. "legend": {
    3302. "avg": false,
    3303. "current": false,
    3304. "max": false,
    3305. "min": false,
    3306. "show": true,
    3307. "total": false,
    3308. "values": false
    3309. },
    3310. "lines": true,
    3311. "linewidth": 1,
    3312. "links": [],
    3313. "nullPointMode": "null",
    3314. "options": {
    3315. "alertThreshold": true
    3316. },
    3317. "percentage": false,
    3318. "pluginVersion": "7.4.3",
    3319. "pointradius": 5,
    3320. "points": false,
    3321. "renderer": "flot",
    3322. "seriesOverrides": [],
    3323. "spaceLength": 10,
    3324. "stack": false,
    3325. "steppedLine": false,
    3326. "targets": [
    3327. {
    3328. "expr": "rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1m])",
    3329. "format": "time_series",
    3330. "hide": false,
    3331. "interval": "",
    3332. "intervalFactor": 1,
    3333. "legendFormat": "{{action}} ({{cause}})",
    3334. "refId": "A"
    3335. }
    3336. ],
    3337. "thresholds": [],
    3338. "timeFrom": null,
    3339. "timeRegions": [],
    3340. "timeShift": null,
    3341. "title": "GC 次数",
    3342. "tooltip": {
    3343. "shared": true,
    3344. "sort": 0,
    3345. "value_type": "individual"
    3346. },
    3347. "type": "graph",
    3348. "xaxis": {
    3349. "buckets": null,
    3350. "mode": "time",
    3351. "name": null,
    3352. "show": true,
    3353. "values": []
    3354. },
    3355. "yaxes": [
    3356. {
    3357. "format": "ops",
    3358. "label": null,
    3359. "logBase": 1,
    3360. "max": null,
    3361. "min": "0",
    3362. "show": true
    3363. },
    3364. {
    3365. "format": "short",
    3366. "label": "",
    3367. "logBase": 1,
    3368. "max": null,
    3369. "min": null,
    3370. "show": true
    3371. }
    3372. ],
    3373. "yaxis": {
    3374. "align": false,
    3375. "alignLevel": null
    3376. }
    3377. },
    3378. {
    3379. "aliasColors": {},
    3380. "bars": false,
    3381. "dashLength": 10,
    3382. "dashes": false,
    3383. "datasource": "Prometheus-测试环境",
    3384. "fieldConfig": {
    3385. "defaults": {
    3386. "custom": {},
    3387. "links": []
    3388. },
    3389. "overrides": []
    3390. },
    3391. "fill": 1,
    3392. "fillGradient": 0,
    3393. "gridPos": {
    3394. "h": 7,
    3395. "w": 8,
    3396. "x": 8,
    3397. "y": 7
    3398. },
    3399. "hiddenSeries": false,
    3400. "id": 101,
    3401. "legend": {
    3402. "avg": false,
    3403. "current": false,
    3404. "max": false,
    3405. "min": false,
    3406. "show": true,
    3407. "total": false,
    3408. "values": false
    3409. },
    3410. "lines": true,
    3411. "linewidth": 1,
    3412. "links": [],
    3413. "nullPointMode": "null",
    3414. "options": {
    3415. "alertThreshold": true
    3416. },
    3417. "percentage": false,
    3418. "pluginVersion": "7.4.3",
    3419. "pointradius": 5,
    3420. "points": false,
    3421. "renderer": "flot",
    3422. "seriesOverrides": [],
    3423. "spaceLength": 10,
    3424. "stack": false,
    3425. "steppedLine": false,
    3426. "targets": [
    3427. {
    3428. "expr": "rate(jvm_gc_pause_seconds_sum{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1m])/rate(jvm_gc_pause_seconds_count{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1m])",
    3429. "format": "time_series",
    3430. "hide": false,
    3431. "instant": false,
    3432. "interval": "",
    3433. "intervalFactor": 1,
    3434. "legendFormat": "avg {{action}} ({{cause}})",
    3435. "refId": "A"
    3436. },
    3437. {
    3438. "expr": "jvm_gc_pause_seconds_max{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    3439. "format": "time_series",
    3440. "hide": false,
    3441. "instant": false,
    3442. "interval": "",
    3443. "intervalFactor": 1,
    3444. "legendFormat": "max {{action}} ({{cause}})",
    3445. "refId": "B"
    3446. }
    3447. ],
    3448. "thresholds": [],
    3449. "timeFrom": null,
    3450. "timeRegions": [],
    3451. "timeShift": null,
    3452. "title": "GC暂停时间",
    3453. "tooltip": {
    3454. "shared": true,
    3455. "sort": 0,
    3456. "value_type": "individual"
    3457. },
    3458. "type": "graph",
    3459. "xaxis": {
    3460. "buckets": null,
    3461. "mode": "time",
    3462. "name": null,
    3463. "show": true,
    3464. "values": []
    3465. },
    3466. "yaxes": [
    3467. {
    3468. "format": "s",
    3469. "label": null,
    3470. "logBase": 1,
    3471. "max": null,
    3472. "min": "0",
    3473. "show": true
    3474. },
    3475. {
    3476. "format": "short",
    3477. "label": "",
    3478. "logBase": 1,
    3479. "max": null,
    3480. "min": null,
    3481. "show": true
    3482. }
    3483. ],
    3484. "yaxis": {
    3485. "align": false,
    3486. "alignLevel": null
    3487. }
    3488. },
    3489. {
    3490. "aliasColors": {},
    3491. "bars": false,
    3492. "dashLength": 10,
    3493. "dashes": false,
    3494. "datasource": "Prometheus-测试环境",
    3495. "description": "内存分配的大小, 以及从新生代晋升到老年代的内存大小",
    3496. "fieldConfig": {
    3497. "defaults": {
    3498. "custom": {},
    3499. "links": []
    3500. },
    3501. "overrides": []
    3502. },
    3503. "fill": 1,
    3504. "fillGradient": 0,
    3505. "gridPos": {
    3506. "h": 7,
    3507. "w": 8,
    3508. "x": 16,
    3509. "y": 7
    3510. },
    3511. "hiddenSeries": false,
    3512. "id": 99,
    3513. "legend": {
    3514. "avg": false,
    3515. "current": false,
    3516. "max": false,
    3517. "min": false,
    3518. "show": true,
    3519. "total": false,
    3520. "values": false
    3521. },
    3522. "lines": true,
    3523. "linewidth": 1,
    3524. "links": [],
    3525. "nullPointMode": "null",
    3526. "options": {
    3527. "alertThreshold": true
    3528. },
    3529. "percentage": false,
    3530. "pluginVersion": "7.4.3",
    3531. "pointradius": 5,
    3532. "points": false,
    3533. "renderer": "flot",
    3534. "seriesOverrides": [],
    3535. "spaceLength": 10,
    3536. "stack": false,
    3537. "steppedLine": false,
    3538. "targets": [
    3539. {
    3540. "expr": "rate(jvm_gc_memory_allocated_bytes_total{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1m])",
    3541. "format": "time_series",
    3542. "interval": "",
    3543. "intervalFactor": 1,
    3544. "legendFormat": "allocated",
    3545. "refId": "A"
    3546. },
    3547. {
    3548. "expr": "rate(jvm_gc_memory_promoted_bytes_total{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}[1m])",
    3549. "format": "time_series",
    3550. "interval": "",
    3551. "intervalFactor": 1,
    3552. "legendFormat": "promoted",
    3553. "refId": "B"
    3554. }
    3555. ],
    3556. "thresholds": [],
    3557. "timeFrom": null,
    3558. "timeRegions": [],
    3559. "timeShift": null,
    3560. "title": "内存分配/晋升",
    3561. "tooltip": {
    3562. "shared": true,
    3563. "sort": 0,
    3564. "value_type": "individual"
    3565. },
    3566. "type": "graph",
    3567. "xaxis": {
    3568. "buckets": null,
    3569. "mode": "time",
    3570. "name": null,
    3571. "show": true,
    3572. "values": []
    3573. },
    3574. "yaxes": [
    3575. {
    3576. "format": "Bps",
    3577. "label": null,
    3578. "logBase": 1,
    3579. "max": null,
    3580. "min": "0",
    3581. "show": true
    3582. },
    3583. {
    3584. "format": "short",
    3585. "label": null,
    3586. "logBase": 1,
    3587. "max": null,
    3588. "min": null,
    3589. "show": true
    3590. }
    3591. ],
    3592. "yaxis": {
    3593. "align": false,
    3594. "alignLevel": null
    3595. }
    3596. }
    3597. ],
    3598. "repeat": null,
    3599. "title": "垃圾回收(GC)",
    3600. "type": "row"
    3601. },
    3602. {
    3603. "collapsed": true,
    3604. "datasource": "Prometheus-测试环境",
    3605. "gridPos": {
    3606. "h": 1,
    3607. "w": 24,
    3608. "x": 0,
    3609. "y": 7
    3610. },
    3611. "id": 132,
    3612. "panels": [
    3613. {
    3614. "aliasColors": {},
    3615. "bars": false,
    3616. "dashLength": 10,
    3617. "dashes": false,
    3618. "datasource": "Prometheus-测试环境",
    3619. "editable": true,
    3620. "error": false,
    3621. "fieldConfig": {
    3622. "defaults": {
    3623. "custom": {},
    3624. "links": []
    3625. },
    3626. "overrides": []
    3627. },
    3628. "fill": 1,
    3629. "fillGradient": 0,
    3630. "grid": {
    3631. "leftLogBase": 1,
    3632. "leftMax": null,
    3633. "leftMin": null,
    3634. "rightLogBase": 1,
    3635. "rightMax": null,
    3636. "rightMin": null
    3637. },
    3638. "gridPos": {
    3639. "h": 7,
    3640. "w": 12,
    3641. "x": 0,
    3642. "y": 8
    3643. },
    3644. "hiddenSeries": false,
    3645. "id": 37,
    3646. "legend": {
    3647. "avg": false,
    3648. "current": false,
    3649. "max": false,
    3650. "min": false,
    3651. "show": true,
    3652. "total": false,
    3653. "values": false
    3654. },
    3655. "lines": true,
    3656. "linewidth": 1,
    3657. "links": [],
    3658. "nullPointMode": "null",
    3659. "options": {
    3660. "alertThreshold": true
    3661. },
    3662. "percentage": false,
    3663. "pluginVersion": "7.4.3",
    3664. "pointradius": 5,
    3665. "points": false,
    3666. "renderer": "flot",
    3667. "seriesOverrides": [],
    3668. "spaceLength": 10,
    3669. "stack": false,
    3670. "steppedLine": false,
    3671. "targets": [
    3672. {
    3673. "expr": "jvm_classes_loaded_classes{application=\"$application\", instance=\"$instance\",environment=\"$environment\"}",
    3674. "format": "time_series",
    3675. "interval": "",
    3676. "intervalFactor": 2,
    3677. "legendFormat": "loaded",
    3678. "metric": "",
    3679. "refId": "A",
    3680. "step": 1200
    3681. }
    3682. ],
    3683. "thresholds": [],
    3684. "timeFrom": null,
    3685. "timeRegions": [],
    3686. "timeShift": null,
    3687. "title": "已加载的类的数量",
    3688. "tooltip": {
    3689. "msResolution": false,
    3690. "shared": true,
    3691. "sort": 0,
    3692. "value_type": "cumulative"
    3693. },
    3694. "type": "graph",
    3695. "x-axis": true,
    3696. "xaxis": {
    3697. "buckets": null,
    3698. "mode": "time",
    3699. "name": null,
    3700. "show": true,
    3701. "values": []
    3702. },
    3703. "y-axis": true,
    3704. "y_formats": [
    3705. "short",
    3706. "short"
    3707. ],
    3708. "yaxes": [
    3709. {
    3710. "format": "short",
    3711. "label": null,
    3712. "logBase": 1,
    3713. "max": null,
    3714. "min": 0,
    3715. "show": true
    3716. },
    3717. {
    3718. "format": "short",
    3719. "label": null,
    3720. "logBase": 1,
    3721. "max": null,
    3722. "min": null,
    3723. "show": true
    3724. }
    3725. ],
    3726. "yaxis": {
    3727. "align": false,
    3728. "alignLevel": null
    3729. }
    3730. },
    3731. {
    3732. "aliasColors": {},
    3733. "bars": false,
    3734. "dashLength": 10,
    3735. "dashes": false,
    3736. "datasource": "Prometheus-测试环境",
    3737. "description": "可能增加或减少, 在Java中使用一些脚本语言例如groovy时, 需要关注, 防止因为逻辑异常产生大量的类, 进而导致metaspace满, 而metaspace满会触发full gc, 如无法释放则会导致JVM hang住",
    3738. "editable": true,
    3739. "error": false,
    3740. "fieldConfig": {
    3741. "defaults": {
    3742. "custom": {},
    3743. "links": []
    3744. },
    3745. "overrides": []
    3746. },
    3747. "fill": 1,
    3748. "fillGradient": 0,
    3749. "grid": {
    3750. "leftLogBase": 1,
    3751. "leftMax": null,
    3752. "leftMin": null,
    3753. "rightLogBase": 1,
    3754. "rightMax": null,
    3755. "rightMin": null
    3756. },
    3757. "gridPos": {
    3758. "h": 7,
    3759. "w": 12,
    3760. "x": 12,
    3761. "y": 8
    3762. },
    3763. "hiddenSeries": false,
    3764. "id": 38,
    3765. "legend": {
    3766. "avg": false,
    3767. "current": false,
    3768. "max": false,
    3769. "min": false,
    3770. "show": true,
    3771. "total": false,
    3772. "values": false
    3773. },
    3774. "lines": true,
    3775. "linewidth": 1,
    3776. "links": [],
    3777. "nullPointMode": "null",
    3778. "options": {
    3779. "alertThreshold": true
    3780. },
    3781. "percentage": false,
    3782. "pluginVersion": "7.4.3",
    3783. "pointradius": 5,
    3784. "points": false,
    3785. "renderer": "flot",
    3786. "seriesOverrides": [],
    3787. "spaceLength": 10,
    3788. "stack": false,
    3789. "steppedLine": false,
    3790. "targets": [
    3791. {
    3792. "expr": "delta(jvm_classes_loaded_classes{application=\"$application\",instance=\"$instance\",environment=\"$environment\"}[1m])",
    3793. "format": "time_series",
    3794. "hide": false,
    3795. "interval": "",
    3796. "intervalFactor": 1,
    3797. "legendFormat": "delta-1m",
    3798. "metric": "",
    3799. "refId": "A",
    3800. "step": 1200
    3801. }
    3802. ],
    3803. "thresholds": [],
    3804. "timeFrom": null,
    3805. "timeRegions": [],
    3806. "timeShift": null,
    3807. "title": "加载类数量变化",
    3808. "tooltip": {
    3809. "msResolution": false,
    3810. "shared": true,
    3811. "sort": 0,
    3812. "value_type": "cumulative"
    3813. },
    3814. "type": "graph",
    3815. "x-axis": true,
    3816. "xaxis": {
    3817. "buckets": null,
    3818. "mode": "time",
    3819. "name": null,
    3820. "show": true,
    3821. "values": []
    3822. },
    3823. "y-axis": true,
    3824. "y_formats": [
    3825. "ops",
    3826. "short"
    3827. ],
    3828. "yaxes": [
    3829. {
    3830. "decimals": null,
    3831. "format": "short",
    3832. "label": "",
    3833. "logBase": 1,
    3834. "max": null,
    3835. "min": null,
    3836. "show": true
    3837. },
    3838. {
    3839. "format": "short",
    3840. "label": null,
    3841. "logBase": 1,
    3842. "max": null,
    3843. "min": null,
    3844. "show": true
    3845. }
    3846. ],
    3847. "yaxis": {
    3848. "align": false,
    3849. "alignLevel": null
    3850. }
    3851. }
    3852. ],
    3853. "repeat": null,
    3854. "title": "类加载",
    3855. "type": "row"
    3856. },
    3857. {
    3858. "collapsed": true,
    3859. "datasource": "Prometheus-测试环境",
    3860. "gridPos": {
    3861. "h": 1,
    3862. "w": 24,
    3863. "x": 0,
    3864. "y": 8
    3865. },
    3866. "id": 133,
    3867. "panels": [
    3868. {
    3869. "aliasColors": {},
    3870. "bars": false,
    3871. "dashLength": 10,
    3872. "dashes": false,
    3873. "datasource": "Prometheus-测试环境",
    3874. "editable": true,
    3875. "error": false,
    3876. "fieldConfig": {
    3877. "defaults": {
    3878. "custom": {},
    3879. "links": []
    3880. },
    3881. "overrides": []
    3882. },
    3883. "fill": 1,
    3884. "fillGradient": 0,
    3885. "grid": {
    3886. "leftLogBase": 1,
    3887. "leftMax": null,
    3888. "leftMin": null,
    3889. "rightLogBase": 1,
    3890. "rightMax": null,
    3891. "rightMin": null
    3892. },
    3893. "gridPos": {
    3894. "h": 7,
    3895. "w": 6,
    3896. "x": 0,
    3897. "y": 9
    3898. },
    3899. "hiddenSeries": false,
    3900. "id": 33,
    3901. "legend": {
    3902. "avg": false,
    3903. "current": false,
    3904. "max": false,
    3905. "min": false,
    3906. "show": true,
    3907. "total": false,
    3908. "values": false
    3909. },
    3910. "lines": true,
    3911. "linewidth": 1,
    3912. "links": [],
    3913. "nullPointMode": "null",
    3914. "options": {
    3915. "alertThreshold": true
    3916. },
    3917. "percentage": false,
    3918. "pluginVersion": "7.4.3",
    3919. "pointradius": 5,
    3920. "points": false,
    3921. "renderer": "flot",
    3922. "seriesOverrides": [],
    3923. "spaceLength": 10,
    3924. "stack": false,
    3925. "steppedLine": false,
    3926. "targets": [
    3927. {
    3928. "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\",environment=\"$environment\"}",
    3929. "format": "time_series",
    3930. "interval": "",
    3931. "intervalFactor": 2,
    3932. "legendFormat": "used",
    3933. "metric": "",
    3934. "refId": "A",
    3935. "step": 2400
    3936. },
    3937. {
    3938. "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"direct\",environment=\"$environment\"}",
    3939. "format": "time_series",
    3940. "interval": "",
    3941. "intervalFactor": 2,
    3942. "legendFormat": "capacity",
    3943. "metric": "",
    3944. "refId": "B",
    3945. "step": 2400
    3946. }
    3947. ],
    3948. "thresholds": [],
    3949. "timeFrom": null,
    3950. "timeRegions": [],
    3951. "timeShift": null,
    3952. "title": "Direct Buffers",
    3953. "tooltip": {
    3954. "msResolution": false,
    3955. "shared": true,
    3956. "sort": 0,
    3957. "value_type": "cumulative"
    3958. },
    3959. "type": "graph",
    3960. "x-axis": true,
    3961. "xaxis": {
    3962. "buckets": null,
    3963. "mode": "time",
    3964. "name": null,
    3965. "show": true,
    3966. "values": []
    3967. },
    3968. "y-axis": true,
    3969. "y_formats": [
    3970. "short",
    3971. "short"
    3972. ],
    3973. "yaxes": [
    3974. {
    3975. "format": "bytes",
    3976. "label": null,
    3977. "logBase": 1,
    3978. "max": null,
    3979. "min": 0,
    3980. "show": true
    3981. },
    3982. {
    3983. "format": "short",
    3984. "label": null,
    3985. "logBase": 1,
    3986. "max": null,
    3987. "min": null,
    3988. "show": true
    3989. }
    3990. ],
    3991. "yaxis": {
    3992. "align": false,
    3993. "alignLevel": null
    3994. }
    3995. },
    3996. {
    3997. "aliasColors": {},
    3998. "bars": false,
    3999. "dashLength": 10,
    4000. "dashes": false,
    4001. "datasource": "Prometheus-测试环境",
    4002. "editable": true,
    4003. "error": false,
    4004. "fieldConfig": {
    4005. "defaults": {
    4006. "custom": {},
    4007. "links": []
    4008. },
    4009. "overrides": []
    4010. },
    4011. "fill": 1,
    4012. "fillGradient": 0,
    4013. "grid": {
    4014. "leftLogBase": 1,
    4015. "leftMax": null,
    4016. "leftMin": null,
    4017. "rightLogBase": 1,
    4018. "rightMax": null,
    4019. "rightMin": null
    4020. },
    4021. "gridPos": {
    4022. "h": 7,
    4023. "w": 6,
    4024. "x": 6,
    4025. "y": 9
    4026. },
    4027. "hiddenSeries": false,
    4028. "id": 83,
    4029. "legend": {
    4030. "avg": false,
    4031. "current": false,
    4032. "max": false,
    4033. "min": false,
    4034. "show": true,
    4035. "total": false,
    4036. "values": false
    4037. },
    4038. "lines": true,
    4039. "linewidth": 1,
    4040. "links": [],
    4041. "nullPointMode": "null",
    4042. "options": {
    4043. "alertThreshold": true
    4044. },
    4045. "percentage": false,
    4046. "pluginVersion": "7.4.3",
    4047. "pointradius": 5,
    4048. "points": false,
    4049. "renderer": "flot",
    4050. "seriesOverrides": [],
    4051. "spaceLength": 10,
    4052. "stack": false,
    4053. "steppedLine": false,
    4054. "targets": [
    4055. {
    4056. "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"direct\",environment=\"$environment\"}",
    4057. "format": "time_series",
    4058. "interval": "",
    4059. "intervalFactor": 2,
    4060. "legendFormat": "count",
    4061. "metric": "",
    4062. "refId": "A",
    4063. "step": 2400
    4064. }
    4065. ],
    4066. "thresholds": [],
    4067. "timeFrom": null,
    4068. "timeRegions": [],
    4069. "timeShift": null,
    4070. "title": "Count Buffers",
    4071. "tooltip": {
    4072. "msResolution": false,
    4073. "shared": true,
    4074. "sort": 0,
    4075. "value_type": "cumulative"
    4076. },
    4077. "type": "graph",
    4078. "x-axis": true,
    4079. "xaxis": {
    4080. "buckets": null,
    4081. "mode": "time",
    4082. "name": null,
    4083. "show": true,
    4084. "values": []
    4085. },
    4086. "y-axis": true,
    4087. "y_formats": [
    4088. "short",
    4089. "short"
    4090. ],
    4091. "yaxes": [
    4092. {
    4093. "$$hashKey": "object:165",
    4094. "decimals": 0,
    4095. "format": "short",
    4096. "label": null,
    4097. "logBase": 1,
    4098. "max": null,
    4099. "min": 0,
    4100. "show": true
    4101. },
    4102. {
    4103. "$$hashKey": "object:166",
    4104. "format": "short",
    4105. "label": null,
    4106. "logBase": 1,
    4107. "max": null,
    4108. "min": null,
    4109. "show": true
    4110. }
    4111. ],
    4112. "yaxis": {
    4113. "align": false,
    4114. "alignLevel": null
    4115. }
    4116. },
    4117. {
    4118. "aliasColors": {},
    4119. "bars": false,
    4120. "dashLength": 10,
    4121. "dashes": false,
    4122. "datasource": "Prometheus-测试环境",
    4123. "editable": true,
    4124. "error": false,
    4125. "fieldConfig": {
    4126. "defaults": {
    4127. "custom": {},
    4128. "links": []
    4129. },
    4130. "overrides": []
    4131. },
    4132. "fill": 1,
    4133. "fillGradient": 0,
    4134. "grid": {
    4135. "leftLogBase": 1,
    4136. "leftMax": null,
    4137. "leftMin": null,
    4138. "rightLogBase": 1,
    4139. "rightMax": null,
    4140. "rightMin": null
    4141. },
    4142. "gridPos": {
    4143. "h": 7,
    4144. "w": 6,
    4145. "x": 12,
    4146. "y": 9
    4147. },
    4148. "hiddenSeries": false,
    4149. "id": 85,
    4150. "legend": {
    4151. "avg": false,
    4152. "current": false,
    4153. "max": false,
    4154. "min": false,
    4155. "show": true,
    4156. "total": false,
    4157. "values": false
    4158. },
    4159. "lines": true,
    4160. "linewidth": 1,
    4161. "links": [],
    4162. "nullPointMode": "null",
    4163. "options": {
    4164. "alertThreshold": true
    4165. },
    4166. "percentage": false,
    4167. "pluginVersion": "7.4.3",
    4168. "pointradius": 5,
    4169. "points": false,
    4170. "renderer": "flot",
    4171. "seriesOverrides": [],
    4172. "spaceLength": 10,
    4173. "stack": false,
    4174. "steppedLine": false,
    4175. "targets": [
    4176. {
    4177. "expr": "jvm_buffer_memory_used_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\",environment=\"$environment\"}",
    4178. "format": "time_series",
    4179. "interval": "",
    4180. "intervalFactor": 2,
    4181. "legendFormat": "used",
    4182. "metric": "",
    4183. "refId": "A",
    4184. "step": 2400
    4185. },
    4186. {
    4187. "expr": "jvm_buffer_total_capacity_bytes{application=\"$application\", instance=\"$instance\", id=\"mapped\",environment=\"$environment\"}",
    4188. "format": "time_series",
    4189. "interval": "",
    4190. "intervalFactor": 2,
    4191. "legendFormat": "capacity",
    4192. "metric": "",
    4193. "refId": "B",
    4194. "step": 2400
    4195. }
    4196. ],
    4197. "thresholds": [],
    4198. "timeFrom": null,
    4199. "timeRegions": [],
    4200. "timeShift": null,
    4201. "title": "Mapped Buffers",
    4202. "tooltip": {
    4203. "msResolution": false,
    4204. "shared": true,
    4205. "sort": 0,
    4206. "value_type": "cumulative"
    4207. },
    4208. "type": "graph",
    4209. "x-axis": true,
    4210. "xaxis": {
    4211. "buckets": null,
    4212. "mode": "time",
    4213. "name": null,
    4214. "show": true,
    4215. "values": []
    4216. },
    4217. "y-axis": true,
    4218. "y_formats": [
    4219. "short",
    4220. "short"
    4221. ],
    4222. "yaxes": [
    4223. {
    4224. "format": "bytes",
    4225. "label": null,
    4226. "logBase": 1,
    4227. "max": null,
    4228. "min": 0,
    4229. "show": true
    4230. },
    4231. {
    4232. "format": "short",
    4233. "label": null,
    4234. "logBase": 1,
    4235. "max": null,
    4236. "min": null,
    4237. "show": true
    4238. }
    4239. ],
    4240. "yaxis": {
    4241. "align": false,
    4242. "alignLevel": null
    4243. }
    4244. },
    4245. {
    4246. "aliasColors": {},
    4247. "bars": false,
    4248. "dashLength": 10,
    4249. "dashes": false,
    4250. "datasource": "Prometheus-测试环境",
    4251. "editable": true,
    4252. "error": false,
    4253. "fieldConfig": {
    4254. "defaults": {
    4255. "custom": {},
    4256. "links": []
    4257. },
    4258. "overrides": []
    4259. },
    4260. "fill": 1,
    4261. "fillGradient": 0,
    4262. "grid": {
    4263. "leftLogBase": 1,
    4264. "leftMax": null,
    4265. "leftMin": null,
    4266. "rightLogBase": 1,
    4267. "rightMax": null,
    4268. "rightMin": null
    4269. },
    4270. "gridPos": {
    4271. "h": 7,
    4272. "w": 6,
    4273. "x": 18,
    4274. "y": 9
    4275. },
    4276. "hiddenSeries": false,
    4277. "id": 84,
    4278. "legend": {
    4279. "avg": false,
    4280. "current": false,
    4281. "max": false,
    4282. "min": false,
    4283. "show": true,
    4284. "total": false,
    4285. "values": false
    4286. },
    4287. "lines": true,
    4288. "linewidth": 1,
    4289. "links": [],
    4290. "nullPointMode": "null",
    4291. "options": {
    4292. "alertThreshold": true
    4293. },
    4294. "percentage": false,
    4295. "pluginVersion": "7.4.3",
    4296. "pointradius": 5,
    4297. "points": false,
    4298. "renderer": "flot",
    4299. "seriesOverrides": [],
    4300. "spaceLength": 10,
    4301. "stack": false,
    4302. "steppedLine": false,
    4303. "targets": [
    4304. {
    4305. "expr": "jvm_buffer_count_buffers{application=\"$application\", instance=\"$instance\", id=\"mapped\",environment=\"$environment\"}",
    4306. "format": "time_series",
    4307. "interval": "",
    4308. "intervalFactor": 2,
    4309. "legendFormat": "count",
    4310. "metric": "",
    4311. "refId": "A",
    4312. "step": 2400
    4313. }
    4314. ],
    4315. "thresholds": [],
    4316. "timeFrom": null,
    4317. "timeRegions": [],
    4318. "timeShift": null,
    4319. "title": "Mapped Buffers",
    4320. "tooltip": {
    4321. "msResolution": false,
    4322. "shared": true,
    4323. "sort": 0,
    4324. "value_type": "cumulative"
    4325. },
    4326. "type": "graph",
    4327. "x-axis": true,
    4328. "xaxis": {
    4329. "buckets": null,
    4330. "mode": "time",
    4331. "name": null,
    4332. "show": true,
    4333. "values": []
    4334. },
    4335. "y-axis": true,
    4336. "y_formats": [
    4337. "short",
    4338. "short"
    4339. ],
    4340. "yaxes": [
    4341. {
    4342. "decimals": 0,
    4343. "format": "short",
    4344. "label": null,
    4345. "logBase": 1,
    4346. "max": null,
    4347. "min": 0,
    4348. "show": true
    4349. },
    4350. {
    4351. "format": "short",
    4352. "label": null,
    4353. "logBase": 1,
    4354. "max": null,
    4355. "min": null,
    4356. "show": true
    4357. }
    4358. ],
    4359. "yaxis": {
    4360. "align": false,
    4361. "alignLevel": null
    4362. }
    4363. }
    4364. ],
    4365. "repeat": null,
    4366. "title": "Buffer Pools 数据缓存 ",
    4367. "type": "row"
    4368. }
    4369. ],
    4370. "refresh": "5s",
    4371. "schemaVersion": 27,
    4372. "style": "dark",
    4373. "tags": [],
    4374. "templating": {
    4375. "list": [
    4376. {
    4377. "allValue": null,
    4378. "current": {
    4379. "selected": false,
    4380. "text": "develop",
    4381. "value": "dev"
    4382. },
    4383. "description": null,
    4384. "error": null,
    4385. "hide": 0,
    4386. "includeAll": false,
    4387. "label": "Environment",
    4388. "multi": false,
    4389. "name": "environment",
    4390. "options": [
    4391. {
    4392. "selected": true,
    4393. "text": "develop",
    4394. "value": "dev"
    4395. },
    4396. {
    4397. "selected": false,
    4398. "text": "test",
    4399. "value": "test"
    4400. }
    4401. ],
    4402. "query": "develop : dev,test : test",
    4403. "queryValue": "",
    4404. "skipUrlSync": false,
    4405. "type": "custom"
    4406. },
    4407. {
    4408. "allValue": null,
    4409. "current": {
    4410. "selected": false,
    4411. "text": "scp-product-service",
    4412. "value": "scp-product-service"
    4413. },
    4414. "datasource": "Prometheus-测试环境",
    4415. "definition": "",
    4416. "description": null,
    4417. "error": null,
    4418. "hide": 0,
    4419. "includeAll": false,
    4420. "label": "Application",
    4421. "multi": false,
    4422. "name": "application",
    4423. "options": [],
    4424. "query": {
    4425. "query": "label_values(application)",
    4426. "refId": "Prometheus-测试环境-application-Variable-Query"
    4427. },
    4428. "refresh": 2,
    4429. "regex": "",
    4430. "skipUrlSync": false,
    4431. "sort": 0,
    4432. "tagValuesQuery": "",
    4433. "tags": [],
    4434. "tagsQuery": "",
    4435. "type": "query",
    4436. "useTags": false
    4437. },
    4438. {
    4439. "allFormat": "glob",
    4440. "allValue": null,
    4441. "current": {
    4442. "selected": false,
    4443. "text": "172.27.135.183:8304",
    4444. "value": "172.27.135.183:8304"
    4445. },
    4446. "datasource": "Prometheus-测试环境",
    4447. "definition": "label_values(jvm_memory_used_bytes{application=\"$application\",environment=\"$environment\"}, instance)",
    4448. "description": null,
    4449. "error": null,
    4450. "hide": 0,
    4451. "includeAll": false,
    4452. "label": "Instance",
    4453. "multi": false,
    4454. "multiFormat": "glob",
    4455. "name": "instance",
    4456. "options": [],
    4457. "query": {
    4458. "query": "label_values(jvm_memory_used_bytes{application=\"$application\",environment=\"$environment\"}, instance)",
    4459. "refId": "StandardVariableQuery"
    4460. },
    4461. "refresh": 2,
    4462. "regex": "",
    4463. "skipUrlSync": false,
    4464. "sort": 0,
    4465. "tagValuesQuery": "",
    4466. "tags": [],
    4467. "tagsQuery": "",
    4468. "type": "query",
    4469. "useTags": false
    4470. },
    4471. {
    4472. "allFormat": "glob",
    4473. "allValue": null,
    4474. "current": {
    4475. "selected": false,
    4476. "text": "All",
    4477. "value": "$__all"
    4478. },
    4479. "datasource": "Prometheus-测试环境",
    4480. "definition": "",
    4481. "description": null,
    4482. "error": null,
    4483. "hide": 0,
    4484. "includeAll": true,
    4485. "label": "JVM Memory Pools Heap",
    4486. "multi": false,
    4487. "multiFormat": "glob",
    4488. "name": "jvm_memory_pool_heap",
    4489. "options": [],
    4490. "query": {
    4491. "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"heap\"},id)",
    4492. "refId": "Prometheus-测试环境-jvm_memory_pool_heap-Variable-Query"
    4493. },
    4494. "refresh": 1,
    4495. "regex": "",
    4496. "skipUrlSync": false,
    4497. "sort": 1,
    4498. "tagValuesQuery": "",
    4499. "tags": [],
    4500. "tagsQuery": "",
    4501. "type": "query",
    4502. "useTags": false
    4503. },
    4504. {
    4505. "allFormat": "glob",
    4506. "allValue": null,
    4507. "current": {
    4508. "selected": false,
    4509. "text": "All",
    4510. "value": "$__all"
    4511. },
    4512. "datasource": "Prometheus-测试环境",
    4513. "definition": "",
    4514. "description": null,
    4515. "error": null,
    4516. "hide": 0,
    4517. "includeAll": true,
    4518. "label": "JVM Memory Pools Non-Heap",
    4519. "multi": false,
    4520. "multiFormat": "glob",
    4521. "name": "jvm_memory_pool_nonheap",
    4522. "options": [],
    4523. "query": {
    4524. "query": "label_values(jvm_memory_used_bytes{application=\"$application\", instance=\"$instance\", area=\"nonheap\"},id)",
    4525. "refId": "Prometheus-测试环境-jvm_memory_pool_nonheap-Variable-Query"
    4526. },
    4527. "refresh": 1,
    4528. "regex": "",
    4529. "skipUrlSync": false,
    4530. "sort": 2,
    4531. "tagValuesQuery": "",
    4532. "tags": [],
    4533. "tagsQuery": "",
    4534. "type": "query",
    4535. "useTags": false
    4536. }
    4537. ]
    4538. },
    4539. "time": {
    4540. "from": "now-24h",
    4541. "to": "now"
    4542. },
    4543. "timepicker": {
    4544. "hidden": false,
    4545. "now": true,
    4546. "nowDelay": "",
    4547. "refresh_intervals": [
    4548. "5s",
    4549. "10s",
    4550. "30s",
    4551. "1m",
    4552. "5m",
    4553. "15m",
    4554. "30m",
    4555. "1h",
    4556. "2h",
    4557. "1d"
    4558. ],
    4559. "time_options": [
    4560. "5m",
    4561. "15m",
    4562. "1h",
    4563. "6h",
    4564. "12h",
    4565. "24h",
    4566. "2d",
    4567. "7d",
    4568. "30d"
    4569. ]
    4570. },
    4571. "timezone": "browser",
    4572. "title": "JVM监控",
    4573. "uid": "UOJjh1SMz",
    4574. "version": 45
    4575. }