Нет описания

SLS JVM监控大盘.json 84KB

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