bladex-linux.json 101 KB

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