bladex-linux.json 101 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842
  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": "Kd",
  27. "tooltip": "",
  28. "type": "link",
  29. "url": "https://jd.com"
  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": " 监控大屏-Linux",
  3839. "uid": "kd-linux",
  3840. "version": 1
  3841. }