bladex-mysql.json 134 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": false,
  9. "iconColor": "#e0752d",
  10. "limit": 100,
  11. "name": "PMM Annotations",
  12. "showIn": 0,
  13. "tags": [
  14. "pmm_annotation"
  15. ],
  16. "type": "tags"
  17. }
  18. ]
  19. },
  20. "description": "Mysql性能监控",
  21. "editable": true,
  22. "gnetId": 7362,
  23. "graphTooltip": 1,
  24. "id": 36,
  25. "iteration": 1612449338253,
  26. "links": [
  27. {
  28. "icon": "cloud",
  29. "includeVars": false,
  30. "keepTime": false,
  31. "tags": [
  32. "QAN"
  33. ],
  34. "targetBlank": false,
  35. "title": "BladeX",
  36. "tooltip": "",
  37. "type": "link",
  38. "url": "https://bladex.vip"
  39. }
  40. ],
  41. "panels": [
  42. {
  43. "collapsed": false,
  44. "datasource": null,
  45. "gridPos": {
  46. "h": 1,
  47. "w": 24,
  48. "x": 0,
  49. "y": 0
  50. },
  51. "id": 382,
  52. "panels": [],
  53. "repeat": null,
  54. "title": "",
  55. "type": "row"
  56. },
  57. {
  58. "cacheTimeout": null,
  59. "colorBackground": false,
  60. "colorValue": true,
  61. "colors": [
  62. "rgba(245, 54, 54, 0.9)",
  63. "rgba(237, 129, 40, 0.89)",
  64. "rgba(50, 172, 45, 0.97)"
  65. ],
  66. "datasource": "Prometheus",
  67. "decimals": 1,
  68. "description": "**MySQL Uptime**\n\nThe amount of time since the last restart of the MySQL server process.",
  69. "editable": true,
  70. "error": false,
  71. "fieldConfig": {
  72. "defaults": {
  73. "custom": {}
  74. },
  75. "overrides": []
  76. },
  77. "format": "s",
  78. "gauge": {
  79. "maxValue": 100,
  80. "minValue": 0,
  81. "show": false,
  82. "thresholdLabels": false,
  83. "thresholdMarkers": true
  84. },
  85. "gridPos": {
  86. "h": 4,
  87. "w": 6,
  88. "x": 0,
  89. "y": 1
  90. },
  91. "height": "125px",
  92. "id": 12,
  93. "interval": "$interval",
  94. "links": [],
  95. "mappingType": 1,
  96. "mappingTypes": [
  97. {
  98. "name": "value to text",
  99. "value": 1
  100. },
  101. {
  102. "name": "range to text",
  103. "value": 2
  104. }
  105. ],
  106. "maxDataPoints": 100,
  107. "nullPointMode": "connected",
  108. "nullText": null,
  109. "postfix": "s",
  110. "postfixFontSize": "80%",
  111. "prefix": "",
  112. "prefixFontSize": "80%",
  113. "rangeMaps": [
  114. {
  115. "from": "null",
  116. "text": "N/A",
  117. "to": "null"
  118. }
  119. ],
  120. "sparkline": {
  121. "fillColor": "rgba(31, 118, 189, 0.18)",
  122. "full": false,
  123. "lineColor": "rgb(31, 120, 193)",
  124. "show": false
  125. },
  126. "tableColumn": "",
  127. "targets": [
  128. {
  129. "calculatedInterval": "10m",
  130. "datasourceErrors": {},
  131. "errors": {},
  132. "expr": "mysql_global_status_uptime{instance=\"$host\"}",
  133. "format": "time_series",
  134. "interval": "5m",
  135. "intervalFactor": 1,
  136. "legendFormat": "",
  137. "metric": "",
  138. "refId": "A",
  139. "step": 300
  140. }
  141. ],
  142. "thresholds": "300,3600",
  143. "title": "MySQL Uptime",
  144. "type": "singlestat",
  145. "valueFontSize": "80%",
  146. "valueMaps": [],
  147. "valueName": "current"
  148. },
  149. {
  150. "cacheTimeout": null,
  151. "colorBackground": false,
  152. "colorValue": false,
  153. "colors": [
  154. "rgba(245, 54, 54, 0.9)",
  155. "rgba(237, 129, 40, 0.89)",
  156. "rgba(50, 172, 45, 0.97)"
  157. ],
  158. "datasource": "Prometheus",
  159. "decimals": 2,
  160. "description": "**Current QPS**\n\nBased on the queries reported by MySQL's ``SHOW STATUS`` command, it is the number of statements executed by the server within the last second. This variable includes statements executed within stored programs, unlike the Questions variable. It does not count \n``COM_PING`` or ``COM_STATISTICS`` commands.",
  161. "editable": true,
  162. "error": false,
  163. "fieldConfig": {
  164. "defaults": {
  165. "custom": {}
  166. },
  167. "overrides": []
  168. },
  169. "format": "short",
  170. "gauge": {
  171. "maxValue": 100,
  172. "minValue": 0,
  173. "show": false,
  174. "thresholdLabels": false,
  175. "thresholdMarkers": true
  176. },
  177. "gridPos": {
  178. "h": 4,
  179. "w": 6,
  180. "x": 6,
  181. "y": 1
  182. },
  183. "height": "125px",
  184. "id": 13,
  185. "interval": "$interval",
  186. "links": [
  187. {
  188. "targetBlank": true,
  189. "title": "MySQL Server Status Variables",
  190. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Queries"
  191. }
  192. ],
  193. "mappingType": 1,
  194. "mappingTypes": [
  195. {
  196. "name": "value to text",
  197. "value": 1
  198. },
  199. {
  200. "name": "range to text",
  201. "value": 2
  202. }
  203. ],
  204. "maxDataPoints": 100,
  205. "nullPointMode": "connected",
  206. "nullText": null,
  207. "postfix": "",
  208. "postfixFontSize": "50%",
  209. "prefix": "",
  210. "prefixFontSize": "80%",
  211. "rangeMaps": [
  212. {
  213. "from": "null",
  214. "text": "N/A",
  215. "to": "null"
  216. }
  217. ],
  218. "sparkline": {
  219. "fillColor": "rgba(31, 118, 189, 0.18)",
  220. "full": false,
  221. "lineColor": "rgb(31, 120, 193)",
  222. "show": true
  223. },
  224. "tableColumn": "",
  225. "targets": [
  226. {
  227. "calculatedInterval": "10m",
  228. "datasourceErrors": {},
  229. "errors": {},
  230. "expr": "rate(mysql_global_status_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_queries{instance=\"$host\"}[5m])",
  231. "format": "time_series",
  232. "interval": "$interval",
  233. "intervalFactor": 1,
  234. "legendFormat": "",
  235. "metric": "",
  236. "refId": "A",
  237. "step": 20
  238. }
  239. ],
  240. "thresholds": "35,75",
  241. "title": "Current QPS",
  242. "type": "singlestat",
  243. "valueFontSize": "80%",
  244. "valueMaps": [],
  245. "valueName": "current"
  246. },
  247. {
  248. "cacheTimeout": null,
  249. "colorBackground": false,
  250. "colorValue": false,
  251. "colors": [
  252. "rgba(50, 172, 45, 0.97)",
  253. "rgba(237, 129, 40, 0.89)",
  254. "rgba(245, 54, 54, 0.9)"
  255. ],
  256. "datasource": "Prometheus",
  257. "decimals": 0,
  258. "description": "**InnoDB Buffer Pool Size**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
  259. "editable": true,
  260. "error": false,
  261. "fieldConfig": {
  262. "defaults": {
  263. "custom": {}
  264. },
  265. "overrides": []
  266. },
  267. "format": "bytes",
  268. "gauge": {
  269. "maxValue": 100,
  270. "minValue": 0,
  271. "show": false,
  272. "thresholdLabels": false,
  273. "thresholdMarkers": true
  274. },
  275. "gridPos": {
  276. "h": 4,
  277. "w": 6,
  278. "x": 12,
  279. "y": 1
  280. },
  281. "height": "125px",
  282. "id": 51,
  283. "interval": "$interval",
  284. "links": [
  285. {
  286. "targetBlank": true,
  287. "title": "Tuning the InnoDB Buffer Pool Size",
  288. "url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
  289. }
  290. ],
  291. "mappingType": 1,
  292. "mappingTypes": [
  293. {
  294. "name": "value to text",
  295. "value": 1
  296. },
  297. {
  298. "name": "range to text",
  299. "value": 2
  300. }
  301. ],
  302. "maxDataPoints": 100,
  303. "nullPointMode": "connected",
  304. "nullText": null,
  305. "postfix": "",
  306. "postfixFontSize": "50%",
  307. "prefix": "",
  308. "prefixFontSize": "80%",
  309. "rangeMaps": [
  310. {
  311. "from": "null",
  312. "text": "N/A",
  313. "to": "null"
  314. }
  315. ],
  316. "sparkline": {
  317. "fillColor": "rgba(31, 118, 189, 0.18)",
  318. "full": false,
  319. "lineColor": "rgb(31, 120, 193)",
  320. "show": false
  321. },
  322. "tableColumn": "",
  323. "targets": [
  324. {
  325. "calculatedInterval": "10m",
  326. "datasourceErrors": {},
  327. "errors": {},
  328. "expr": "mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"}",
  329. "format": "time_series",
  330. "interval": "5m",
  331. "intervalFactor": 1,
  332. "legendFormat": "",
  333. "metric": "",
  334. "refId": "A",
  335. "step": 300
  336. }
  337. ],
  338. "thresholds": "90,95",
  339. "title": "InnoDB Buffer Pool Size",
  340. "type": "singlestat",
  341. "valueFontSize": "80%",
  342. "valueMaps": [],
  343. "valueName": "current"
  344. },
  345. {
  346. "cacheTimeout": null,
  347. "colorBackground": false,
  348. "colorValue": true,
  349. "colors": [
  350. "rgba(245, 54, 54, 0.9)",
  351. "rgba(237, 129, 40, 0.89)",
  352. "rgba(50, 172, 45, 0.97)"
  353. ],
  354. "datasource": "Prometheus",
  355. "decimals": 0,
  356. "description": "**InnoDB Buffer Pool Size % of Total RAM**\n\nInnoDB maintains a storage area called the buffer pool for caching data and indexes in memory. Knowing how the InnoDB buffer pool works, and taking advantage of it to keep frequently accessed data in memory, is one of the most important aspects of MySQL tuning. The goal is to keep the working set in memory. In most cases, this should be between 60%-90% of available memory on a dedicated database host, but depends on many factors.",
  357. "editable": true,
  358. "error": false,
  359. "fieldConfig": {
  360. "defaults": {
  361. "custom": {}
  362. },
  363. "overrides": []
  364. },
  365. "format": "percent",
  366. "gauge": {
  367. "maxValue": 100,
  368. "minValue": 0,
  369. "show": false,
  370. "thresholdLabels": false,
  371. "thresholdMarkers": true
  372. },
  373. "gridPos": {
  374. "h": 4,
  375. "w": 6,
  376. "x": 18,
  377. "y": 1
  378. },
  379. "height": "125px",
  380. "id": 52,
  381. "interval": "$interval",
  382. "links": [
  383. {
  384. "targetBlank": true,
  385. "title": "Tuning the InnoDB Buffer Pool Size",
  386. "url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
  387. }
  388. ],
  389. "mappingType": 1,
  390. "mappingTypes": [
  391. {
  392. "name": "value to text",
  393. "value": 1
  394. },
  395. {
  396. "name": "range to text",
  397. "value": 2
  398. }
  399. ],
  400. "maxDataPoints": 100,
  401. "nullPointMode": "connected",
  402. "nullText": null,
  403. "postfix": "",
  404. "postfixFontSize": "50%",
  405. "prefix": "",
  406. "prefixFontSize": "80%",
  407. "rangeMaps": [
  408. {
  409. "from": "null",
  410. "text": "N/A",
  411. "to": "null"
  412. }
  413. ],
  414. "repeat": null,
  415. "sparkline": {
  416. "fillColor": "rgba(31, 118, 189, 0.18)",
  417. "full": false,
  418. "lineColor": "rgb(31, 120, 193)",
  419. "maxValue": 100,
  420. "minValue": 0,
  421. "show": true
  422. },
  423. "tableColumn": "",
  424. "targets": [
  425. {
  426. "calculatedInterval": "10m",
  427. "datasourceErrors": {},
  428. "errors": {},
  429. "expr": "(mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"} * 100) / on (instance) node_memory_MemTotal_bytes{instance=\"$host\"}",
  430. "format": "time_series",
  431. "interval": "5m",
  432. "intervalFactor": 1,
  433. "legendFormat": "",
  434. "metric": "",
  435. "refId": "A",
  436. "step": 300
  437. }
  438. ],
  439. "thresholds": "40,80",
  440. "title": "Buffer Pool Size of Total RAM",
  441. "type": "singlestat",
  442. "valueFontSize": "80%",
  443. "valueMaps": [],
  444. "valueName": "current"
  445. },
  446. {
  447. "collapsed": false,
  448. "datasource": null,
  449. "gridPos": {
  450. "h": 1,
  451. "w": 24,
  452. "x": 0,
  453. "y": 5
  454. },
  455. "id": 383,
  456. "panels": [],
  457. "repeat": null,
  458. "title": "Connections",
  459. "type": "row"
  460. },
  461. {
  462. "aliasColors": {},
  463. "bars": false,
  464. "dashLength": 10,
  465. "dashes": false,
  466. "datasource": "Prometheus",
  467. "decimals": 0,
  468. "description": "**Max Connections** \n\nMax Connections is the maximum permitted number of simultaneous client connections. By default, this is 151. Increasing this value increases the number of file descriptors that mysqld requires. If the required number of descriptors are not available, the server reduces the value of Max Connections.\n\nmysqld actually permits Max Connections + 1 clients to connect. The extra connection is reserved for use by accounts that have the SUPER privilege, such as root.\n\nMax Used Connections is the maximum number of connections that have been in use simultaneously since the server started.\n\nConnections is the number of connection attempts (successful or not) to the MySQL server.",
  469. "editable": true,
  470. "error": false,
  471. "fieldConfig": {
  472. "defaults": {
  473. "custom": {}
  474. },
  475. "overrides": []
  476. },
  477. "fill": 2,
  478. "fillGradient": 0,
  479. "grid": {},
  480. "gridPos": {
  481. "h": 7,
  482. "w": 12,
  483. "x": 0,
  484. "y": 6
  485. },
  486. "height": "250px",
  487. "hiddenSeries": false,
  488. "id": 92,
  489. "legend": {
  490. "alignAsTable": true,
  491. "avg": true,
  492. "current": false,
  493. "max": true,
  494. "min": true,
  495. "show": true,
  496. "sort": "avg",
  497. "sortDesc": true,
  498. "total": false,
  499. "values": true
  500. },
  501. "lines": true,
  502. "linewidth": 2,
  503. "links": [
  504. {
  505. "targetBlank": true,
  506. "title": "MySQL Server System Variables",
  507. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections"
  508. }
  509. ],
  510. "nullPointMode": "null",
  511. "options": {
  512. "alertThreshold": true
  513. },
  514. "percentage": false,
  515. "pluginVersion": "7.3.7",
  516. "pointradius": 5,
  517. "points": false,
  518. "renderer": "flot",
  519. "seriesOverrides": [
  520. {
  521. "alias": "Max Connections",
  522. "fill": 0
  523. }
  524. ],
  525. "spaceLength": 10,
  526. "stack": false,
  527. "steppedLine": false,
  528. "targets": [
  529. {
  530. "calculatedInterval": "2m",
  531. "datasourceErrors": {},
  532. "errors": {},
  533. "expr": "max(max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval]) or mysql_global_status_threads_connected{instance=\"$host\"} )",
  534. "format": "time_series",
  535. "interval": "$interval",
  536. "intervalFactor": 1,
  537. "legendFormat": "Connections",
  538. "metric": "",
  539. "refId": "A",
  540. "step": 20
  541. },
  542. {
  543. "calculatedInterval": "2m",
  544. "datasourceErrors": {},
  545. "errors": {},
  546. "expr": "mysql_global_status_max_used_connections{instance=\"$host\"}",
  547. "format": "time_series",
  548. "interval": "$interval",
  549. "intervalFactor": 1,
  550. "legendFormat": "Max Used Connections",
  551. "metric": "",
  552. "refId": "C",
  553. "step": 20,
  554. "target": ""
  555. },
  556. {
  557. "calculatedInterval": "2m",
  558. "datasourceErrors": {},
  559. "errors": {},
  560. "expr": "mysql_global_variables_max_connections{instance=\"$host\"}",
  561. "format": "time_series",
  562. "interval": "$interval",
  563. "intervalFactor": 1,
  564. "legendFormat": "Max Connections",
  565. "metric": "",
  566. "refId": "B",
  567. "step": 20,
  568. "target": ""
  569. }
  570. ],
  571. "thresholds": [],
  572. "timeFrom": null,
  573. "timeRegions": [],
  574. "timeShift": null,
  575. "title": "MySQL Connections",
  576. "tooltip": {
  577. "msResolution": false,
  578. "shared": true,
  579. "sort": 0,
  580. "value_type": "cumulative"
  581. },
  582. "type": "graph",
  583. "xaxis": {
  584. "buckets": null,
  585. "mode": "time",
  586. "name": null,
  587. "show": true,
  588. "values": []
  589. },
  590. "yaxes": [
  591. {
  592. "format": "short",
  593. "label": "",
  594. "logBase": 1,
  595. "max": null,
  596. "min": 0,
  597. "show": true
  598. },
  599. {
  600. "format": "short",
  601. "label": "",
  602. "logBase": 1,
  603. "max": null,
  604. "min": 0,
  605. "show": true
  606. }
  607. ],
  608. "yaxis": {
  609. "align": false,
  610. "alignLevel": null
  611. }
  612. },
  613. {
  614. "aliasColors": {},
  615. "bars": false,
  616. "dashLength": 10,
  617. "dashes": false,
  618. "datasource": "Prometheus",
  619. "decimals": 2,
  620. "description": "**MySQL Active Threads**\n\nThreads Connected is the number of open connections, while Threads Running is the number of threads not sleeping.",
  621. "editable": true,
  622. "error": false,
  623. "fieldConfig": {
  624. "defaults": {
  625. "custom": {}
  626. },
  627. "overrides": []
  628. },
  629. "fill": 2,
  630. "fillGradient": 0,
  631. "grid": {},
  632. "gridPos": {
  633. "h": 7,
  634. "w": 12,
  635. "x": 12,
  636. "y": 6
  637. },
  638. "hiddenSeries": false,
  639. "id": 10,
  640. "legend": {
  641. "alignAsTable": true,
  642. "avg": true,
  643. "current": true,
  644. "max": true,
  645. "min": true,
  646. "rightSide": false,
  647. "show": true,
  648. "sortDesc": true,
  649. "total": false,
  650. "values": true
  651. },
  652. "lines": true,
  653. "linewidth": 2,
  654. "links": [],
  655. "nullPointMode": "null",
  656. "options": {
  657. "alertThreshold": true
  658. },
  659. "percentage": false,
  660. "pluginVersion": "7.3.7",
  661. "pointradius": 5,
  662. "points": false,
  663. "renderer": "flot",
  664. "seriesOverrides": [
  665. {
  666. "alias": "Peak Threads Running",
  667. "color": "#E24D42",
  668. "lines": false,
  669. "pointradius": 1,
  670. "points": true
  671. },
  672. {
  673. "alias": "Peak Threads Connected",
  674. "color": "#1F78C1"
  675. },
  676. {
  677. "alias": "Avg Threads Running",
  678. "color": "#EAB839"
  679. }
  680. ],
  681. "spaceLength": 10,
  682. "stack": false,
  683. "steppedLine": false,
  684. "targets": [
  685. {
  686. "calculatedInterval": "2m",
  687. "datasourceErrors": {},
  688. "errors": {},
  689. "expr": "max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[5m])",
  690. "format": "time_series",
  691. "hide": false,
  692. "interval": "$interval",
  693. "intervalFactor": 1,
  694. "legendFormat": "Peak Threads Connected",
  695. "metric": "",
  696. "refId": "A",
  697. "step": 20
  698. },
  699. {
  700. "calculatedInterval": "2m",
  701. "datasourceErrors": {},
  702. "errors": {},
  703. "expr": "max_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval]) or\nmax_over_time(mysql_global_status_threads_running{instance=\"$host\"}[5m])",
  704. "format": "time_series",
  705. "interval": "$interval",
  706. "intervalFactor": 1,
  707. "legendFormat": "Peak Threads Running",
  708. "metric": "",
  709. "refId": "B",
  710. "step": 20
  711. },
  712. {
  713. "expr": "avg_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval]) or \navg_over_time(mysql_global_status_threads_running{instance=\"$host\"}[5m])",
  714. "format": "time_series",
  715. "interval": "$interval",
  716. "intervalFactor": 1,
  717. "legendFormat": "Avg Threads Running",
  718. "refId": "C",
  719. "step": 20
  720. }
  721. ],
  722. "thresholds": [],
  723. "timeFrom": null,
  724. "timeRegions": [],
  725. "timeShift": null,
  726. "title": "MySQL Client Thread Activity",
  727. "tooltip": {
  728. "msResolution": false,
  729. "shared": true,
  730. "sort": 0,
  731. "value_type": "individual"
  732. },
  733. "type": "graph",
  734. "xaxis": {
  735. "buckets": null,
  736. "mode": "time",
  737. "name": null,
  738. "show": true,
  739. "values": [
  740. "total"
  741. ]
  742. },
  743. "yaxes": [
  744. {
  745. "format": "short",
  746. "label": "Threads",
  747. "logBase": 1,
  748. "max": null,
  749. "min": 0,
  750. "show": true
  751. },
  752. {
  753. "format": "short",
  754. "label": "",
  755. "logBase": 1,
  756. "max": null,
  757. "min": 0,
  758. "show": false
  759. }
  760. ],
  761. "yaxis": {
  762. "align": false,
  763. "alignLevel": null
  764. }
  765. },
  766. {
  767. "collapsed": false,
  768. "datasource": null,
  769. "gridPos": {
  770. "h": 1,
  771. "w": 24,
  772. "x": 0,
  773. "y": 13
  774. },
  775. "id": 384,
  776. "panels": [],
  777. "repeat": null,
  778. "title": "Table Locks",
  779. "type": "row"
  780. },
  781. {
  782. "aliasColors": {},
  783. "bars": false,
  784. "dashLength": 10,
  785. "dashes": false,
  786. "datasource": "Prometheus",
  787. "decimals": null,
  788. "description": "**MySQL Questions**\n\nThe number of statements executed by the server. This includes only statements sent to the server by clients and not statements executed within stored programs, unlike the Queries used in the QPS calculation. \n\nThis variable does not count the following commands:\n* ``COM_PING``\n* ``COM_STATISTICS``\n* ``COM_STMT_PREPARE``\n* ``COM_STMT_CLOSE``\n* ``COM_STMT_RESET``",
  789. "editable": true,
  790. "error": false,
  791. "fieldConfig": {
  792. "defaults": {
  793. "custom": {}
  794. },
  795. "overrides": []
  796. },
  797. "fill": 2,
  798. "fillGradient": 0,
  799. "grid": {},
  800. "gridPos": {
  801. "h": 7,
  802. "w": 12,
  803. "x": 0,
  804. "y": 14
  805. },
  806. "hiddenSeries": false,
  807. "id": 53,
  808. "legend": {
  809. "alignAsTable": true,
  810. "avg": true,
  811. "current": false,
  812. "max": true,
  813. "min": true,
  814. "rightSide": false,
  815. "show": true,
  816. "total": false,
  817. "values": true
  818. },
  819. "lines": true,
  820. "linewidth": 2,
  821. "links": [
  822. {
  823. "targetBlank": true,
  824. "title": "MySQL Queries and Questions",
  825. "url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/"
  826. }
  827. ],
  828. "nullPointMode": "null",
  829. "options": {
  830. "alertThreshold": true
  831. },
  832. "percentage": false,
  833. "pluginVersion": "7.3.7",
  834. "pointradius": 5,
  835. "points": false,
  836. "renderer": "flot",
  837. "seriesOverrides": [],
  838. "spaceLength": 10,
  839. "stack": false,
  840. "steppedLine": false,
  841. "targets": [
  842. {
  843. "calculatedInterval": "2m",
  844. "datasourceErrors": {},
  845. "errors": {},
  846. "expr": "rate(mysql_global_status_questions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_questions{instance=\"$host\"}[5m])",
  847. "format": "time_series",
  848. "interval": "$interval",
  849. "intervalFactor": 1,
  850. "legendFormat": "Questions",
  851. "metric": "",
  852. "refId": "A",
  853. "step": 20
  854. }
  855. ],
  856. "thresholds": [],
  857. "timeFrom": null,
  858. "timeRegions": [],
  859. "timeShift": null,
  860. "title": "MySQL Questions",
  861. "tooltip": {
  862. "msResolution": false,
  863. "shared": true,
  864. "sort": 0,
  865. "value_type": "individual"
  866. },
  867. "type": "graph",
  868. "xaxis": {
  869. "buckets": null,
  870. "mode": "time",
  871. "name": null,
  872. "show": true,
  873. "values": []
  874. },
  875. "yaxes": [
  876. {
  877. "format": "short",
  878. "logBase": 1,
  879. "max": null,
  880. "min": 0,
  881. "show": true
  882. },
  883. {
  884. "format": "short",
  885. "logBase": 1,
  886. "max": null,
  887. "min": 0,
  888. "show": true
  889. }
  890. ],
  891. "yaxis": {
  892. "align": false,
  893. "alignLevel": null
  894. }
  895. },
  896. {
  897. "aliasColors": {},
  898. "bars": false,
  899. "dashLength": 10,
  900. "dashes": false,
  901. "datasource": "Prometheus",
  902. "decimals": 2,
  903. "description": "**MySQL Thread Cache**\n\nThe thread_cache_size variable sets how many threads the server should cache to reuse. When a client disconnects, the client's threads are put in the cache if the cache is not full. It is autosized in MySQL 5.6.8 and above (capped to 100). Requests for threads are satisfied by reusing threads taken from the cache if possible, and only when the cache is empty is a new thread created.\n\n* *Threads_created*: The number of threads created to handle connections.\n* *Threads_cached*: The number of threads in the thread cache.",
  904. "editable": true,
  905. "error": false,
  906. "fieldConfig": {
  907. "defaults": {
  908. "custom": {}
  909. },
  910. "overrides": []
  911. },
  912. "fill": 2,
  913. "fillGradient": 0,
  914. "grid": {},
  915. "gridPos": {
  916. "h": 7,
  917. "w": 12,
  918. "x": 12,
  919. "y": 14
  920. },
  921. "hiddenSeries": false,
  922. "id": 11,
  923. "legend": {
  924. "alignAsTable": true,
  925. "avg": true,
  926. "current": false,
  927. "max": true,
  928. "min": true,
  929. "rightSide": false,
  930. "show": true,
  931. "sort": "avg",
  932. "sortDesc": true,
  933. "total": false,
  934. "values": true
  935. },
  936. "lines": true,
  937. "linewidth": 2,
  938. "links": [
  939. {
  940. "title": "Tuning information",
  941. "url": "https://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_thread_cache_size"
  942. }
  943. ],
  944. "nullPointMode": "null",
  945. "options": {
  946. "alertThreshold": true
  947. },
  948. "percentage": false,
  949. "pluginVersion": "7.3.7",
  950. "pointradius": 5,
  951. "points": false,
  952. "renderer": "flot",
  953. "seriesOverrides": [
  954. {
  955. "alias": "Threads Created",
  956. "fill": 0
  957. }
  958. ],
  959. "spaceLength": 10,
  960. "stack": false,
  961. "steppedLine": false,
  962. "targets": [
  963. {
  964. "calculatedInterval": "2m",
  965. "datasourceErrors": {},
  966. "errors": {},
  967. "expr": "mysql_global_variables_thread_cache_size{instance=\"$host\"}",
  968. "format": "time_series",
  969. "interval": "$interval",
  970. "intervalFactor": 1,
  971. "legendFormat": "Thread Cache Size",
  972. "metric": "",
  973. "refId": "B",
  974. "step": 20
  975. },
  976. {
  977. "calculatedInterval": "2m",
  978. "datasourceErrors": {},
  979. "errors": {},
  980. "expr": "mysql_global_status_threads_cached{instance=\"$host\"}",
  981. "format": "time_series",
  982. "interval": "$interval",
  983. "intervalFactor": 1,
  984. "legendFormat": "Threads Cached",
  985. "metric": "",
  986. "refId": "C",
  987. "step": 20
  988. },
  989. {
  990. "calculatedInterval": "2m",
  991. "datasourceErrors": {},
  992. "errors": {},
  993. "expr": "rate(mysql_global_status_threads_created{instance=\"$host\"}[$interval]) or irate(mysql_global_status_threads_created{instance=\"$host\"}[5m])",
  994. "format": "time_series",
  995. "interval": "$interval",
  996. "intervalFactor": 1,
  997. "legendFormat": "Threads Created",
  998. "metric": "",
  999. "refId": "A",
  1000. "step": 20
  1001. }
  1002. ],
  1003. "thresholds": [],
  1004. "timeFrom": null,
  1005. "timeRegions": [],
  1006. "timeShift": null,
  1007. "title": "MySQL Thread Cache",
  1008. "tooltip": {
  1009. "msResolution": false,
  1010. "shared": true,
  1011. "sort": 0,
  1012. "value_type": "individual"
  1013. },
  1014. "type": "graph",
  1015. "xaxis": {
  1016. "buckets": null,
  1017. "mode": "time",
  1018. "name": null,
  1019. "show": true,
  1020. "values": []
  1021. },
  1022. "yaxes": [
  1023. {
  1024. "format": "short",
  1025. "logBase": 1,
  1026. "max": null,
  1027. "min": 0,
  1028. "show": true
  1029. },
  1030. {
  1031. "format": "short",
  1032. "logBase": 1,
  1033. "max": null,
  1034. "min": 0,
  1035. "show": true
  1036. }
  1037. ],
  1038. "yaxis": {
  1039. "align": false,
  1040. "alignLevel": null
  1041. }
  1042. },
  1043. {
  1044. "collapsed": false,
  1045. "datasource": null,
  1046. "gridPos": {
  1047. "h": 1,
  1048. "w": 24,
  1049. "x": 0,
  1050. "y": 21
  1051. },
  1052. "id": 385,
  1053. "panels": [],
  1054. "repeat": null,
  1055. "title": "Temporary Objects",
  1056. "type": "row"
  1057. },
  1058. {
  1059. "aliasColors": {},
  1060. "bars": false,
  1061. "dashLength": 10,
  1062. "dashes": false,
  1063. "datasource": "Prometheus",
  1064. "decimals": 2,
  1065. "editable": true,
  1066. "error": false,
  1067. "fieldConfig": {
  1068. "defaults": {
  1069. "custom": {}
  1070. },
  1071. "overrides": []
  1072. },
  1073. "fill": 2,
  1074. "fillGradient": 0,
  1075. "grid": {},
  1076. "gridPos": {
  1077. "h": 7,
  1078. "w": 12,
  1079. "x": 0,
  1080. "y": 22
  1081. },
  1082. "hiddenSeries": false,
  1083. "id": 22,
  1084. "legend": {
  1085. "alignAsTable": true,
  1086. "avg": true,
  1087. "current": false,
  1088. "max": true,
  1089. "min": true,
  1090. "rightSide": false,
  1091. "show": true,
  1092. "sort": "avg",
  1093. "sortDesc": true,
  1094. "total": false,
  1095. "values": true
  1096. },
  1097. "lines": true,
  1098. "linewidth": 2,
  1099. "links": [],
  1100. "nullPointMode": "null",
  1101. "options": {
  1102. "alertThreshold": true
  1103. },
  1104. "percentage": false,
  1105. "pluginVersion": "7.3.7",
  1106. "pointradius": 5,
  1107. "points": false,
  1108. "renderer": "flot",
  1109. "seriesOverrides": [],
  1110. "spaceLength": 10,
  1111. "stack": false,
  1112. "steppedLine": false,
  1113. "targets": [
  1114. {
  1115. "calculatedInterval": "2m",
  1116. "datasourceErrors": {},
  1117. "errors": {},
  1118. "expr": "rate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[5m])",
  1119. "interval": "$interval",
  1120. "intervalFactor": 1,
  1121. "legendFormat": "Created Tmp Tables",
  1122. "metric": "",
  1123. "refId": "A",
  1124. "step": 20
  1125. },
  1126. {
  1127. "calculatedInterval": "2m",
  1128. "datasourceErrors": {},
  1129. "errors": {},
  1130. "expr": "rate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[5m])",
  1131. "interval": "$interval",
  1132. "intervalFactor": 1,
  1133. "legendFormat": "Created Tmp Disk Tables",
  1134. "metric": "",
  1135. "refId": "B",
  1136. "step": 20
  1137. },
  1138. {
  1139. "calculatedInterval": "2m",
  1140. "datasourceErrors": {},
  1141. "errors": {},
  1142. "expr": "rate(mysql_global_status_created_tmp_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_files{instance=\"$host\"}[5m])",
  1143. "interval": "$interval",
  1144. "intervalFactor": 1,
  1145. "legendFormat": "Created Tmp Files",
  1146. "metric": "",
  1147. "refId": "C",
  1148. "step": 20
  1149. }
  1150. ],
  1151. "thresholds": [],
  1152. "timeFrom": null,
  1153. "timeRegions": [],
  1154. "timeShift": null,
  1155. "title": "MySQL Temporary Objects",
  1156. "tooltip": {
  1157. "msResolution": false,
  1158. "shared": true,
  1159. "sort": 0,
  1160. "value_type": "individual"
  1161. },
  1162. "type": "graph",
  1163. "xaxis": {
  1164. "buckets": null,
  1165. "mode": "time",
  1166. "name": null,
  1167. "show": true,
  1168. "values": []
  1169. },
  1170. "yaxes": [
  1171. {
  1172. "format": "short",
  1173. "logBase": 1,
  1174. "max": null,
  1175. "min": 0,
  1176. "show": true
  1177. },
  1178. {
  1179. "format": "short",
  1180. "logBase": 1,
  1181. "max": null,
  1182. "min": 0,
  1183. "show": true
  1184. }
  1185. ],
  1186. "yaxis": {
  1187. "align": false,
  1188. "alignLevel": null
  1189. }
  1190. },
  1191. {
  1192. "aliasColors": {},
  1193. "bars": false,
  1194. "dashLength": 10,
  1195. "dashes": false,
  1196. "datasource": "Prometheus",
  1197. "decimals": 2,
  1198. "description": "**MySQL Select Types**\n\nAs with most relational databases, selecting based on indexes is more efficient than scanning an entire table's data. Here we see the counters for selects not done with indexes.\n\n* ***Select Scan*** is how many queries caused full table scans, in which all the data in the table had to be read and either discarded or returned.\n* ***Select Range*** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n* ***Select Full Join*** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
  1199. "editable": true,
  1200. "error": false,
  1201. "fieldConfig": {
  1202. "defaults": {
  1203. "custom": {}
  1204. },
  1205. "overrides": []
  1206. },
  1207. "fill": 2,
  1208. "fillGradient": 0,
  1209. "grid": {},
  1210. "gridPos": {
  1211. "h": 7,
  1212. "w": 12,
  1213. "x": 12,
  1214. "y": 22
  1215. },
  1216. "height": "250px",
  1217. "hiddenSeries": false,
  1218. "id": 311,
  1219. "legend": {
  1220. "alignAsTable": true,
  1221. "avg": true,
  1222. "current": false,
  1223. "hideZero": true,
  1224. "max": true,
  1225. "min": true,
  1226. "rightSide": false,
  1227. "show": true,
  1228. "sort": "avg",
  1229. "sortDesc": true,
  1230. "total": false,
  1231. "values": true
  1232. },
  1233. "lines": true,
  1234. "linewidth": 2,
  1235. "links": [],
  1236. "nullPointMode": "null",
  1237. "options": {
  1238. "alertThreshold": true
  1239. },
  1240. "percentage": false,
  1241. "pluginVersion": "7.3.7",
  1242. "pointradius": 5,
  1243. "points": false,
  1244. "renderer": "flot",
  1245. "seriesOverrides": [],
  1246. "spaceLength": 10,
  1247. "stack": false,
  1248. "steppedLine": false,
  1249. "targets": [
  1250. {
  1251. "calculatedInterval": "2m",
  1252. "datasourceErrors": {},
  1253. "errors": {},
  1254. "expr": "rate(mysql_global_status_select_full_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_join{instance=\"$host\"}[5m])",
  1255. "format": "time_series",
  1256. "interval": "$interval",
  1257. "intervalFactor": 1,
  1258. "legendFormat": "Select Full Join",
  1259. "metric": "",
  1260. "refId": "A",
  1261. "step": 20
  1262. },
  1263. {
  1264. "calculatedInterval": "2m",
  1265. "datasourceErrors": {},
  1266. "errors": {},
  1267. "expr": "rate(mysql_global_status_select_full_range_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_range_join{instance=\"$host\"}[5m])",
  1268. "format": "time_series",
  1269. "interval": "$interval",
  1270. "intervalFactor": 1,
  1271. "legendFormat": "Select Full Range Join",
  1272. "metric": "",
  1273. "refId": "B",
  1274. "step": 20
  1275. },
  1276. {
  1277. "calculatedInterval": "2m",
  1278. "datasourceErrors": {},
  1279. "errors": {},
  1280. "expr": "rate(mysql_global_status_select_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range{instance=\"$host\"}[5m])",
  1281. "format": "time_series",
  1282. "interval": "$interval",
  1283. "intervalFactor": 1,
  1284. "legendFormat": "Select Range",
  1285. "metric": "",
  1286. "refId": "C",
  1287. "step": 20
  1288. },
  1289. {
  1290. "calculatedInterval": "2m",
  1291. "datasourceErrors": {},
  1292. "errors": {},
  1293. "expr": "rate(mysql_global_status_select_range_check{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range_check{instance=\"$host\"}[5m])",
  1294. "format": "time_series",
  1295. "interval": "$interval",
  1296. "intervalFactor": 1,
  1297. "legendFormat": "Select Range Check",
  1298. "metric": "",
  1299. "refId": "D",
  1300. "step": 20
  1301. },
  1302. {
  1303. "calculatedInterval": "2m",
  1304. "datasourceErrors": {},
  1305. "errors": {},
  1306. "expr": "rate(mysql_global_status_select_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_scan{instance=\"$host\"}[5m])",
  1307. "format": "time_series",
  1308. "interval": "$interval",
  1309. "intervalFactor": 1,
  1310. "legendFormat": "Select Scan",
  1311. "metric": "",
  1312. "refId": "E",
  1313. "step": 20
  1314. }
  1315. ],
  1316. "thresholds": [],
  1317. "timeFrom": null,
  1318. "timeRegions": [],
  1319. "timeShift": null,
  1320. "title": "MySQL Select Types",
  1321. "tooltip": {
  1322. "msResolution": false,
  1323. "shared": true,
  1324. "sort": 0,
  1325. "value_type": "individual"
  1326. },
  1327. "type": "graph",
  1328. "xaxis": {
  1329. "buckets": null,
  1330. "mode": "time",
  1331. "name": null,
  1332. "show": true,
  1333. "values": []
  1334. },
  1335. "yaxes": [
  1336. {
  1337. "format": "short",
  1338. "logBase": 1,
  1339. "max": null,
  1340. "min": 0,
  1341. "show": true
  1342. },
  1343. {
  1344. "format": "short",
  1345. "logBase": 1,
  1346. "max": null,
  1347. "min": 0,
  1348. "show": true
  1349. }
  1350. ],
  1351. "yaxis": {
  1352. "align": false,
  1353. "alignLevel": null
  1354. }
  1355. },
  1356. {
  1357. "collapsed": false,
  1358. "datasource": null,
  1359. "gridPos": {
  1360. "h": 1,
  1361. "w": 24,
  1362. "x": 0,
  1363. "y": 29
  1364. },
  1365. "id": 386,
  1366. "panels": [],
  1367. "repeat": null,
  1368. "title": "Sorts",
  1369. "type": "row"
  1370. },
  1371. {
  1372. "aliasColors": {},
  1373. "bars": false,
  1374. "dashLength": 10,
  1375. "dashes": false,
  1376. "datasource": "Prometheus",
  1377. "decimals": 2,
  1378. "description": "**MySQL Sorts**\n\nDue to a query's structure, order, or other requirements, MySQL sorts the rows before returning them. For example, if a table is ordered 1 to 10 but you want the results reversed, MySQL then has to sort the rows to return 10 to 1.\n\nThis graph also shows when sorts had to scan a whole table or a given range of a table in order to return the results and which could not have been sorted via an index.",
  1379. "editable": true,
  1380. "error": false,
  1381. "fieldConfig": {
  1382. "defaults": {
  1383. "custom": {}
  1384. },
  1385. "overrides": []
  1386. },
  1387. "fill": 2,
  1388. "fillGradient": 0,
  1389. "grid": {},
  1390. "gridPos": {
  1391. "h": 7,
  1392. "w": 12,
  1393. "x": 0,
  1394. "y": 30
  1395. },
  1396. "hiddenSeries": false,
  1397. "id": 30,
  1398. "legend": {
  1399. "alignAsTable": true,
  1400. "avg": true,
  1401. "current": false,
  1402. "hideZero": true,
  1403. "max": true,
  1404. "min": true,
  1405. "rightSide": false,
  1406. "show": true,
  1407. "sort": "avg",
  1408. "sortDesc": true,
  1409. "total": false,
  1410. "values": true
  1411. },
  1412. "lines": true,
  1413. "linewidth": 2,
  1414. "links": [],
  1415. "nullPointMode": "null",
  1416. "options": {
  1417. "alertThreshold": true
  1418. },
  1419. "percentage": false,
  1420. "pluginVersion": "7.3.7",
  1421. "pointradius": 5,
  1422. "points": false,
  1423. "renderer": "flot",
  1424. "seriesOverrides": [],
  1425. "spaceLength": 10,
  1426. "stack": false,
  1427. "steppedLine": false,
  1428. "targets": [
  1429. {
  1430. "calculatedInterval": "2m",
  1431. "datasourceErrors": {},
  1432. "errors": {},
  1433. "expr": "rate(mysql_global_status_sort_rows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_rows{instance=\"$host\"}[5m])",
  1434. "format": "time_series",
  1435. "interval": "$interval",
  1436. "intervalFactor": 1,
  1437. "legendFormat": "Sort Rows",
  1438. "metric": "",
  1439. "refId": "A",
  1440. "step": 20
  1441. },
  1442. {
  1443. "calculatedInterval": "2m",
  1444. "datasourceErrors": {},
  1445. "errors": {},
  1446. "expr": "rate(mysql_global_status_sort_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_range{instance=\"$host\"}[5m])",
  1447. "format": "time_series",
  1448. "interval": "$interval",
  1449. "intervalFactor": 1,
  1450. "legendFormat": "Sort Range",
  1451. "metric": "",
  1452. "refId": "B",
  1453. "step": 20
  1454. },
  1455. {
  1456. "calculatedInterval": "2m",
  1457. "datasourceErrors": {},
  1458. "errors": {},
  1459. "expr": "rate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[5m])",
  1460. "format": "time_series",
  1461. "interval": "$interval",
  1462. "intervalFactor": 1,
  1463. "legendFormat": "Sort Merge Passes",
  1464. "metric": "",
  1465. "refId": "C",
  1466. "step": 20
  1467. },
  1468. {
  1469. "calculatedInterval": "2m",
  1470. "datasourceErrors": {},
  1471. "errors": {},
  1472. "expr": "rate(mysql_global_status_sort_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_scan{instance=\"$host\"}[5m])",
  1473. "format": "time_series",
  1474. "interval": "$interval",
  1475. "intervalFactor": 1,
  1476. "legendFormat": "Sort Scan",
  1477. "metric": "",
  1478. "refId": "D",
  1479. "step": 20
  1480. }
  1481. ],
  1482. "thresholds": [],
  1483. "timeFrom": null,
  1484. "timeRegions": [],
  1485. "timeShift": null,
  1486. "title": "MySQL Sorts",
  1487. "tooltip": {
  1488. "msResolution": false,
  1489. "shared": true,
  1490. "sort": 0,
  1491. "value_type": "individual"
  1492. },
  1493. "type": "graph",
  1494. "xaxis": {
  1495. "buckets": null,
  1496. "mode": "time",
  1497. "name": null,
  1498. "show": true,
  1499. "values": []
  1500. },
  1501. "yaxes": [
  1502. {
  1503. "format": "short",
  1504. "logBase": 1,
  1505. "max": null,
  1506. "min": 0,
  1507. "show": true
  1508. },
  1509. {
  1510. "format": "short",
  1511. "logBase": 1,
  1512. "max": null,
  1513. "min": 0,
  1514. "show": true
  1515. }
  1516. ],
  1517. "yaxis": {
  1518. "align": false,
  1519. "alignLevel": null
  1520. }
  1521. },
  1522. {
  1523. "aliasColors": {},
  1524. "bars": false,
  1525. "dashLength": 10,
  1526. "dashes": false,
  1527. "datasource": "Prometheus",
  1528. "decimals": 2,
  1529. "description": "**MySQL Slow Queries**\n\nSlow queries are defined as queries being slower than the long_query_time setting. For example, if you have long_query_time set to 3, all queries that take longer than 3 seconds to complete will show on this graph.",
  1530. "editable": true,
  1531. "error": false,
  1532. "fieldConfig": {
  1533. "defaults": {
  1534. "custom": {}
  1535. },
  1536. "overrides": []
  1537. },
  1538. "fill": 2,
  1539. "fillGradient": 0,
  1540. "grid": {},
  1541. "gridPos": {
  1542. "h": 7,
  1543. "w": 12,
  1544. "x": 12,
  1545. "y": 30
  1546. },
  1547. "hiddenSeries": false,
  1548. "id": 48,
  1549. "legend": {
  1550. "alignAsTable": true,
  1551. "avg": true,
  1552. "current": false,
  1553. "max": true,
  1554. "min": true,
  1555. "show": true,
  1556. "total": false,
  1557. "values": true
  1558. },
  1559. "lines": true,
  1560. "linewidth": 2,
  1561. "links": [],
  1562. "nullPointMode": "null",
  1563. "options": {
  1564. "alertThreshold": true
  1565. },
  1566. "percentage": false,
  1567. "pluginVersion": "7.3.7",
  1568. "pointradius": 5,
  1569. "points": false,
  1570. "renderer": "flot",
  1571. "seriesOverrides": [],
  1572. "spaceLength": 10,
  1573. "stack": false,
  1574. "steppedLine": false,
  1575. "targets": [
  1576. {
  1577. "calculatedInterval": "2m",
  1578. "datasourceErrors": {},
  1579. "errors": {},
  1580. "expr": "rate(mysql_global_status_slow_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_slow_queries{instance=\"$host\"}[5m])",
  1581. "format": "time_series",
  1582. "interval": "$interval",
  1583. "intervalFactor": 1,
  1584. "legendFormat": "Slow Queries",
  1585. "metric": "",
  1586. "refId": "A",
  1587. "step": 20
  1588. }
  1589. ],
  1590. "thresholds": [],
  1591. "timeFrom": null,
  1592. "timeRegions": [],
  1593. "timeShift": null,
  1594. "title": "MySQL Slow Queries",
  1595. "tooltip": {
  1596. "msResolution": false,
  1597. "shared": true,
  1598. "sort": 0,
  1599. "value_type": "cumulative"
  1600. },
  1601. "type": "graph",
  1602. "xaxis": {
  1603. "buckets": null,
  1604. "mode": "time",
  1605. "name": null,
  1606. "show": true,
  1607. "values": []
  1608. },
  1609. "yaxes": [
  1610. {
  1611. "format": "short",
  1612. "label": "",
  1613. "logBase": 1,
  1614. "max": null,
  1615. "min": 0,
  1616. "show": true
  1617. },
  1618. {
  1619. "format": "short",
  1620. "label": "",
  1621. "logBase": 1,
  1622. "max": null,
  1623. "min": 0,
  1624. "show": true
  1625. }
  1626. ],
  1627. "yaxis": {
  1628. "align": false,
  1629. "alignLevel": null
  1630. }
  1631. },
  1632. {
  1633. "collapsed": false,
  1634. "datasource": null,
  1635. "gridPos": {
  1636. "h": 1,
  1637. "w": 24,
  1638. "x": 0,
  1639. "y": 37
  1640. },
  1641. "id": 387,
  1642. "panels": [],
  1643. "repeat": null,
  1644. "title": "Aborted",
  1645. "type": "row"
  1646. },
  1647. {
  1648. "aliasColors": {},
  1649. "bars": false,
  1650. "dashLength": 10,
  1651. "dashes": false,
  1652. "datasource": "Prometheus",
  1653. "decimals": 2,
  1654. "description": "**Aborted Connections**\n\nWhen a given host connects to MySQL and the connection is interrupted in the middle (for example due to bad credentials), MySQL keeps that info in a system table (since 5.6 this table is exposed in performance_schema).\n\nIf the amount of failed requests without a successful connection reaches the value of max_connect_errors, mysqld assumes that something is wrong and blocks the host from further connection.\n\nTo allow connections from that host again, you need to issue the ``FLUSH HOSTS`` statement.",
  1655. "editable": true,
  1656. "error": false,
  1657. "fieldConfig": {
  1658. "defaults": {
  1659. "custom": {}
  1660. },
  1661. "overrides": []
  1662. },
  1663. "fill": 2,
  1664. "fillGradient": 0,
  1665. "grid": {},
  1666. "gridPos": {
  1667. "h": 7,
  1668. "w": 12,
  1669. "x": 0,
  1670. "y": 38
  1671. },
  1672. "hiddenSeries": false,
  1673. "id": 47,
  1674. "legend": {
  1675. "alignAsTable": true,
  1676. "avg": true,
  1677. "current": false,
  1678. "max": true,
  1679. "min": true,
  1680. "show": true,
  1681. "sort": "avg",
  1682. "sortDesc": true,
  1683. "total": false,
  1684. "values": true
  1685. },
  1686. "lines": true,
  1687. "linewidth": 2,
  1688. "links": [],
  1689. "nullPointMode": "null",
  1690. "options": {
  1691. "alertThreshold": true
  1692. },
  1693. "percentage": false,
  1694. "pluginVersion": "7.3.7",
  1695. "pointradius": 5,
  1696. "points": false,
  1697. "renderer": "flot",
  1698. "seriesOverrides": [],
  1699. "spaceLength": 10,
  1700. "stack": false,
  1701. "steppedLine": false,
  1702. "targets": [
  1703. {
  1704. "calculatedInterval": "2m",
  1705. "datasourceErrors": {},
  1706. "errors": {},
  1707. "expr": "rate(mysql_global_status_aborted_connects{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_connects{instance=\"$host\"}[5m])",
  1708. "format": "time_series",
  1709. "interval": "$interval",
  1710. "intervalFactor": 1,
  1711. "legendFormat": "Aborted Connects (attempts)",
  1712. "metric": "",
  1713. "refId": "A",
  1714. "step": 20
  1715. },
  1716. {
  1717. "calculatedInterval": "2m",
  1718. "datasourceErrors": {},
  1719. "errors": {},
  1720. "expr": "rate(mysql_global_status_aborted_clients{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_clients{instance=\"$host\"}[5m])",
  1721. "format": "time_series",
  1722. "interval": "$interval",
  1723. "intervalFactor": 1,
  1724. "legendFormat": "Aborted Clients (timeout)",
  1725. "metric": "",
  1726. "refId": "B",
  1727. "step": 20,
  1728. "target": ""
  1729. }
  1730. ],
  1731. "thresholds": [],
  1732. "timeFrom": null,
  1733. "timeRegions": [],
  1734. "timeShift": null,
  1735. "title": "MySQL Aborted Connections",
  1736. "tooltip": {
  1737. "msResolution": false,
  1738. "shared": true,
  1739. "sort": 0,
  1740. "value_type": "cumulative"
  1741. },
  1742. "type": "graph",
  1743. "xaxis": {
  1744. "buckets": null,
  1745. "mode": "time",
  1746. "name": null,
  1747. "show": true,
  1748. "values": []
  1749. },
  1750. "yaxes": [
  1751. {
  1752. "format": "short",
  1753. "label": "",
  1754. "logBase": 1,
  1755. "max": null,
  1756. "min": 0,
  1757. "show": true
  1758. },
  1759. {
  1760. "format": "short",
  1761. "label": "",
  1762. "logBase": 1,
  1763. "max": null,
  1764. "min": 0,
  1765. "show": true
  1766. }
  1767. ],
  1768. "yaxis": {
  1769. "align": false,
  1770. "alignLevel": null
  1771. }
  1772. },
  1773. {
  1774. "aliasColors": {},
  1775. "bars": false,
  1776. "dashLength": 10,
  1777. "dashes": false,
  1778. "datasource": "Prometheus",
  1779. "decimals": 2,
  1780. "description": "**Table Locks**\n\nMySQL takes a number of different locks for varying reasons. In this graph we see how many Table level locks MySQL has requested from the storage engine. In the case of InnoDB, many times the locks could actually be row locks as it only takes table level locks in a few specific cases.\n\nIt is most useful to compare Locks Immediate and Locks Waited. If Locks waited is rising, it means you have lock contention. Otherwise, Locks Immediate rising and falling is normal activity.",
  1781. "editable": true,
  1782. "error": false,
  1783. "fieldConfig": {
  1784. "defaults": {
  1785. "custom": {}
  1786. },
  1787. "overrides": []
  1788. },
  1789. "fill": 2,
  1790. "fillGradient": 0,
  1791. "grid": {},
  1792. "gridPos": {
  1793. "h": 7,
  1794. "w": 12,
  1795. "x": 12,
  1796. "y": 38
  1797. },
  1798. "hiddenSeries": false,
  1799. "id": 32,
  1800. "legend": {
  1801. "alignAsTable": true,
  1802. "avg": true,
  1803. "current": false,
  1804. "max": true,
  1805. "min": true,
  1806. "rightSide": false,
  1807. "show": true,
  1808. "sort": "avg",
  1809. "sortDesc": true,
  1810. "total": false,
  1811. "values": true
  1812. },
  1813. "lines": true,
  1814. "linewidth": 2,
  1815. "links": [],
  1816. "nullPointMode": "null",
  1817. "options": {
  1818. "alertThreshold": true
  1819. },
  1820. "percentage": false,
  1821. "pluginVersion": "7.3.7",
  1822. "pointradius": 5,
  1823. "points": false,
  1824. "renderer": "flot",
  1825. "seriesOverrides": [],
  1826. "spaceLength": 10,
  1827. "stack": false,
  1828. "steppedLine": false,
  1829. "targets": [
  1830. {
  1831. "calculatedInterval": "2m",
  1832. "datasourceErrors": {},
  1833. "errors": {},
  1834. "expr": "rate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[5m])",
  1835. "format": "time_series",
  1836. "interval": "$interval",
  1837. "intervalFactor": 1,
  1838. "legendFormat": "Table Locks Immediate",
  1839. "metric": "",
  1840. "refId": "A",
  1841. "step": 20
  1842. },
  1843. {
  1844. "calculatedInterval": "2m",
  1845. "datasourceErrors": {},
  1846. "errors": {},
  1847. "expr": "rate(mysql_global_status_table_locks_waited{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_waited{instance=\"$host\"}[5m])",
  1848. "format": "time_series",
  1849. "interval": "$interval",
  1850. "intervalFactor": 1,
  1851. "legendFormat": "Table Locks Waited",
  1852. "metric": "",
  1853. "refId": "B",
  1854. "step": 20
  1855. }
  1856. ],
  1857. "thresholds": [],
  1858. "timeFrom": null,
  1859. "timeRegions": [],
  1860. "timeShift": null,
  1861. "title": "MySQL Table Locks",
  1862. "tooltip": {
  1863. "msResolution": false,
  1864. "shared": true,
  1865. "sort": 0,
  1866. "value_type": "individual"
  1867. },
  1868. "type": "graph",
  1869. "xaxis": {
  1870. "buckets": null,
  1871. "mode": "time",
  1872. "name": null,
  1873. "show": true,
  1874. "values": []
  1875. },
  1876. "yaxes": [
  1877. {
  1878. "format": "short",
  1879. "logBase": 1,
  1880. "max": null,
  1881. "min": 0,
  1882. "show": true
  1883. },
  1884. {
  1885. "format": "short",
  1886. "logBase": 1,
  1887. "max": null,
  1888. "min": 0,
  1889. "show": true
  1890. }
  1891. ],
  1892. "yaxis": {
  1893. "align": false,
  1894. "alignLevel": null
  1895. }
  1896. },
  1897. {
  1898. "collapsed": false,
  1899. "datasource": null,
  1900. "gridPos": {
  1901. "h": 1,
  1902. "w": 24,
  1903. "x": 0,
  1904. "y": 45
  1905. },
  1906. "id": 388,
  1907. "panels": [],
  1908. "repeat": null,
  1909. "title": "Network",
  1910. "type": "row"
  1911. },
  1912. {
  1913. "aliasColors": {},
  1914. "bars": false,
  1915. "dashLength": 10,
  1916. "dashes": false,
  1917. "datasource": "Prometheus",
  1918. "decimals": 2,
  1919. "description": "**MySQL Network Traffic**\n\nHere we can see how much network traffic is generated by MySQL. Outbound is network traffic sent from MySQL and Inbound is network traffic MySQL has received.",
  1920. "editable": true,
  1921. "error": false,
  1922. "fieldConfig": {
  1923. "defaults": {
  1924. "custom": {}
  1925. },
  1926. "overrides": []
  1927. },
  1928. "fill": 6,
  1929. "fillGradient": 0,
  1930. "grid": {},
  1931. "gridPos": {
  1932. "h": 7,
  1933. "w": 12,
  1934. "x": 0,
  1935. "y": 46
  1936. },
  1937. "hiddenSeries": false,
  1938. "id": 9,
  1939. "legend": {
  1940. "alignAsTable": true,
  1941. "avg": true,
  1942. "current": false,
  1943. "max": true,
  1944. "min": true,
  1945. "rightSide": false,
  1946. "show": true,
  1947. "sort": "avg",
  1948. "sortDesc": true,
  1949. "total": false,
  1950. "values": true
  1951. },
  1952. "lines": true,
  1953. "linewidth": 2,
  1954. "links": [],
  1955. "nullPointMode": "null",
  1956. "options": {
  1957. "alertThreshold": true
  1958. },
  1959. "percentage": false,
  1960. "pluginVersion": "7.3.7",
  1961. "pointradius": 5,
  1962. "points": false,
  1963. "renderer": "flot",
  1964. "seriesOverrides": [],
  1965. "spaceLength": 10,
  1966. "stack": true,
  1967. "steppedLine": false,
  1968. "targets": [
  1969. {
  1970. "calculatedInterval": "2m",
  1971. "datasourceErrors": {},
  1972. "errors": {},
  1973. "expr": "rate(mysql_global_status_bytes_received{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_received{instance=\"$host\"}[5m])",
  1974. "format": "time_series",
  1975. "interval": "$interval",
  1976. "intervalFactor": 1,
  1977. "legendFormat": "Inbound",
  1978. "metric": "",
  1979. "refId": "A",
  1980. "step": 20
  1981. },
  1982. {
  1983. "calculatedInterval": "2m",
  1984. "datasourceErrors": {},
  1985. "errors": {},
  1986. "expr": "rate(mysql_global_status_bytes_sent{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_sent{instance=\"$host\"}[5m])",
  1987. "format": "time_series",
  1988. "interval": "$interval",
  1989. "intervalFactor": 1,
  1990. "legendFormat": "Outbound",
  1991. "metric": "",
  1992. "refId": "B",
  1993. "step": 20
  1994. }
  1995. ],
  1996. "thresholds": [],
  1997. "timeFrom": null,
  1998. "timeRegions": [],
  1999. "timeShift": null,
  2000. "title": "MySQL Network Traffic",
  2001. "tooltip": {
  2002. "msResolution": false,
  2003. "shared": true,
  2004. "sort": 0,
  2005. "value_type": "individual"
  2006. },
  2007. "type": "graph",
  2008. "xaxis": {
  2009. "buckets": null,
  2010. "mode": "time",
  2011. "name": null,
  2012. "show": true,
  2013. "values": []
  2014. },
  2015. "yaxes": [
  2016. {
  2017. "format": "Bps",
  2018. "logBase": 1,
  2019. "max": null,
  2020. "min": 0,
  2021. "show": true
  2022. },
  2023. {
  2024. "format": "none",
  2025. "logBase": 1,
  2026. "max": null,
  2027. "min": 0,
  2028. "show": true
  2029. }
  2030. ],
  2031. "yaxis": {
  2032. "align": false,
  2033. "alignLevel": null
  2034. }
  2035. },
  2036. {
  2037. "aliasColors": {},
  2038. "bars": true,
  2039. "dashLength": 10,
  2040. "dashes": false,
  2041. "datasource": "Prometheus",
  2042. "decimals": 2,
  2043. "description": "**MySQL Network Usage Hourly**\n\nHere we can see how much network traffic is generated by MySQL per hour. You can use the bar graph to compare data sent by MySQL and data received by MySQL.",
  2044. "editable": true,
  2045. "error": false,
  2046. "fieldConfig": {
  2047. "defaults": {
  2048. "custom": {}
  2049. },
  2050. "overrides": []
  2051. },
  2052. "fill": 6,
  2053. "fillGradient": 0,
  2054. "grid": {},
  2055. "gridPos": {
  2056. "h": 7,
  2057. "w": 12,
  2058. "x": 12,
  2059. "y": 46
  2060. },
  2061. "height": "250px",
  2062. "hiddenSeries": false,
  2063. "id": 381,
  2064. "legend": {
  2065. "alignAsTable": true,
  2066. "avg": true,
  2067. "current": false,
  2068. "max": true,
  2069. "min": true,
  2070. "rightSide": false,
  2071. "show": true,
  2072. "sort": "avg",
  2073. "sortDesc": true,
  2074. "total": false,
  2075. "values": true
  2076. },
  2077. "lines": false,
  2078. "linewidth": 2,
  2079. "links": [],
  2080. "nullPointMode": "null",
  2081. "options": {
  2082. "alertThreshold": true
  2083. },
  2084. "percentage": false,
  2085. "pluginVersion": "7.3.7",
  2086. "pointradius": 5,
  2087. "points": false,
  2088. "renderer": "flot",
  2089. "seriesOverrides": [],
  2090. "spaceLength": 10,
  2091. "stack": true,
  2092. "steppedLine": false,
  2093. "targets": [
  2094. {
  2095. "calculatedInterval": "2m",
  2096. "datasourceErrors": {},
  2097. "errors": {},
  2098. "expr": "increase(mysql_global_status_bytes_received{instance=\"$host\"}[1h])",
  2099. "format": "time_series",
  2100. "interval": "1h",
  2101. "intervalFactor": 1,
  2102. "legendFormat": "Received",
  2103. "metric": "",
  2104. "refId": "A",
  2105. "step": 3600
  2106. },
  2107. {
  2108. "calculatedInterval": "2m",
  2109. "datasourceErrors": {},
  2110. "errors": {},
  2111. "expr": "increase(mysql_global_status_bytes_sent{instance=\"$host\"}[1h])",
  2112. "format": "time_series",
  2113. "interval": "1h",
  2114. "intervalFactor": 1,
  2115. "legendFormat": "Sent",
  2116. "metric": "",
  2117. "refId": "B",
  2118. "step": 3600
  2119. }
  2120. ],
  2121. "thresholds": [],
  2122. "timeFrom": "24h",
  2123. "timeRegions": [],
  2124. "timeShift": null,
  2125. "title": "MySQL Network Usage Hourly",
  2126. "tooltip": {
  2127. "msResolution": false,
  2128. "shared": true,
  2129. "sort": 0,
  2130. "value_type": "individual"
  2131. },
  2132. "type": "graph",
  2133. "xaxis": {
  2134. "buckets": null,
  2135. "mode": "time",
  2136. "name": null,
  2137. "show": true,
  2138. "values": []
  2139. },
  2140. "yaxes": [
  2141. {
  2142. "format": "bytes",
  2143. "logBase": 1,
  2144. "max": null,
  2145. "min": 0,
  2146. "show": true
  2147. },
  2148. {
  2149. "format": "none",
  2150. "logBase": 1,
  2151. "max": null,
  2152. "min": 0,
  2153. "show": true
  2154. }
  2155. ],
  2156. "yaxis": {
  2157. "align": false,
  2158. "alignLevel": null
  2159. }
  2160. },
  2161. {
  2162. "collapsed": false,
  2163. "datasource": null,
  2164. "gridPos": {
  2165. "h": 1,
  2166. "w": 24,
  2167. "x": 0,
  2168. "y": 53
  2169. },
  2170. "id": 389,
  2171. "panels": [],
  2172. "repeat": null,
  2173. "title": "Memory",
  2174. "type": "row"
  2175. },
  2176. {
  2177. "aliasColors": {},
  2178. "bars": false,
  2179. "dashLength": 10,
  2180. "dashes": false,
  2181. "datasource": "Prometheus",
  2182. "decimals": 0,
  2183. "description": "***System Memory***: Total Memory for the system.\\\n***InnoDB Buffer Pool Data***: InnoDB maintains a storage area called the buffer pool for caching data and indexes in memory.\\\n***TokuDB Cache Size***: Similar in function to the InnoDB Buffer Pool, TokuDB will allocate 50% of the installed RAM for its own cache.\\\n***Key Buffer Size***: Index blocks for MYISAM tables are buffered and are shared by all threads. key_buffer_size is the size of the buffer used for index blocks.\\\n***Adaptive Hash Index Size***: When InnoDB notices that some index values are being accessed very frequently, it builds a hash index for them in memory on top of B-Tree indexes.\\\n ***Query Cache Size***: The query cache stores the text of a SELECT statement together with the corresponding result that was sent to the client. The query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time.\\\n***InnoDB Dictionary Size***: The data dictionary is InnoDB ‘s internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running.\\\n***InnoDB Log Buffer Size***: The MySQL InnoDB log buffer allows transactions to run without having to write the log to disk before the transactions commit.",
  2184. "editable": true,
  2185. "error": false,
  2186. "fieldConfig": {
  2187. "defaults": {
  2188. "custom": {}
  2189. },
  2190. "overrides": []
  2191. },
  2192. "fill": 6,
  2193. "fillGradient": 0,
  2194. "grid": {},
  2195. "gridPos": {
  2196. "h": 7,
  2197. "w": 24,
  2198. "x": 0,
  2199. "y": 54
  2200. },
  2201. "hiddenSeries": false,
  2202. "id": 50,
  2203. "legend": {
  2204. "alignAsTable": true,
  2205. "avg": true,
  2206. "current": false,
  2207. "hideEmpty": true,
  2208. "hideZero": true,
  2209. "max": true,
  2210. "min": true,
  2211. "rightSide": true,
  2212. "show": true,
  2213. "sort": "avg",
  2214. "sortDesc": true,
  2215. "total": false,
  2216. "values": true
  2217. },
  2218. "lines": true,
  2219. "linewidth": 2,
  2220. "links": [
  2221. {
  2222. "title": "Detailed descriptions about metrics",
  2223. "url": "https://www.percona.com/doc/percona-monitoring-and-management/dashboard.mysql-overview.html#mysql-internal-memory-overview"
  2224. }
  2225. ],
  2226. "nullPointMode": "null",
  2227. "options": {
  2228. "alertThreshold": true
  2229. },
  2230. "percentage": false,
  2231. "pluginVersion": "7.3.7",
  2232. "pointradius": 5,
  2233. "points": false,
  2234. "renderer": "flot",
  2235. "seriesOverrides": [
  2236. {
  2237. "alias": "System Memory",
  2238. "fill": 0,
  2239. "stack": false
  2240. }
  2241. ],
  2242. "spaceLength": 10,
  2243. "stack": true,
  2244. "steppedLine": false,
  2245. "targets": [
  2246. {
  2247. "expr": "node_memory_MemTotal_bytes{instance=\"$host\"}",
  2248. "format": "time_series",
  2249. "intervalFactor": 2,
  2250. "legendFormat": "System Memory",
  2251. "refId": "G",
  2252. "step": 4
  2253. },
  2254. {
  2255. "expr": "mysql_global_status_innodb_page_size{instance=\"$host\"} * on (instance) mysql_global_status_buffer_pool_pages{instance=\"$host\",state=\"data\"}",
  2256. "format": "time_series",
  2257. "hide": false,
  2258. "interval": "$interval",
  2259. "intervalFactor": 1,
  2260. "legendFormat": "InnoDB Buffer Pool Data",
  2261. "refId": "A",
  2262. "step": 20
  2263. },
  2264. {
  2265. "expr": "mysql_global_variables_innodb_log_buffer_size{instance=\"$host\"}",
  2266. "format": "time_series",
  2267. "interval": "$interval",
  2268. "intervalFactor": 1,
  2269. "legendFormat": "InnoDB Log Buffer Size",
  2270. "refId": "D",
  2271. "step": 20
  2272. },
  2273. {
  2274. "expr": "mysql_global_variables_innodb_additional_mem_pool_size{instance=\"$host\"}",
  2275. "format": "time_series",
  2276. "interval": "$interval",
  2277. "intervalFactor": 2,
  2278. "legendFormat": "InnoDB Additional Memory Pool Size",
  2279. "refId": "H",
  2280. "step": 40
  2281. },
  2282. {
  2283. "expr": "mysql_global_status_innodb_mem_dictionary{instance=\"$host\"}",
  2284. "format": "time_series",
  2285. "interval": "$interval",
  2286. "intervalFactor": 1,
  2287. "legendFormat": "InnoDB Dictionary Size",
  2288. "refId": "F",
  2289. "step": 20
  2290. },
  2291. {
  2292. "expr": "mysql_global_variables_key_buffer_size{instance=\"$host\"}",
  2293. "format": "time_series",
  2294. "interval": "$interval",
  2295. "intervalFactor": 1,
  2296. "legendFormat": "Key Buffer Size",
  2297. "refId": "B",
  2298. "step": 20
  2299. },
  2300. {
  2301. "expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
  2302. "format": "time_series",
  2303. "interval": "$interval",
  2304. "intervalFactor": 1,
  2305. "legendFormat": "Query Cache Size",
  2306. "refId": "C",
  2307. "step": 20
  2308. },
  2309. {
  2310. "expr": "mysql_global_status_innodb_mem_adaptive_hash{instance=\"$host\"}",
  2311. "format": "time_series",
  2312. "interval": "$interval",
  2313. "intervalFactor": 1,
  2314. "legendFormat": "Adaptive Hash Index Size",
  2315. "refId": "E",
  2316. "step": 20
  2317. },
  2318. {
  2319. "expr": "mysql_global_variables_tokudb_cache_size{instance=\"$host\"}",
  2320. "format": "time_series",
  2321. "interval": "$interval",
  2322. "intervalFactor": 1,
  2323. "legendFormat": "TokuDB Cache Size",
  2324. "refId": "I",
  2325. "step": 20
  2326. }
  2327. ],
  2328. "thresholds": [],
  2329. "timeFrom": null,
  2330. "timeRegions": [],
  2331. "timeShift": null,
  2332. "title": "MySQL Internal Memory Overview",
  2333. "tooltip": {
  2334. "msResolution": false,
  2335. "shared": true,
  2336. "sort": 0,
  2337. "value_type": "individual"
  2338. },
  2339. "type": "graph",
  2340. "xaxis": {
  2341. "buckets": null,
  2342. "mode": "time",
  2343. "name": null,
  2344. "show": true,
  2345. "values": []
  2346. },
  2347. "yaxes": [
  2348. {
  2349. "format": "bytes",
  2350. "label": "",
  2351. "logBase": 1,
  2352. "max": null,
  2353. "min": 0,
  2354. "show": true
  2355. },
  2356. {
  2357. "format": "short",
  2358. "label": null,
  2359. "logBase": 1,
  2360. "max": null,
  2361. "min": null,
  2362. "show": true
  2363. }
  2364. ],
  2365. "yaxis": {
  2366. "align": false,
  2367. "alignLevel": null
  2368. }
  2369. },
  2370. {
  2371. "collapsed": false,
  2372. "datasource": null,
  2373. "gridPos": {
  2374. "h": 1,
  2375. "w": 24,
  2376. "x": 0,
  2377. "y": 61
  2378. },
  2379. "id": 390,
  2380. "panels": [],
  2381. "repeat": null,
  2382. "title": "Command, Handlers, Processes",
  2383. "type": "row"
  2384. },
  2385. {
  2386. "aliasColors": {},
  2387. "bars": false,
  2388. "dashLength": 10,
  2389. "dashes": false,
  2390. "datasource": "Prometheus",
  2391. "decimals": 2,
  2392. "description": "**Top Command Counters**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
  2393. "editable": true,
  2394. "error": false,
  2395. "fieldConfig": {
  2396. "defaults": {
  2397. "custom": {}
  2398. },
  2399. "overrides": []
  2400. },
  2401. "fill": 2,
  2402. "fillGradient": 0,
  2403. "grid": {},
  2404. "gridPos": {
  2405. "h": 7,
  2406. "w": 24,
  2407. "x": 0,
  2408. "y": 62
  2409. },
  2410. "hiddenSeries": false,
  2411. "id": 14,
  2412. "legend": {
  2413. "alignAsTable": true,
  2414. "avg": true,
  2415. "current": false,
  2416. "hideEmpty": false,
  2417. "hideZero": false,
  2418. "max": true,
  2419. "min": true,
  2420. "rightSide": true,
  2421. "show": true,
  2422. "sort": "avg",
  2423. "sortDesc": true,
  2424. "total": false,
  2425. "values": true
  2426. },
  2427. "lines": true,
  2428. "linewidth": 2,
  2429. "links": [
  2430. {
  2431. "title": "Server Status Variables (Com_xxx)",
  2432. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx"
  2433. }
  2434. ],
  2435. "nullPointMode": "null",
  2436. "options": {
  2437. "alertThreshold": true
  2438. },
  2439. "percentage": false,
  2440. "pluginVersion": "7.3.7",
  2441. "pointradius": 5,
  2442. "points": false,
  2443. "renderer": "flot",
  2444. "seriesOverrides": [],
  2445. "spaceLength": 10,
  2446. "stack": false,
  2447. "steppedLine": false,
  2448. "targets": [
  2449. {
  2450. "calculatedInterval": "2m",
  2451. "datasourceErrors": {},
  2452. "errors": {},
  2453. "expr": "topk(5, rate(mysql_global_status_commands_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_global_status_commands_total{instance=\"$host\"}[5m])>0)",
  2454. "format": "time_series",
  2455. "hide": false,
  2456. "interval": "$interval",
  2457. "intervalFactor": 1,
  2458. "legendFormat": "Com_{{ command }}",
  2459. "metric": "",
  2460. "refId": "B",
  2461. "step": 20
  2462. }
  2463. ],
  2464. "thresholds": [],
  2465. "timeFrom": null,
  2466. "timeRegions": [],
  2467. "timeShift": null,
  2468. "title": "Top Command Counters",
  2469. "tooltip": {
  2470. "msResolution": false,
  2471. "shared": true,
  2472. "sort": 0,
  2473. "value_type": "individual"
  2474. },
  2475. "type": "graph",
  2476. "xaxis": {
  2477. "buckets": null,
  2478. "mode": "time",
  2479. "name": null,
  2480. "show": true,
  2481. "values": []
  2482. },
  2483. "yaxes": [
  2484. {
  2485. "format": "short",
  2486. "logBase": 1,
  2487. "max": null,
  2488. "min": 0,
  2489. "show": true
  2490. },
  2491. {
  2492. "format": "short",
  2493. "logBase": 1,
  2494. "max": null,
  2495. "min": 0,
  2496. "show": true
  2497. }
  2498. ],
  2499. "yaxis": {
  2500. "align": false,
  2501. "alignLevel": null
  2502. }
  2503. },
  2504. {
  2505. "aliasColors": {},
  2506. "bars": true,
  2507. "dashLength": 10,
  2508. "dashes": false,
  2509. "datasource": "Prometheus",
  2510. "decimals": 2,
  2511. "description": "**Top Command Counters Hourly**\n\nThe Com_{{xxx}} statement counter variables indicate the number of times each xxx statement has been executed. There is one status variable for each type of statement. For example, Com_delete and Com_update count [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements, respectively. Com_delete_multi and Com_update_multi are similar but apply to [``DELETE``](https://dev.mysql.com/doc/refman/5.7/en/delete.html) and [``UPDATE``](https://dev.mysql.com/doc/refman/5.7/en/update.html) statements that use multiple-table syntax.",
  2512. "editable": true,
  2513. "error": false,
  2514. "fieldConfig": {
  2515. "defaults": {
  2516. "custom": {}
  2517. },
  2518. "overrides": []
  2519. },
  2520. "fill": 6,
  2521. "fillGradient": 0,
  2522. "grid": {},
  2523. "gridPos": {
  2524. "h": 7,
  2525. "w": 24,
  2526. "x": 0,
  2527. "y": 69
  2528. },
  2529. "hiddenSeries": false,
  2530. "id": 39,
  2531. "legend": {
  2532. "alignAsTable": true,
  2533. "avg": true,
  2534. "current": false,
  2535. "max": true,
  2536. "min": true,
  2537. "rightSide": true,
  2538. "show": true,
  2539. "sort": "avg",
  2540. "sortDesc": true,
  2541. "total": false,
  2542. "values": true
  2543. },
  2544. "lines": false,
  2545. "linewidth": 2,
  2546. "links": [
  2547. {
  2548. "title": "Server Status Variables (Com_xxx)",
  2549. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Com_xxx"
  2550. }
  2551. ],
  2552. "nullPointMode": "null",
  2553. "options": {
  2554. "alertThreshold": true
  2555. },
  2556. "percentage": false,
  2557. "pluginVersion": "7.3.7",
  2558. "pointradius": 5,
  2559. "points": false,
  2560. "renderer": "flot",
  2561. "seriesOverrides": [],
  2562. "spaceLength": 10,
  2563. "stack": true,
  2564. "steppedLine": false,
  2565. "targets": [
  2566. {
  2567. "calculatedInterval": "2m",
  2568. "datasourceErrors": {},
  2569. "errors": {},
  2570. "expr": "topk(5, increase(mysql_global_status_commands_total{instance=\"$host\"}[1h])>0)",
  2571. "format": "time_series",
  2572. "interval": "1h",
  2573. "intervalFactor": 1,
  2574. "legendFormat": "Com_{{ command }}",
  2575. "metric": "",
  2576. "refId": "A",
  2577. "step": 3600
  2578. }
  2579. ],
  2580. "thresholds": [],
  2581. "timeFrom": "24h",
  2582. "timeRegions": [],
  2583. "timeShift": null,
  2584. "title": "Top Command Counters Hourly",
  2585. "tooltip": {
  2586. "msResolution": false,
  2587. "shared": true,
  2588. "sort": 0,
  2589. "value_type": "individual"
  2590. },
  2591. "type": "graph",
  2592. "xaxis": {
  2593. "buckets": null,
  2594. "mode": "time",
  2595. "name": null,
  2596. "show": true,
  2597. "values": []
  2598. },
  2599. "yaxes": [
  2600. {
  2601. "format": "short",
  2602. "logBase": 1,
  2603. "max": null,
  2604. "min": 0,
  2605. "show": true
  2606. },
  2607. {
  2608. "format": "short",
  2609. "logBase": 1,
  2610. "max": null,
  2611. "min": 0,
  2612. "show": true
  2613. }
  2614. ],
  2615. "yaxis": {
  2616. "align": false,
  2617. "alignLevel": null
  2618. }
  2619. },
  2620. {
  2621. "aliasColors": {},
  2622. "bars": false,
  2623. "dashLength": 10,
  2624. "dashes": false,
  2625. "datasource": "Prometheus",
  2626. "decimals": 2,
  2627. "description": "**MySQL Handlers**\n\nHandler statistics are internal statistics on how MySQL is selecting, updating, inserting, and modifying rows, tables, and indexes.\n\nThis is in fact the layer between the Storage Engine and MySQL.\n\n* `read_rnd_next` is incremented when the server performs a full table scan and this is a counter you don't really want to see with a high value.\n* `read_key` is incremented when a read is done with an index.\n* `read_next` is incremented when the storage engine is asked to 'read the next index entry'. A high value means a lot of index scans are being done.",
  2628. "editable": true,
  2629. "error": false,
  2630. "fieldConfig": {
  2631. "defaults": {
  2632. "custom": {}
  2633. },
  2634. "overrides": []
  2635. },
  2636. "fill": 2,
  2637. "fillGradient": 0,
  2638. "grid": {},
  2639. "gridPos": {
  2640. "h": 7,
  2641. "w": 24,
  2642. "x": 0,
  2643. "y": 76
  2644. },
  2645. "hiddenSeries": false,
  2646. "id": 8,
  2647. "legend": {
  2648. "alignAsTable": true,
  2649. "avg": true,
  2650. "current": false,
  2651. "hideZero": true,
  2652. "max": true,
  2653. "min": true,
  2654. "rightSide": true,
  2655. "show": true,
  2656. "sort": "avg",
  2657. "sortDesc": true,
  2658. "total": false,
  2659. "values": true
  2660. },
  2661. "lines": true,
  2662. "linewidth": 2,
  2663. "links": [],
  2664. "nullPointMode": "null",
  2665. "options": {
  2666. "alertThreshold": true
  2667. },
  2668. "percentage": false,
  2669. "pluginVersion": "7.3.7",
  2670. "pointradius": 5,
  2671. "points": false,
  2672. "renderer": "flot",
  2673. "seriesOverrides": [],
  2674. "spaceLength": 10,
  2675. "stack": false,
  2676. "steppedLine": false,
  2677. "targets": [
  2678. {
  2679. "calculatedInterval": "2m",
  2680. "datasourceErrors": {},
  2681. "errors": {},
  2682. "expr": "rate(mysql_global_status_handlers_total{instance=\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=\"$host\", handler!~\"commit|rollback|savepoint.*|prepare\"}[5m])",
  2683. "format": "time_series",
  2684. "interval": "$interval",
  2685. "intervalFactor": 1,
  2686. "legendFormat": "{{ handler }}",
  2687. "metric": "",
  2688. "refId": "J",
  2689. "step": 20
  2690. }
  2691. ],
  2692. "thresholds": [],
  2693. "timeFrom": null,
  2694. "timeRegions": [],
  2695. "timeShift": null,
  2696. "title": "MySQL Handlers",
  2697. "tooltip": {
  2698. "msResolution": false,
  2699. "shared": true,
  2700. "sort": 0,
  2701. "value_type": "individual"
  2702. },
  2703. "type": "graph",
  2704. "xaxis": {
  2705. "buckets": null,
  2706. "mode": "time",
  2707. "name": null,
  2708. "show": true,
  2709. "values": []
  2710. },
  2711. "yaxes": [
  2712. {
  2713. "format": "short",
  2714. "logBase": 1,
  2715. "max": null,
  2716. "min": 0,
  2717. "show": true
  2718. },
  2719. {
  2720. "format": "short",
  2721. "logBase": 1,
  2722. "max": null,
  2723. "min": 0,
  2724. "show": true
  2725. }
  2726. ],
  2727. "yaxis": {
  2728. "align": false,
  2729. "alignLevel": null
  2730. }
  2731. },
  2732. {
  2733. "aliasColors": {},
  2734. "bars": false,
  2735. "dashLength": 10,
  2736. "dashes": false,
  2737. "datasource": "Prometheus",
  2738. "decimals": 2,
  2739. "editable": true,
  2740. "error": false,
  2741. "fieldConfig": {
  2742. "defaults": {
  2743. "custom": {}
  2744. },
  2745. "overrides": []
  2746. },
  2747. "fill": 2,
  2748. "fillGradient": 0,
  2749. "grid": {},
  2750. "gridPos": {
  2751. "h": 7,
  2752. "w": 24,
  2753. "x": 0,
  2754. "y": 83
  2755. },
  2756. "hiddenSeries": false,
  2757. "id": 28,
  2758. "legend": {
  2759. "alignAsTable": true,
  2760. "avg": true,
  2761. "current": false,
  2762. "hideZero": true,
  2763. "max": true,
  2764. "min": true,
  2765. "rightSide": true,
  2766. "show": true,
  2767. "sort": "avg",
  2768. "sortDesc": true,
  2769. "total": false,
  2770. "values": true
  2771. },
  2772. "lines": true,
  2773. "linewidth": 2,
  2774. "links": [],
  2775. "nullPointMode": "null",
  2776. "options": {
  2777. "alertThreshold": true
  2778. },
  2779. "percentage": false,
  2780. "pluginVersion": "7.3.7",
  2781. "pointradius": 5,
  2782. "points": false,
  2783. "renderer": "flot",
  2784. "seriesOverrides": [],
  2785. "spaceLength": 10,
  2786. "stack": false,
  2787. "steppedLine": false,
  2788. "targets": [
  2789. {
  2790. "calculatedInterval": "2m",
  2791. "datasourceErrors": {},
  2792. "errors": {},
  2793. "expr": "rate(mysql_global_status_handlers_total{instance=\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[$interval]) or irate(mysql_global_status_handlers_total{instance=\"$host\", handler=~\"commit|rollback|savepoint.*|prepare\"}[5m])",
  2794. "interval": "$interval",
  2795. "intervalFactor": 1,
  2796. "legendFormat": "{{ handler }}",
  2797. "metric": "",
  2798. "refId": "A",
  2799. "step": 20
  2800. }
  2801. ],
  2802. "thresholds": [],
  2803. "timeFrom": null,
  2804. "timeRegions": [],
  2805. "timeShift": null,
  2806. "title": "MySQL Transaction Handlers",
  2807. "tooltip": {
  2808. "msResolution": false,
  2809. "shared": true,
  2810. "sort": 0,
  2811. "value_type": "individual"
  2812. },
  2813. "type": "graph",
  2814. "xaxis": {
  2815. "buckets": null,
  2816. "mode": "time",
  2817. "name": null,
  2818. "show": true,
  2819. "values": []
  2820. },
  2821. "yaxes": [
  2822. {
  2823. "format": "short",
  2824. "logBase": 1,
  2825. "max": null,
  2826. "min": 0,
  2827. "show": true
  2828. },
  2829. {
  2830. "format": "short",
  2831. "logBase": 1,
  2832. "max": null,
  2833. "min": 0,
  2834. "show": true
  2835. }
  2836. ],
  2837. "yaxis": {
  2838. "align": false,
  2839. "alignLevel": null
  2840. }
  2841. },
  2842. {
  2843. "aliasColors": {},
  2844. "bars": false,
  2845. "dashLength": 10,
  2846. "dashes": false,
  2847. "datasource": "Prometheus",
  2848. "decimals": 2,
  2849. "editable": true,
  2850. "error": false,
  2851. "fieldConfig": {
  2852. "defaults": {
  2853. "custom": {}
  2854. },
  2855. "overrides": []
  2856. },
  2857. "fill": 0,
  2858. "fillGradient": 0,
  2859. "grid": {},
  2860. "gridPos": {
  2861. "h": 7,
  2862. "w": 24,
  2863. "x": 0,
  2864. "y": 90
  2865. },
  2866. "hiddenSeries": false,
  2867. "id": 40,
  2868. "legend": {
  2869. "alignAsTable": true,
  2870. "avg": true,
  2871. "current": false,
  2872. "hideZero": true,
  2873. "max": true,
  2874. "min": false,
  2875. "rightSide": true,
  2876. "show": true,
  2877. "sort": "avg",
  2878. "sortDesc": true,
  2879. "total": false,
  2880. "values": true
  2881. },
  2882. "lines": true,
  2883. "linewidth": 2,
  2884. "links": [],
  2885. "nullPointMode": "null",
  2886. "options": {
  2887. "alertThreshold": true
  2888. },
  2889. "percentage": false,
  2890. "pluginVersion": "7.3.7",
  2891. "pointradius": 5,
  2892. "points": false,
  2893. "renderer": "flot",
  2894. "seriesOverrides": [],
  2895. "spaceLength": 10,
  2896. "stack": false,
  2897. "steppedLine": false,
  2898. "targets": [
  2899. {
  2900. "calculatedInterval": "2m",
  2901. "datasourceErrors": {},
  2902. "errors": {},
  2903. "expr": "mysql_info_schema_threads{instance=\"$host\"}",
  2904. "interval": "$interval",
  2905. "intervalFactor": 1,
  2906. "legendFormat": "{{ state }}",
  2907. "metric": "",
  2908. "refId": "A",
  2909. "step": 20
  2910. }
  2911. ],
  2912. "thresholds": [],
  2913. "timeFrom": null,
  2914. "timeRegions": [],
  2915. "timeShift": null,
  2916. "title": "Process States",
  2917. "tooltip": {
  2918. "msResolution": false,
  2919. "shared": true,
  2920. "sort": 0,
  2921. "value_type": "individual"
  2922. },
  2923. "type": "graph",
  2924. "xaxis": {
  2925. "buckets": null,
  2926. "mode": "time",
  2927. "name": null,
  2928. "show": true,
  2929. "values": []
  2930. },
  2931. "yaxes": [
  2932. {
  2933. "format": "short",
  2934. "logBase": 1,
  2935. "max": null,
  2936. "min": 0,
  2937. "show": true
  2938. },
  2939. {
  2940. "format": "short",
  2941. "logBase": 1,
  2942. "max": null,
  2943. "min": 0,
  2944. "show": true
  2945. }
  2946. ],
  2947. "yaxis": {
  2948. "align": false,
  2949. "alignLevel": null
  2950. }
  2951. },
  2952. {
  2953. "aliasColors": {},
  2954. "bars": true,
  2955. "dashLength": 10,
  2956. "dashes": false,
  2957. "datasource": "Prometheus",
  2958. "decimals": 2,
  2959. "editable": true,
  2960. "error": false,
  2961. "fieldConfig": {
  2962. "defaults": {
  2963. "custom": {}
  2964. },
  2965. "overrides": []
  2966. },
  2967. "fill": 6,
  2968. "fillGradient": 0,
  2969. "grid": {},
  2970. "gridPos": {
  2971. "h": 7,
  2972. "w": 24,
  2973. "x": 0,
  2974. "y": 97
  2975. },
  2976. "hiddenSeries": false,
  2977. "id": 49,
  2978. "legend": {
  2979. "alignAsTable": true,
  2980. "avg": true,
  2981. "current": false,
  2982. "hideZero": true,
  2983. "max": true,
  2984. "min": false,
  2985. "rightSide": true,
  2986. "show": true,
  2987. "sort": "avg",
  2988. "sortDesc": true,
  2989. "total": false,
  2990. "values": true
  2991. },
  2992. "lines": false,
  2993. "linewidth": 2,
  2994. "links": [],
  2995. "nullPointMode": "null",
  2996. "options": {
  2997. "alertThreshold": true
  2998. },
  2999. "percentage": false,
  3000. "pluginVersion": "7.3.7",
  3001. "pointradius": 5,
  3002. "points": false,
  3003. "renderer": "flot",
  3004. "seriesOverrides": [],
  3005. "spaceLength": 10,
  3006. "stack": true,
  3007. "steppedLine": false,
  3008. "targets": [
  3009. {
  3010. "calculatedInterval": "2m",
  3011. "datasourceErrors": {},
  3012. "errors": {},
  3013. "expr": "topk(5, avg_over_time(mysql_info_schema_threads{instance=\"$host\"}[1h]))",
  3014. "interval": "1h",
  3015. "intervalFactor": 1,
  3016. "legendFormat": "{{ state }}",
  3017. "metric": "",
  3018. "refId": "A",
  3019. "step": 3600
  3020. }
  3021. ],
  3022. "thresholds": [],
  3023. "timeFrom": "24h",
  3024. "timeRegions": [],
  3025. "timeShift": null,
  3026. "title": "Top Process States Hourly",
  3027. "tooltip": {
  3028. "msResolution": false,
  3029. "shared": true,
  3030. "sort": 0,
  3031. "value_type": "individual"
  3032. },
  3033. "type": "graph",
  3034. "xaxis": {
  3035. "buckets": null,
  3036. "mode": "time",
  3037. "name": null,
  3038. "show": true,
  3039. "values": []
  3040. },
  3041. "yaxes": [
  3042. {
  3043. "format": "short",
  3044. "logBase": 1,
  3045. "max": null,
  3046. "min": 0,
  3047. "show": true
  3048. },
  3049. {
  3050. "format": "short",
  3051. "logBase": 1,
  3052. "max": null,
  3053. "min": 0,
  3054. "show": true
  3055. }
  3056. ],
  3057. "yaxis": {
  3058. "align": false,
  3059. "alignLevel": null
  3060. }
  3061. },
  3062. {
  3063. "collapsed": false,
  3064. "datasource": null,
  3065. "gridPos": {
  3066. "h": 1,
  3067. "w": 24,
  3068. "x": 0,
  3069. "y": 104
  3070. },
  3071. "id": 391,
  3072. "panels": [],
  3073. "repeat": null,
  3074. "title": "Query Cache",
  3075. "type": "row"
  3076. },
  3077. {
  3078. "aliasColors": {},
  3079. "bars": false,
  3080. "dashLength": 10,
  3081. "dashes": false,
  3082. "datasource": "Prometheus",
  3083. "decimals": 2,
  3084. "description": "**MySQL Query Cache Memory**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n ``query_cache_type=0``\n ``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",
  3085. "editable": true,
  3086. "error": false,
  3087. "fieldConfig": {
  3088. "defaults": {
  3089. "custom": {}
  3090. },
  3091. "overrides": []
  3092. },
  3093. "fill": 2,
  3094. "fillGradient": 0,
  3095. "grid": {},
  3096. "gridPos": {
  3097. "h": 7,
  3098. "w": 12,
  3099. "x": 0,
  3100. "y": 105
  3101. },
  3102. "hiddenSeries": false,
  3103. "id": 46,
  3104. "legend": {
  3105. "alignAsTable": true,
  3106. "avg": true,
  3107. "current": false,
  3108. "max": true,
  3109. "min": true,
  3110. "rightSide": false,
  3111. "show": true,
  3112. "sort": "avg",
  3113. "sortDesc": true,
  3114. "total": false,
  3115. "values": true
  3116. },
  3117. "lines": true,
  3118. "linewidth": 2,
  3119. "links": [],
  3120. "nullPointMode": "null",
  3121. "options": {
  3122. "alertThreshold": true
  3123. },
  3124. "percentage": false,
  3125. "pluginVersion": "7.3.7",
  3126. "pointradius": 5,
  3127. "points": false,
  3128. "renderer": "flot",
  3129. "seriesOverrides": [],
  3130. "spaceLength": 10,
  3131. "stack": false,
  3132. "steppedLine": false,
  3133. "targets": [
  3134. {
  3135. "calculatedInterval": "2m",
  3136. "datasourceErrors": {},
  3137. "errors": {},
  3138. "expr": "mysql_global_status_qcache_free_memory{instance=\"$host\"}",
  3139. "format": "time_series",
  3140. "interval": "$interval",
  3141. "intervalFactor": 1,
  3142. "legendFormat": "Free Memory",
  3143. "metric": "",
  3144. "refId": "F",
  3145. "step": 20
  3146. },
  3147. {
  3148. "calculatedInterval": "2m",
  3149. "datasourceErrors": {},
  3150. "errors": {},
  3151. "expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
  3152. "format": "time_series",
  3153. "interval": "$interval",
  3154. "intervalFactor": 1,
  3155. "legendFormat": "Query Cache Size",
  3156. "metric": "",
  3157. "refId": "E",
  3158. "step": 20
  3159. }
  3160. ],
  3161. "thresholds": [],
  3162. "timeFrom": null,
  3163. "timeRegions": [],
  3164. "timeShift": null,
  3165. "title": "MySQL Query Cache Memory",
  3166. "tooltip": {
  3167. "msResolution": false,
  3168. "shared": true,
  3169. "sort": 0,
  3170. "value_type": "individual"
  3171. },
  3172. "type": "graph",
  3173. "xaxis": {
  3174. "buckets": null,
  3175. "mode": "time",
  3176. "name": null,
  3177. "show": true,
  3178. "values": []
  3179. },
  3180. "yaxes": [
  3181. {
  3182. "format": "bytes",
  3183. "logBase": 1,
  3184. "max": null,
  3185. "min": 0,
  3186. "show": true
  3187. },
  3188. {
  3189. "format": "short",
  3190. "logBase": 1,
  3191. "max": null,
  3192. "min": 0,
  3193. "show": true
  3194. }
  3195. ],
  3196. "yaxis": {
  3197. "align": false,
  3198. "alignLevel": null
  3199. }
  3200. },
  3201. {
  3202. "aliasColors": {},
  3203. "bars": false,
  3204. "dashLength": 10,
  3205. "dashes": false,
  3206. "datasource": "Prometheus",
  3207. "decimals": 2,
  3208. "description": "**MySQL Query Cache Activity**\n\nThe query cache has huge scalability problems in that only one thread can do an operation in the query cache at the same time. This serialization is true not only for SELECTs, but also for INSERT/UPDATE/DELETE.\n\nThis also means that the larger the `query_cache_size` is set to, the slower those operations become. In concurrent environments, the MySQL Query Cache quickly becomes a contention point, decreasing performance. MariaDB and AWS Aurora have done work to try and eliminate the query cache contention in their flavors of MySQL, while MySQL 8.0 has eliminated the query cache feature.\n\nThe recommended settings for most environments is to set:\n``query_cache_type=0``\n``query_cache_size=0``\n\nNote that while you can dynamically change these values, to completely remove the contention point you have to restart the database.",
  3209. "editable": true,
  3210. "error": false,
  3211. "fieldConfig": {
  3212. "defaults": {
  3213. "custom": {}
  3214. },
  3215. "overrides": []
  3216. },
  3217. "fill": 2,
  3218. "fillGradient": 0,
  3219. "grid": {},
  3220. "gridPos": {
  3221. "h": 7,
  3222. "w": 12,
  3223. "x": 12,
  3224. "y": 105
  3225. },
  3226. "height": "",
  3227. "hiddenSeries": false,
  3228. "id": 45,
  3229. "legend": {
  3230. "alignAsTable": true,
  3231. "avg": true,
  3232. "current": false,
  3233. "max": true,
  3234. "min": true,
  3235. "rightSide": false,
  3236. "show": true,
  3237. "sort": "avg",
  3238. "sortDesc": true,
  3239. "total": false,
  3240. "values": true
  3241. },
  3242. "lines": true,
  3243. "linewidth": 2,
  3244. "links": [],
  3245. "nullPointMode": "null",
  3246. "options": {
  3247. "alertThreshold": true
  3248. },
  3249. "percentage": false,
  3250. "pluginVersion": "7.3.7",
  3251. "pointradius": 5,
  3252. "points": false,
  3253. "renderer": "flot",
  3254. "seriesOverrides": [],
  3255. "spaceLength": 10,
  3256. "stack": false,
  3257. "steppedLine": false,
  3258. "targets": [
  3259. {
  3260. "calculatedInterval": "2m",
  3261. "datasourceErrors": {},
  3262. "errors": {},
  3263. "expr": "rate(mysql_global_status_qcache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_hits{instance=\"$host\"}[5m])",
  3264. "format": "time_series",
  3265. "interval": "$interval",
  3266. "intervalFactor": 1,
  3267. "legendFormat": "Hits",
  3268. "metric": "",
  3269. "refId": "B",
  3270. "step": 20
  3271. },
  3272. {
  3273. "calculatedInterval": "2m",
  3274. "datasourceErrors": {},
  3275. "errors": {},
  3276. "expr": "rate(mysql_global_status_qcache_inserts{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_inserts{instance=\"$host\"}[5m])",
  3277. "format": "time_series",
  3278. "interval": "$interval",
  3279. "intervalFactor": 1,
  3280. "legendFormat": "Inserts",
  3281. "metric": "",
  3282. "refId": "C",
  3283. "step": 20
  3284. },
  3285. {
  3286. "calculatedInterval": "2m",
  3287. "datasourceErrors": {},
  3288. "errors": {},
  3289. "expr": "rate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[5m])",
  3290. "format": "time_series",
  3291. "interval": "$interval",
  3292. "intervalFactor": 1,
  3293. "legendFormat": "Not Cached",
  3294. "metric": "",
  3295. "refId": "D",
  3296. "step": 20
  3297. },
  3298. {
  3299. "calculatedInterval": "2m",
  3300. "datasourceErrors": {},
  3301. "errors": {},
  3302. "expr": "rate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[5m])",
  3303. "format": "time_series",
  3304. "interval": "$interval",
  3305. "intervalFactor": 1,
  3306. "legendFormat": "Prunes",
  3307. "metric": "",
  3308. "refId": "F",
  3309. "step": 20
  3310. },
  3311. {
  3312. "calculatedInterval": "2m",
  3313. "datasourceErrors": {},
  3314. "errors": {},
  3315. "expr": "mysql_global_status_qcache_queries_in_cache{instance=\"$host\"}",
  3316. "format": "time_series",
  3317. "interval": "$interval",
  3318. "intervalFactor": 1,
  3319. "legendFormat": "Queries in Cache",
  3320. "metric": "",
  3321. "refId": "E",
  3322. "step": 20
  3323. }
  3324. ],
  3325. "thresholds": [],
  3326. "timeFrom": null,
  3327. "timeRegions": [],
  3328. "timeShift": null,
  3329. "title": "MySQL Query Cache Activity",
  3330. "tooltip": {
  3331. "msResolution": false,
  3332. "shared": true,
  3333. "sort": 0,
  3334. "value_type": "individual"
  3335. },
  3336. "type": "graph",
  3337. "xaxis": {
  3338. "buckets": null,
  3339. "mode": "time",
  3340. "name": null,
  3341. "show": true,
  3342. "values": []
  3343. },
  3344. "yaxes": [
  3345. {
  3346. "format": "short",
  3347. "logBase": 1,
  3348. "max": null,
  3349. "min": 0,
  3350. "show": true
  3351. },
  3352. {
  3353. "format": "short",
  3354. "logBase": 1,
  3355. "max": null,
  3356. "min": 0,
  3357. "show": true
  3358. }
  3359. ],
  3360. "yaxis": {
  3361. "align": false,
  3362. "alignLevel": null
  3363. }
  3364. },
  3365. {
  3366. "collapsed": false,
  3367. "datasource": null,
  3368. "gridPos": {
  3369. "h": 1,
  3370. "w": 24,
  3371. "x": 0,
  3372. "y": 112
  3373. },
  3374. "id": 392,
  3375. "panels": [],
  3376. "repeat": null,
  3377. "title": "Files and Tables",
  3378. "type": "row"
  3379. },
  3380. {
  3381. "aliasColors": {},
  3382. "bars": false,
  3383. "dashLength": 10,
  3384. "dashes": false,
  3385. "datasource": "Prometheus",
  3386. "decimals": 2,
  3387. "editable": true,
  3388. "error": false,
  3389. "fieldConfig": {
  3390. "defaults": {
  3391. "custom": {}
  3392. },
  3393. "overrides": []
  3394. },
  3395. "fill": 2,
  3396. "fillGradient": 0,
  3397. "grid": {},
  3398. "gridPos": {
  3399. "h": 7,
  3400. "w": 12,
  3401. "x": 0,
  3402. "y": 113
  3403. },
  3404. "hiddenSeries": false,
  3405. "id": 43,
  3406. "legend": {
  3407. "alignAsTable": true,
  3408. "avg": true,
  3409. "current": false,
  3410. "max": true,
  3411. "min": true,
  3412. "rightSide": false,
  3413. "show": true,
  3414. "total": false,
  3415. "values": true
  3416. },
  3417. "lines": true,
  3418. "linewidth": 2,
  3419. "links": [],
  3420. "nullPointMode": "null",
  3421. "options": {
  3422. "alertThreshold": true
  3423. },
  3424. "percentage": false,
  3425. "pluginVersion": "7.3.7",
  3426. "pointradius": 5,
  3427. "points": false,
  3428. "renderer": "flot",
  3429. "seriesOverrides": [],
  3430. "spaceLength": 10,
  3431. "stack": false,
  3432. "steppedLine": false,
  3433. "targets": [
  3434. {
  3435. "calculatedInterval": "2m",
  3436. "datasourceErrors": {},
  3437. "errors": {},
  3438. "expr": "rate(mysql_global_status_opened_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_files{instance=\"$host\"}[5m])",
  3439. "interval": "$interval",
  3440. "intervalFactor": 1,
  3441. "legendFormat": "Openings",
  3442. "metric": "",
  3443. "refId": "A",
  3444. "step": 20
  3445. }
  3446. ],
  3447. "thresholds": [],
  3448. "timeFrom": null,
  3449. "timeRegions": [],
  3450. "timeShift": null,
  3451. "title": "MySQL File Openings",
  3452. "tooltip": {
  3453. "msResolution": false,
  3454. "shared": true,
  3455. "sort": 0,
  3456. "value_type": "individual"
  3457. },
  3458. "type": "graph",
  3459. "xaxis": {
  3460. "buckets": null,
  3461. "mode": "time",
  3462. "name": null,
  3463. "show": true,
  3464. "values": []
  3465. },
  3466. "yaxes": [
  3467. {
  3468. "format": "short",
  3469. "logBase": 1,
  3470. "max": null,
  3471. "min": 0,
  3472. "show": true
  3473. },
  3474. {
  3475. "format": "short",
  3476. "logBase": 1,
  3477. "max": null,
  3478. "min": 0,
  3479. "show": true
  3480. }
  3481. ],
  3482. "yaxis": {
  3483. "align": false,
  3484. "alignLevel": null
  3485. }
  3486. },
  3487. {
  3488. "aliasColors": {},
  3489. "bars": false,
  3490. "dashLength": 10,
  3491. "dashes": false,
  3492. "datasource": "Prometheus",
  3493. "decimals": 2,
  3494. "editable": true,
  3495. "error": false,
  3496. "fieldConfig": {
  3497. "defaults": {
  3498. "custom": {}
  3499. },
  3500. "overrides": []
  3501. },
  3502. "fill": 2,
  3503. "fillGradient": 0,
  3504. "grid": {},
  3505. "gridPos": {
  3506. "h": 7,
  3507. "w": 12,
  3508. "x": 12,
  3509. "y": 113
  3510. },
  3511. "hiddenSeries": false,
  3512. "id": 41,
  3513. "legend": {
  3514. "alignAsTable": true,
  3515. "avg": true,
  3516. "current": false,
  3517. "max": true,
  3518. "min": true,
  3519. "rightSide": false,
  3520. "show": true,
  3521. "sortDesc": true,
  3522. "total": false,
  3523. "values": true
  3524. },
  3525. "lines": true,
  3526. "linewidth": 2,
  3527. "links": [],
  3528. "nullPointMode": "null",
  3529. "options": {
  3530. "alertThreshold": true
  3531. },
  3532. "percentage": false,
  3533. "pluginVersion": "7.3.7",
  3534. "pointradius": 5,
  3535. "points": false,
  3536. "renderer": "flot",
  3537. "seriesOverrides": [],
  3538. "spaceLength": 10,
  3539. "stack": false,
  3540. "steppedLine": false,
  3541. "targets": [
  3542. {
  3543. "calculatedInterval": "2m",
  3544. "datasourceErrors": {},
  3545. "errors": {},
  3546. "expr": "mysql_global_status_open_files{instance=\"$host\"}",
  3547. "interval": "$interval",
  3548. "intervalFactor": 1,
  3549. "legendFormat": "Open Files",
  3550. "metric": "",
  3551. "refId": "A",
  3552. "step": 20
  3553. },
  3554. {
  3555. "calculatedInterval": "2m",
  3556. "datasourceErrors": {},
  3557. "errors": {},
  3558. "expr": "mysql_global_variables_open_files_limit{instance=\"$host\"}",
  3559. "interval": "$interval",
  3560. "intervalFactor": 1,
  3561. "legendFormat": "Open Files Limit",
  3562. "metric": "",
  3563. "refId": "D",
  3564. "step": 20
  3565. },
  3566. {
  3567. "expr": "mysql_global_status_innodb_num_open_files{instance=\"$host\"}",
  3568. "interval": "$interval",
  3569. "intervalFactor": 1,
  3570. "legendFormat": "InnoDB Open Files",
  3571. "refId": "B",
  3572. "step": 20
  3573. }
  3574. ],
  3575. "thresholds": [],
  3576. "timeFrom": null,
  3577. "timeRegions": [],
  3578. "timeShift": null,
  3579. "title": "MySQL Open Files",
  3580. "tooltip": {
  3581. "msResolution": false,
  3582. "shared": true,
  3583. "sort": 0,
  3584. "value_type": "individual"
  3585. },
  3586. "type": "graph",
  3587. "xaxis": {
  3588. "buckets": null,
  3589. "mode": "time",
  3590. "name": null,
  3591. "show": true,
  3592. "values": []
  3593. },
  3594. "yaxes": [
  3595. {
  3596. "format": "short",
  3597. "logBase": 1,
  3598. "max": null,
  3599. "min": 0,
  3600. "show": true
  3601. },
  3602. {
  3603. "format": "short",
  3604. "logBase": 1,
  3605. "max": null,
  3606. "min": 0,
  3607. "show": true
  3608. }
  3609. ],
  3610. "yaxis": {
  3611. "align": false,
  3612. "alignLevel": null
  3613. }
  3614. },
  3615. {
  3616. "collapsed": false,
  3617. "datasource": null,
  3618. "gridPos": {
  3619. "h": 1,
  3620. "w": 24,
  3621. "x": 0,
  3622. "y": 120
  3623. },
  3624. "id": 393,
  3625. "panels": [],
  3626. "repeat": null,
  3627. "title": "Table Openings",
  3628. "type": "row"
  3629. },
  3630. {
  3631. "aliasColors": {},
  3632. "bars": false,
  3633. "dashLength": 10,
  3634. "dashes": false,
  3635. "datasource": "Prometheus",
  3636. "decimals": 2,
  3637. "description": "**MySQL Table Open Cache Status**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
  3638. "editable": true,
  3639. "error": false,
  3640. "fieldConfig": {
  3641. "defaults": {
  3642. "custom": {}
  3643. },
  3644. "overrides": []
  3645. },
  3646. "fill": 2,
  3647. "fillGradient": 0,
  3648. "grid": {},
  3649. "gridPos": {
  3650. "h": 7,
  3651. "w": 12,
  3652. "x": 0,
  3653. "y": 121
  3654. },
  3655. "hiddenSeries": false,
  3656. "id": 44,
  3657. "legend": {
  3658. "alignAsTable": true,
  3659. "avg": true,
  3660. "current": false,
  3661. "max": true,
  3662. "min": true,
  3663. "rightSide": false,
  3664. "show": true,
  3665. "sort": "avg",
  3666. "sortDesc": true,
  3667. "total": false,
  3668. "values": true
  3669. },
  3670. "lines": true,
  3671. "linewidth": 2,
  3672. "links": [
  3673. {
  3674. "title": "Server Status Variables (table_open_cache)",
  3675. "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
  3676. }
  3677. ],
  3678. "nullPointMode": "null",
  3679. "options": {
  3680. "alertThreshold": true
  3681. },
  3682. "percentage": false,
  3683. "pluginVersion": "7.3.7",
  3684. "pointradius": 5,
  3685. "points": false,
  3686. "renderer": "flot",
  3687. "seriesOverrides": [
  3688. {
  3689. "alias": "Table Open Cache Hit Ratio",
  3690. "yaxis": 2
  3691. }
  3692. ],
  3693. "spaceLength": 10,
  3694. "stack": false,
  3695. "steppedLine": false,
  3696. "targets": [
  3697. {
  3698. "calculatedInterval": "2m",
  3699. "datasourceErrors": {},
  3700. "errors": {},
  3701. "expr": "rate(mysql_global_status_opened_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_tables{instance=\"$host\"}[5m])",
  3702. "format": "time_series",
  3703. "interval": "$interval",
  3704. "intervalFactor": 1,
  3705. "legendFormat": "Openings",
  3706. "metric": "",
  3707. "refId": "A",
  3708. "step": 20
  3709. },
  3710. {
  3711. "expr": "rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m])",
  3712. "format": "time_series",
  3713. "interval": "$interval",
  3714. "intervalFactor": 1,
  3715. "legendFormat": "Hits",
  3716. "refId": "B",
  3717. "step": 20
  3718. },
  3719. {
  3720. "expr": "rate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[5m])",
  3721. "format": "time_series",
  3722. "interval": "$interval",
  3723. "intervalFactor": 1,
  3724. "legendFormat": "Misses",
  3725. "refId": "C",
  3726. "step": 20
  3727. },
  3728. {
  3729. "expr": "rate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[5m])",
  3730. "format": "time_series",
  3731. "interval": "$interval",
  3732. "intervalFactor": 1,
  3733. "legendFormat": "Misses due to Overflows",
  3734. "refId": "D",
  3735. "step": 20
  3736. },
  3737. {
  3738. "expr": "(rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m]))/((rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m]))+(rate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[5m])))",
  3739. "format": "time_series",
  3740. "interval": "$interval",
  3741. "intervalFactor": 1,
  3742. "legendFormat": "Table Open Cache Hit Ratio",
  3743. "refId": "E",
  3744. "step": 20
  3745. }
  3746. ],
  3747. "thresholds": [],
  3748. "timeFrom": null,
  3749. "timeRegions": [],
  3750. "timeShift": null,
  3751. "title": "MySQL Table Open Cache Status",
  3752. "tooltip": {
  3753. "msResolution": false,
  3754. "shared": true,
  3755. "sort": 0,
  3756. "value_type": "individual"
  3757. },
  3758. "type": "graph",
  3759. "xaxis": {
  3760. "buckets": null,
  3761. "mode": "time",
  3762. "name": null,
  3763. "show": true,
  3764. "values": []
  3765. },
  3766. "yaxes": [
  3767. {
  3768. "format": "short",
  3769. "logBase": 1,
  3770. "max": null,
  3771. "min": 0,
  3772. "show": true
  3773. },
  3774. {
  3775. "format": "percentunit",
  3776. "logBase": 1,
  3777. "max": null,
  3778. "min": 0,
  3779. "show": true
  3780. }
  3781. ],
  3782. "yaxis": {
  3783. "align": false,
  3784. "alignLevel": null
  3785. }
  3786. },
  3787. {
  3788. "aliasColors": {},
  3789. "bars": false,
  3790. "dashLength": 10,
  3791. "dashes": false,
  3792. "datasource": "Prometheus",
  3793. "decimals": 2,
  3794. "description": "**MySQL Open Tables**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
  3795. "editable": true,
  3796. "error": false,
  3797. "fieldConfig": {
  3798. "defaults": {
  3799. "custom": {}
  3800. },
  3801. "overrides": []
  3802. },
  3803. "fill": 2,
  3804. "fillGradient": 0,
  3805. "grid": {},
  3806. "gridPos": {
  3807. "h": 7,
  3808. "w": 12,
  3809. "x": 12,
  3810. "y": 121
  3811. },
  3812. "hiddenSeries": false,
  3813. "id": 42,
  3814. "legend": {
  3815. "alignAsTable": true,
  3816. "avg": true,
  3817. "current": false,
  3818. "max": true,
  3819. "min": true,
  3820. "rightSide": false,
  3821. "show": true,
  3822. "sort": "avg",
  3823. "sortDesc": true,
  3824. "total": false,
  3825. "values": true
  3826. },
  3827. "lines": true,
  3828. "linewidth": 2,
  3829. "links": [
  3830. {
  3831. "title": "Server Status Variables (table_open_cache)",
  3832. "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
  3833. }
  3834. ],
  3835. "nullPointMode": "null",
  3836. "options": {
  3837. "alertThreshold": true
  3838. },
  3839. "percentage": false,
  3840. "pluginVersion": "7.3.7",
  3841. "pointradius": 5,
  3842. "points": false,
  3843. "renderer": "flot",
  3844. "seriesOverrides": [],
  3845. "spaceLength": 10,
  3846. "stack": false,
  3847. "steppedLine": false,
  3848. "targets": [
  3849. {
  3850. "calculatedInterval": "2m",
  3851. "datasourceErrors": {},
  3852. "errors": {},
  3853. "expr": "mysql_global_status_open_tables{instance=\"$host\"}",
  3854. "format": "time_series",
  3855. "interval": "$interval",
  3856. "intervalFactor": 1,
  3857. "legendFormat": "Open Tables",
  3858. "metric": "",
  3859. "refId": "B",
  3860. "step": 20
  3861. },
  3862. {
  3863. "calculatedInterval": "2m",
  3864. "datasourceErrors": {},
  3865. "errors": {},
  3866. "expr": "mysql_global_variables_table_open_cache{instance=\"$host\"}",
  3867. "format": "time_series",
  3868. "interval": "$interval",
  3869. "intervalFactor": 1,
  3870. "legendFormat": "Table Open Cache",
  3871. "metric": "",
  3872. "refId": "C",
  3873. "step": 20
  3874. }
  3875. ],
  3876. "thresholds": [],
  3877. "timeFrom": null,
  3878. "timeRegions": [],
  3879. "timeShift": null,
  3880. "title": "MySQL Open Tables",
  3881. "tooltip": {
  3882. "msResolution": false,
  3883. "shared": true,
  3884. "sort": 0,
  3885. "value_type": "individual"
  3886. },
  3887. "type": "graph",
  3888. "xaxis": {
  3889. "buckets": null,
  3890. "mode": "time",
  3891. "name": null,
  3892. "show": true,
  3893. "values": []
  3894. },
  3895. "yaxes": [
  3896. {
  3897. "format": "short",
  3898. "logBase": 1,
  3899. "max": null,
  3900. "min": 0,
  3901. "show": true
  3902. },
  3903. {
  3904. "format": "short",
  3905. "logBase": 1,
  3906. "max": null,
  3907. "min": 0,
  3908. "show": true
  3909. }
  3910. ],
  3911. "yaxis": {
  3912. "align": false,
  3913. "alignLevel": null
  3914. }
  3915. },
  3916. {
  3917. "collapsed": false,
  3918. "datasource": null,
  3919. "gridPos": {
  3920. "h": 1,
  3921. "w": 24,
  3922. "x": 0,
  3923. "y": 128
  3924. },
  3925. "id": 394,
  3926. "panels": [],
  3927. "repeat": null,
  3928. "title": "MySQL Table Definition Cache",
  3929. "type": "row"
  3930. },
  3931. {
  3932. "aliasColors": {},
  3933. "bars": false,
  3934. "dashLength": 10,
  3935. "dashes": false,
  3936. "datasource": "Prometheus",
  3937. "decimals": 2,
  3938. "description": "**MySQL Table Definition Cache**\n\nThe recommendation is to set the `table_open_cache_instances` to a loose correlation to virtual CPUs, keeping in mind that more instances means the cache is split more times. If you have a cache set to 500 but it has 10 instances, each cache will only have 50 cached.\n\nThe `table_definition_cache` and `table_open_cache` can be left as default as they are auto-sized MySQL 5.6 and above (ie: do not set them to any value).",
  3939. "editable": true,
  3940. "error": false,
  3941. "fieldConfig": {
  3942. "defaults": {
  3943. "custom": {}
  3944. },
  3945. "overrides": []
  3946. },
  3947. "fill": 2,
  3948. "fillGradient": 0,
  3949. "grid": {},
  3950. "gridPos": {
  3951. "h": 7,
  3952. "w": 24,
  3953. "x": 0,
  3954. "y": 129
  3955. },
  3956. "hiddenSeries": false,
  3957. "id": 54,
  3958. "legend": {
  3959. "alignAsTable": true,
  3960. "avg": true,
  3961. "current": false,
  3962. "max": true,
  3963. "min": true,
  3964. "rightSide": false,
  3965. "show": true,
  3966. "sort": "avg",
  3967. "sortDesc": true,
  3968. "total": false,
  3969. "values": true
  3970. },
  3971. "lines": true,
  3972. "linewidth": 2,
  3973. "links": [
  3974. {
  3975. "title": "Server Status Variables (table_open_cache)",
  3976. "url": "http://dev.mysql.com/doc/refman/5.6/en/server-system-variables.html#sysvar_table_open_cache"
  3977. }
  3978. ],
  3979. "nullPointMode": "null",
  3980. "options": {
  3981. "alertThreshold": true
  3982. },
  3983. "percentage": false,
  3984. "pluginVersion": "7.3.7",
  3985. "pointradius": 5,
  3986. "points": false,
  3987. "renderer": "flot",
  3988. "seriesOverrides": [
  3989. {
  3990. "alias": "Opened Table Definitions",
  3991. "yaxis": 2
  3992. }
  3993. ],
  3994. "spaceLength": 10,
  3995. "stack": false,
  3996. "steppedLine": false,
  3997. "targets": [
  3998. {
  3999. "calculatedInterval": "2m",
  4000. "datasourceErrors": {},
  4001. "errors": {},
  4002. "expr": "mysql_global_status_open_table_definitions{instance=\"$host\"}",
  4003. "format": "time_series",
  4004. "interval": "$interval",
  4005. "intervalFactor": 1,
  4006. "legendFormat": "Open Table Definitions",
  4007. "metric": "",
  4008. "refId": "B",
  4009. "step": 20
  4010. },
  4011. {
  4012. "calculatedInterval": "2m",
  4013. "datasourceErrors": {},
  4014. "errors": {},
  4015. "expr": "mysql_global_variables_table_definition_cache{instance=\"$host\"}",
  4016. "format": "time_series",
  4017. "interval": "$interval",
  4018. "intervalFactor": 1,
  4019. "legendFormat": "Table Definitions Cache Size",
  4020. "metric": "",
  4021. "refId": "C",
  4022. "step": 20
  4023. },
  4024. {
  4025. "expr": "rate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[5m])",
  4026. "format": "time_series",
  4027. "interval": "$interval",
  4028. "intervalFactor": 1,
  4029. "legendFormat": "Opened Table Definitions",
  4030. "refId": "A",
  4031. "step": 20
  4032. }
  4033. ],
  4034. "thresholds": [],
  4035. "timeFrom": null,
  4036. "timeRegions": [],
  4037. "timeShift": null,
  4038. "title": "MySQL Table Definition Cache",
  4039. "tooltip": {
  4040. "msResolution": false,
  4041. "shared": true,
  4042. "sort": 0,
  4043. "value_type": "individual"
  4044. },
  4045. "type": "graph",
  4046. "xaxis": {
  4047. "buckets": null,
  4048. "mode": "time",
  4049. "name": null,
  4050. "show": true,
  4051. "values": []
  4052. },
  4053. "yaxes": [
  4054. {
  4055. "format": "short",
  4056. "logBase": 1,
  4057. "max": null,
  4058. "min": 0,
  4059. "show": true
  4060. },
  4061. {
  4062. "format": "short",
  4063. "logBase": 1,
  4064. "max": null,
  4065. "min": 0,
  4066. "show": true
  4067. }
  4068. ],
  4069. "yaxis": {
  4070. "align": false,
  4071. "alignLevel": null
  4072. }
  4073. },
  4074. {
  4075. "collapsed": false,
  4076. "datasource": null,
  4077. "gridPos": {
  4078. "h": 1,
  4079. "w": 24,
  4080. "x": 0,
  4081. "y": 136
  4082. },
  4083. "id": 395,
  4084. "panels": [],
  4085. "repeat": null,
  4086. "title": "System Charts",
  4087. "type": "row"
  4088. },
  4089. {
  4090. "aliasColors": {},
  4091. "bars": false,
  4092. "dashLength": 10,
  4093. "dashes": false,
  4094. "datasource": "Prometheus",
  4095. "decimals": null,
  4096. "editable": true,
  4097. "error": false,
  4098. "fieldConfig": {
  4099. "defaults": {
  4100. "custom": {}
  4101. },
  4102. "overrides": []
  4103. },
  4104. "fill": 2,
  4105. "fillGradient": 0,
  4106. "grid": {},
  4107. "gridPos": {
  4108. "h": 7,
  4109. "w": 8,
  4110. "x": 0,
  4111. "y": 137
  4112. },
  4113. "hiddenSeries": false,
  4114. "id": 31,
  4115. "legend": {
  4116. "alignAsTable": false,
  4117. "avg": true,
  4118. "current": false,
  4119. "hideEmpty": false,
  4120. "max": false,
  4121. "min": false,
  4122. "rightSide": false,
  4123. "show": true,
  4124. "sort": "avg",
  4125. "sortDesc": true,
  4126. "total": false,
  4127. "values": true
  4128. },
  4129. "lines": true,
  4130. "linewidth": 2,
  4131. "links": [],
  4132. "nullPointMode": "null",
  4133. "options": {
  4134. "alertThreshold": true
  4135. },
  4136. "percentage": false,
  4137. "pluginVersion": "7.3.7",
  4138. "pointradius": 5,
  4139. "points": false,
  4140. "renderer": "flot",
  4141. "seriesOverrides": [],
  4142. "spaceLength": 10,
  4143. "stack": false,
  4144. "steppedLine": false,
  4145. "targets": [
  4146. {
  4147. "calculatedInterval": "2s",
  4148. "datasourceErrors": {},
  4149. "errors": {},
  4150. "expr": "rate(node_vmstat_pgpgin{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=\"$host\"}[5m]) * 1024",
  4151. "interval": "$interval",
  4152. "intervalFactor": 1,
  4153. "legendFormat": "Page In",
  4154. "metric": "",
  4155. "refId": "A",
  4156. "step": 20,
  4157. "target": ""
  4158. },
  4159. {
  4160. "calculatedInterval": "2s",
  4161. "datasourceErrors": {},
  4162. "errors": {},
  4163. "expr": "rate(node_vmstat_pgpgout{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{instance=\"$host\"}[5m]) * 1024",
  4164. "interval": "$interval",
  4165. "intervalFactor": 1,
  4166. "legendFormat": "Page Out",
  4167. "metric": "",
  4168. "refId": "B",
  4169. "step": 20,
  4170. "target": ""
  4171. }
  4172. ],
  4173. "thresholds": [],
  4174. "timeFrom": null,
  4175. "timeRegions": [],
  4176. "timeShift": null,
  4177. "title": "I/O Activity",
  4178. "tooltip": {
  4179. "msResolution": false,
  4180. "shared": true,
  4181. "sort": 0,
  4182. "value_type": "individual"
  4183. },
  4184. "type": "graph",
  4185. "xaxis": {
  4186. "buckets": null,
  4187. "mode": "time",
  4188. "name": null,
  4189. "show": true,
  4190. "values": []
  4191. },
  4192. "yaxes": [
  4193. {
  4194. "format": "Bps",
  4195. "label": "",
  4196. "logBase": 1,
  4197. "max": null,
  4198. "min": 0,
  4199. "show": true
  4200. },
  4201. {
  4202. "format": "bytes",
  4203. "logBase": 1,
  4204. "max": null,
  4205. "min": 0,
  4206. "show": true
  4207. }
  4208. ],
  4209. "yaxis": {
  4210. "align": false,
  4211. "alignLevel": null
  4212. }
  4213. },
  4214. {
  4215. "aliasColors": {},
  4216. "bars": false,
  4217. "dashLength": 10,
  4218. "dashes": false,
  4219. "datasource": "Prometheus",
  4220. "decimals": null,
  4221. "editable": true,
  4222. "error": false,
  4223. "fieldConfig": {
  4224. "defaults": {
  4225. "custom": {}
  4226. },
  4227. "overrides": []
  4228. },
  4229. "fill": 6,
  4230. "fillGradient": 0,
  4231. "grid": {},
  4232. "gridPos": {
  4233. "h": 7,
  4234. "w": 8,
  4235. "x": 8,
  4236. "y": 137
  4237. },
  4238. "height": "250px",
  4239. "hiddenSeries": false,
  4240. "id": 37,
  4241. "legend": {
  4242. "alignAsTable": false,
  4243. "avg": true,
  4244. "current": false,
  4245. "hideEmpty": false,
  4246. "max": false,
  4247. "min": false,
  4248. "rightSide": false,
  4249. "show": true,
  4250. "sort": "avg",
  4251. "sortDesc": true,
  4252. "total": false,
  4253. "values": true
  4254. },
  4255. "lines": true,
  4256. "linewidth": 2,
  4257. "links": [],
  4258. "nullPointMode": "null",
  4259. "options": {
  4260. "alertThreshold": true
  4261. },
  4262. "percentage": false,
  4263. "pluginVersion": "7.3.7",
  4264. "pointradius": 5,
  4265. "points": false,
  4266. "renderer": "flot",
  4267. "seriesOverrides": [],
  4268. "spaceLength": 10,
  4269. "stack": true,
  4270. "steppedLine": false,
  4271. "targets": [
  4272. {
  4273. "calculatedInterval": "2s",
  4274. "datasourceErrors": {},
  4275. "errors": {},
  4276. "expr": "node_memory_MemTotal_bytes{instance=\"$host\"} - (node_memory_MemFree_bytes{instance=\"$host\"} + node_memory_Buffers{instance=\"$host\"} + node_memory_Cached{instance=\"$host\"})",
  4277. "interval": "$interval",
  4278. "intervalFactor": 1,
  4279. "legendFormat": "Used",
  4280. "metric": "",
  4281. "refId": "A",
  4282. "step": 20,
  4283. "target": ""
  4284. },
  4285. {
  4286. "calculatedInterval": "2s",
  4287. "datasourceErrors": {},
  4288. "errors": {},
  4289. "expr": "node_memory_MemFree_bytes{instance=\"$host\"}",
  4290. "interval": "$interval",
  4291. "intervalFactor": 1,
  4292. "legendFormat": "Free",
  4293. "metric": "",
  4294. "refId": "B",
  4295. "step": 20,
  4296. "target": ""
  4297. },
  4298. {
  4299. "calculatedInterval": "2s",
  4300. "datasourceErrors": {},
  4301. "errors": {},
  4302. "expr": "node_memory_Buffers{instance=\"$host\"}",
  4303. "interval": "$interval",
  4304. "intervalFactor": 1,
  4305. "legendFormat": "Buffers",
  4306. "metric": "",
  4307. "refId": "D",
  4308. "step": 20,
  4309. "target": ""
  4310. },
  4311. {
  4312. "calculatedInterval": "2s",
  4313. "datasourceErrors": {},
  4314. "errors": {},
  4315. "expr": "node_memory_Cached{instance=\"$host\"}",
  4316. "interval": "$interval",
  4317. "intervalFactor": 1,
  4318. "legendFormat": "Cached",
  4319. "metric": "",
  4320. "refId": "E",
  4321. "step": 20,
  4322. "target": ""
  4323. }
  4324. ],
  4325. "thresholds": [],
  4326. "timeFrom": null,
  4327. "timeRegions": [],
  4328. "timeShift": null,
  4329. "title": "Memory Distribution",
  4330. "tooltip": {
  4331. "msResolution": false,
  4332. "shared": true,
  4333. "sort": 0,
  4334. "value_type": "individual"
  4335. },
  4336. "type": "graph",
  4337. "xaxis": {
  4338. "buckets": null,
  4339. "mode": "time",
  4340. "name": null,
  4341. "show": true,
  4342. "values": []
  4343. },
  4344. "yaxes": [
  4345. {
  4346. "format": "bytes",
  4347. "label": "",
  4348. "logBase": 1,
  4349. "max": null,
  4350. "min": 0,
  4351. "show": true
  4352. },
  4353. {
  4354. "format": "bytes",
  4355. "logBase": 1,
  4356. "max": null,
  4357. "min": 0,
  4358. "show": true
  4359. }
  4360. ],
  4361. "yaxis": {
  4362. "align": false,
  4363. "alignLevel": null
  4364. }
  4365. },
  4366. {
  4367. "aliasColors": {
  4368. "Load 1m": "#58140C",
  4369. "Max Core Utilization": "#bf1b00",
  4370. "iowait": "#e24d42",
  4371. "nice": "#1f78c1",
  4372. "softirq": "#806eb7",
  4373. "system": "#eab839",
  4374. "user": "#508642"
  4375. },
  4376. "bars": false,
  4377. "dashLength": 10,
  4378. "dashes": false,
  4379. "datasource": "Prometheus",
  4380. "decimals": null,
  4381. "editable": true,
  4382. "error": false,
  4383. "fieldConfig": {
  4384. "defaults": {
  4385. "custom": {}
  4386. },
  4387. "overrides": []
  4388. },
  4389. "fill": 6,
  4390. "fillGradient": 0,
  4391. "grid": {},
  4392. "gridPos": {
  4393. "h": 7,
  4394. "w": 8,
  4395. "x": 16,
  4396. "y": 137
  4397. },
  4398. "height": "",
  4399. "hiddenSeries": false,
  4400. "id": 2,
  4401. "legend": {
  4402. "alignAsTable": false,
  4403. "avg": true,
  4404. "current": false,
  4405. "hideEmpty": true,
  4406. "hideZero": true,
  4407. "max": false,
  4408. "min": false,
  4409. "rightSide": false,
  4410. "show": true,
  4411. "sort": "avg",
  4412. "sortDesc": true,
  4413. "total": false,
  4414. "values": true
  4415. },
  4416. "lines": true,
  4417. "linewidth": 2,
  4418. "links": [],
  4419. "nullPointMode": "null",
  4420. "options": {
  4421. "alertThreshold": true
  4422. },
  4423. "percentage": false,
  4424. "pluginVersion": "7.3.7",
  4425. "pointradius": 5,
  4426. "points": false,
  4427. "renderer": "flot",
  4428. "seriesOverrides": [
  4429. {
  4430. "alias": "Max Core Utilization",
  4431. "lines": false,
  4432. "pointradius": 1,
  4433. "points": true,
  4434. "stack": false
  4435. },
  4436. {
  4437. "alias": "Load 1m",
  4438. "color": "#58140C",
  4439. "fill": 2,
  4440. "stack": false,
  4441. "yaxis": 2
  4442. }
  4443. ],
  4444. "spaceLength": 10,
  4445. "stack": true,
  4446. "steppedLine": false,
  4447. "targets": [
  4448. {
  4449. "calculatedInterval": "2s",
  4450. "datasourceErrors": {},
  4451. "errors": {},
  4452. "expr": "clamp_max(((avg by (mode) ( (clamp_max(rate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\"}[5m]),1)) ))*100 or (avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[$interval]) or avg_over_time(node_cpu_seconds_total_average{instance=~\"$host\", mode!=\"total\", mode!=\"idle\"}[5m]))),100)",
  4453. "format": "time_series",
  4454. "hide": false,
  4455. "interval": "$interval",
  4456. "intervalFactor": 1,
  4457. "legendFormat": "{{ mode }}",
  4458. "metric": "",
  4459. "refId": "A",
  4460. "step": 20
  4461. },
  4462. {
  4463. "expr": "clamp_max(max by () (sum by (cpu) ( (clamp_max(rate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\",mode!=\"iowait\"}[$interval]),1)) or (clamp_max(irate(node_cpu_seconds_total{instance=\"$host\",mode!=\"idle\",mode!=\"iowait\"}[5m]),1)) ))*100,100)",
  4464. "format": "time_series",
  4465. "hide": true,
  4466. "interval": "$interval",
  4467. "intervalFactor": 1,
  4468. "legendFormat": "Max Core Utilization",
  4469. "refId": "B",
  4470. "step": 20
  4471. },
  4472. {
  4473. "expr": "node_load1{instance=\"$host\"}",
  4474. "format": "time_series",
  4475. "hide": false,
  4476. "intervalFactor": 2,
  4477. "legendFormat": "Load 1m",
  4478. "refId": "C"
  4479. }
  4480. ],
  4481. "thresholds": [],
  4482. "timeFrom": null,
  4483. "timeRegions": [],
  4484. "timeShift": null,
  4485. "title": "CPU Usage / Load",
  4486. "tooltip": {
  4487. "msResolution": false,
  4488. "shared": true,
  4489. "sort": 0,
  4490. "value_type": "individual"
  4491. },
  4492. "type": "graph",
  4493. "xaxis": {
  4494. "buckets": null,
  4495. "mode": "time",
  4496. "name": null,
  4497. "show": true,
  4498. "values": []
  4499. },
  4500. "yaxes": [
  4501. {
  4502. "decimals": 1,
  4503. "format": "percent",
  4504. "label": "",
  4505. "logBase": 1,
  4506. "max": 100,
  4507. "min": 0,
  4508. "show": true
  4509. },
  4510. {
  4511. "format": "none",
  4512. "logBase": 1,
  4513. "max": null,
  4514. "min": 0,
  4515. "show": true
  4516. }
  4517. ],
  4518. "yaxis": {
  4519. "align": false,
  4520. "alignLevel": null
  4521. }
  4522. },
  4523. {
  4524. "aliasColors": {},
  4525. "bars": false,
  4526. "dashLength": 10,
  4527. "dashes": false,
  4528. "datasource": "Prometheus",
  4529. "decimals": 2,
  4530. "editable": true,
  4531. "error": false,
  4532. "fieldConfig": {
  4533. "defaults": {
  4534. "custom": {}
  4535. },
  4536. "overrides": []
  4537. },
  4538. "fill": 2,
  4539. "fillGradient": 0,
  4540. "grid": {},
  4541. "gridPos": {
  4542. "h": 7,
  4543. "w": 8,
  4544. "x": 0,
  4545. "y": 144
  4546. },
  4547. "height": "250px",
  4548. "hiddenSeries": false,
  4549. "id": 36,
  4550. "legend": {
  4551. "alignAsTable": false,
  4552. "avg": true,
  4553. "current": false,
  4554. "hideEmpty": true,
  4555. "hideZero": true,
  4556. "max": false,
  4557. "min": false,
  4558. "rightSide": false,
  4559. "show": true,
  4560. "total": false,
  4561. "values": true
  4562. },
  4563. "lines": false,
  4564. "linewidth": 2,
  4565. "links": [],
  4566. "nullPointMode": "null",
  4567. "options": {
  4568. "alertThreshold": true
  4569. },
  4570. "percentage": false,
  4571. "pluginVersion": "7.3.7",
  4572. "pointradius": 1,
  4573. "points": true,
  4574. "renderer": "flot",
  4575. "seriesOverrides": [],
  4576. "spaceLength": 10,
  4577. "stack": false,
  4578. "steppedLine": false,
  4579. "targets": [
  4580. {
  4581. "calculatedInterval": "2m",
  4582. "datasourceErrors": {},
  4583. "errors": {},
  4584. "expr": "sum((rate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_read_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_reads_completed_total{device!~\"dm-.+\", instance=\"$host\"}[5m]))\nor avg_over_time(aws_rds_read_latency_average{instance=\"$host\"}[$interval]) or avg_over_time(aws_rds_read_latency_average{instance=\"$host\"}[5m]))",
  4585. "format": "time_series",
  4586. "interval": "$interval",
  4587. "intervalFactor": 1,
  4588. "legendFormat": "Read",
  4589. "metric": "",
  4590. "refId": "A",
  4591. "step": 20,
  4592. "target": ""
  4593. },
  4594. {
  4595. "calculatedInterval": "2m",
  4596. "datasourceErrors": {},
  4597. "errors": {},
  4598. "expr": "sum((rate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_write_time_seconds_total{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_writes_completed_total{device!~\"dm-.+\", instance=\"$host\"}[5m])) or \navg_over_time(aws_rds_write_latency_average{instance=\"$host\"}[$interval]) or avg_over_time(aws_rds_write_latency_average{instance=\"$host\"}[5m]))",
  4599. "format": "time_series",
  4600. "interval": "$interval",
  4601. "intervalFactor": 1,
  4602. "legendFormat": "Write",
  4603. "metric": "",
  4604. "refId": "B",
  4605. "step": 20,
  4606. "target": ""
  4607. }
  4608. ],
  4609. "thresholds": [],
  4610. "timeFrom": null,
  4611. "timeRegions": [],
  4612. "timeShift": null,
  4613. "title": "Disk Latency",
  4614. "tooltip": {
  4615. "msResolution": false,
  4616. "shared": true,
  4617. "sort": 0,
  4618. "value_type": "individual"
  4619. },
  4620. "type": "graph",
  4621. "xaxis": {
  4622. "buckets": null,
  4623. "mode": "time",
  4624. "name": null,
  4625. "show": true,
  4626. "values": []
  4627. },
  4628. "yaxes": [
  4629. {
  4630. "format": "ms",
  4631. "label": "",
  4632. "logBase": 2,
  4633. "max": null,
  4634. "min": null,
  4635. "show": true
  4636. },
  4637. {
  4638. "format": "ms",
  4639. "label": "",
  4640. "logBase": 1,
  4641. "max": null,
  4642. "min": 0,
  4643. "show": true
  4644. }
  4645. ],
  4646. "yaxis": {
  4647. "align": false,
  4648. "alignLevel": null
  4649. }
  4650. },
  4651. {
  4652. "aliasColors": {},
  4653. "bars": false,
  4654. "dashLength": 10,
  4655. "dashes": false,
  4656. "datasource": "Prometheus",
  4657. "decimals": null,
  4658. "editable": true,
  4659. "error": false,
  4660. "fieldConfig": {
  4661. "defaults": {
  4662. "custom": {}
  4663. },
  4664. "overrides": []
  4665. },
  4666. "fill": 2,
  4667. "fillGradient": 0,
  4668. "grid": {},
  4669. "gridPos": {
  4670. "h": 7,
  4671. "w": 8,
  4672. "x": 8,
  4673. "y": 144
  4674. },
  4675. "height": "250px",
  4676. "hiddenSeries": false,
  4677. "id": 21,
  4678. "legend": {
  4679. "alignAsTable": false,
  4680. "avg": true,
  4681. "current": false,
  4682. "hideEmpty": false,
  4683. "max": false,
  4684. "min": false,
  4685. "rightSide": false,
  4686. "show": true,
  4687. "sort": "avg",
  4688. "sortDesc": true,
  4689. "total": false,
  4690. "values": true
  4691. },
  4692. "lines": true,
  4693. "linewidth": 2,
  4694. "links": [],
  4695. "nullPointMode": "null",
  4696. "options": {
  4697. "alertThreshold": true
  4698. },
  4699. "percentage": false,
  4700. "pluginVersion": "7.3.7",
  4701. "pointradius": 5,
  4702. "points": false,
  4703. "renderer": "flot",
  4704. "seriesOverrides": [
  4705. {
  4706. "alias": "Outbound",
  4707. "transform": "negative-Y"
  4708. }
  4709. ],
  4710. "spaceLength": 10,
  4711. "stack": false,
  4712. "steppedLine": false,
  4713. "targets": [
  4714. {
  4715. "calculatedInterval": "2s",
  4716. "datasourceErrors": {},
  4717. "errors": {},
  4718. "expr": "sum(rate(node_network_receive_bytes_total{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_receive_bytes_total{instance=\"$host\", device!=\"lo\"}[5m])) or sum(max_over_time(rdsosmetrics_network_rx{instance=\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_rx{instance=\"$host\"}[5m])) ",
  4719. "format": "time_series",
  4720. "interval": "$interval",
  4721. "intervalFactor": 1,
  4722. "legendFormat": "Inbound",
  4723. "metric": "",
  4724. "refId": "B",
  4725. "step": 20,
  4726. "target": ""
  4727. },
  4728. {
  4729. "calculatedInterval": "2s",
  4730. "datasourceErrors": {},
  4731. "errors": {},
  4732. "expr": "sum(rate(node_network_transmit_bytes_total{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_transmit_bytes_total{instance=\"$host\", device!=\"lo\"}[5m])) or\nsum(max_over_time(rdsosmetrics_network_tx{instance=\"$host\"}[$interval])) or sum(max_over_time(rdsosmetrics_network_tx{instance=\"$host\"}[5m]))",
  4733. "format": "time_series",
  4734. "interval": "$interval",
  4735. "intervalFactor": 1,
  4736. "legendFormat": "Outbound",
  4737. "metric": "",
  4738. "refId": "A",
  4739. "step": 20,
  4740. "target": ""
  4741. }
  4742. ],
  4743. "thresholds": [],
  4744. "timeFrom": null,
  4745. "timeRegions": [],
  4746. "timeShift": null,
  4747. "title": "Network Traffic",
  4748. "tooltip": {
  4749. "msResolution": false,
  4750. "shared": true,
  4751. "sort": 0,
  4752. "value_type": "individual"
  4753. },
  4754. "type": "graph",
  4755. "xaxis": {
  4756. "buckets": null,
  4757. "mode": "time",
  4758. "name": null,
  4759. "show": true,
  4760. "values": []
  4761. },
  4762. "yaxes": [
  4763. {
  4764. "format": "Bps",
  4765. "label": "",
  4766. "logBase": 1,
  4767. "max": null,
  4768. "min": null,
  4769. "show": true
  4770. },
  4771. {
  4772. "format": "bytes",
  4773. "logBase": 1,
  4774. "max": null,
  4775. "min": 0,
  4776. "show": true
  4777. }
  4778. ],
  4779. "yaxis": {
  4780. "align": false,
  4781. "alignLevel": null
  4782. }
  4783. },
  4784. {
  4785. "aliasColors": {},
  4786. "bars": false,
  4787. "dashLength": 10,
  4788. "dashes": false,
  4789. "datasource": "Prometheus",
  4790. "decimals": null,
  4791. "editable": true,
  4792. "error": false,
  4793. "fieldConfig": {
  4794. "defaults": {
  4795. "custom": {}
  4796. },
  4797. "overrides": []
  4798. },
  4799. "fill": 2,
  4800. "fillGradient": 0,
  4801. "grid": {},
  4802. "gridPos": {
  4803. "h": 7,
  4804. "w": 8,
  4805. "x": 16,
  4806. "y": 144
  4807. },
  4808. "hiddenSeries": false,
  4809. "id": 38,
  4810. "legend": {
  4811. "alignAsTable": false,
  4812. "avg": true,
  4813. "current": false,
  4814. "hideEmpty": false,
  4815. "max": false,
  4816. "min": false,
  4817. "rightSide": false,
  4818. "show": true,
  4819. "sort": "avg",
  4820. "sortDesc": true,
  4821. "total": false,
  4822. "values": true
  4823. },
  4824. "lines": true,
  4825. "linewidth": 2,
  4826. "links": [],
  4827. "nullPointMode": "null",
  4828. "options": {
  4829. "alertThreshold": true
  4830. },
  4831. "percentage": false,
  4832. "pluginVersion": "7.3.7",
  4833. "pointradius": 5,
  4834. "points": false,
  4835. "renderer": "flot",
  4836. "seriesOverrides": [],
  4837. "spaceLength": 10,
  4838. "stack": false,
  4839. "steppedLine": false,
  4840. "targets": [
  4841. {
  4842. "calculatedInterval": "2s",
  4843. "datasourceErrors": {},
  4844. "errors": {},
  4845. "expr": "rate(node_vmstat_pswpin{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=\"$host\"}[5m]) * 4096",
  4846. "interval": "$interval",
  4847. "intervalFactor": 1,
  4848. "legendFormat": "Swap In (Reads)",
  4849. "metric": "",
  4850. "refId": "A",
  4851. "step": 20,
  4852. "target": ""
  4853. },
  4854. {
  4855. "calculatedInterval": "2s",
  4856. "datasourceErrors": {},
  4857. "errors": {},
  4858. "expr": "rate(node_vmstat_pswpout{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=\"$host\"}[5m]) * 4096",
  4859. "interval": "$interval",
  4860. "intervalFactor": 1,
  4861. "legendFormat": "Swap Out (Writes)",
  4862. "metric": "",
  4863. "refId": "B",
  4864. "step": 20,
  4865. "target": ""
  4866. }
  4867. ],
  4868. "thresholds": [],
  4869. "timeFrom": null,
  4870. "timeRegions": [],
  4871. "timeShift": null,
  4872. "title": "Swap Activity",
  4873. "tooltip": {
  4874. "msResolution": false,
  4875. "shared": true,
  4876. "sort": 0,
  4877. "value_type": "individual"
  4878. },
  4879. "type": "graph",
  4880. "xaxis": {
  4881. "buckets": null,
  4882. "mode": "time",
  4883. "name": null,
  4884. "show": true,
  4885. "values": []
  4886. },
  4887. "yaxes": [
  4888. {
  4889. "format": "Bps",
  4890. "label": "",
  4891. "logBase": 1,
  4892. "max": null,
  4893. "min": 0,
  4894. "show": true
  4895. },
  4896. {
  4897. "format": "bytes",
  4898. "logBase": 1,
  4899. "max": null,
  4900. "min": 0,
  4901. "show": true
  4902. }
  4903. ],
  4904. "yaxis": {
  4905. "align": false,
  4906. "alignLevel": null
  4907. }
  4908. }
  4909. ],
  4910. "refresh": "1m",
  4911. "schemaVersion": 26,
  4912. "style": "dark",
  4913. "tags": [
  4914. "MySQL"
  4915. ],
  4916. "templating": {
  4917. "list": [
  4918. {
  4919. "allFormat": "glob",
  4920. "auto": true,
  4921. "auto_count": 200,
  4922. "auto_min": "1s",
  4923. "current": {
  4924. "selected": false,
  4925. "text": "auto",
  4926. "value": "$__auto_interval_interval"
  4927. },
  4928. "datasource": "Prometheus",
  4929. "error": null,
  4930. "hide": 0,
  4931. "includeAll": false,
  4932. "label": "Interval",
  4933. "multi": false,
  4934. "multiFormat": "glob",
  4935. "name": "interval",
  4936. "options": [
  4937. {
  4938. "selected": true,
  4939. "text": "auto",
  4940. "value": "$__auto_interval_interval"
  4941. },
  4942. {
  4943. "selected": false,
  4944. "text": "1s",
  4945. "value": "1s"
  4946. },
  4947. {
  4948. "selected": false,
  4949. "text": "5s",
  4950. "value": "5s"
  4951. },
  4952. {
  4953. "selected": false,
  4954. "text": "1m",
  4955. "value": "1m"
  4956. },
  4957. {
  4958. "selected": false,
  4959. "text": "5m",
  4960. "value": "5m"
  4961. },
  4962. {
  4963. "selected": false,
  4964. "text": "1h",
  4965. "value": "1h"
  4966. },
  4967. {
  4968. "selected": false,
  4969. "text": "6h",
  4970. "value": "6h"
  4971. },
  4972. {
  4973. "selected": false,
  4974. "text": "1d",
  4975. "value": "1d"
  4976. }
  4977. ],
  4978. "query": "1s,5s,1m,5m,1h,6h,1d",
  4979. "refresh": 2,
  4980. "skipUrlSync": false,
  4981. "type": "interval"
  4982. },
  4983. {
  4984. "allFormat": "glob",
  4985. "allValue": null,
  4986. "current": {
  4987. "selected": false,
  4988. "text": "mysqld-exporter",
  4989. "value": "mysqld-exporter"
  4990. },
  4991. "datasource": "Prometheus",
  4992. "definition": "",
  4993. "error": null,
  4994. "hide": 0,
  4995. "includeAll": false,
  4996. "label": "Host",
  4997. "multi": false,
  4998. "multiFormat": "regex values",
  4999. "name": "host",
  5000. "options": [],
  5001. "query": "label_values(mysql_up, instance)",
  5002. "refresh": 1,
  5003. "refresh_on_load": false,
  5004. "regex": "",
  5005. "skipUrlSync": false,
  5006. "sort": 1,
  5007. "tagValuesQuery": null,
  5008. "tags": [],
  5009. "tagsQuery": null,
  5010. "type": "query",
  5011. "useTags": false
  5012. }
  5013. ]
  5014. },
  5015. "time": {
  5016. "from": "now-5m",
  5017. "to": "now"
  5018. },
  5019. "timepicker": {
  5020. "collapse": false,
  5021. "enable": true,
  5022. "hidden": false,
  5023. "notice": false,
  5024. "now": true,
  5025. "refresh_intervals": [
  5026. "5s",
  5027. "10s",
  5028. "30s",
  5029. "1m",
  5030. "5m",
  5031. "15m",
  5032. "30m",
  5033. "1h",
  5034. "2h",
  5035. "1d"
  5036. ],
  5037. "status": "Stable",
  5038. "time_options": [
  5039. "5m",
  5040. "15m",
  5041. "1h",
  5042. "6h",
  5043. "12h",
  5044. "24h",
  5045. "2d",
  5046. "7d",
  5047. "30d"
  5048. ],
  5049. "type": "timepicker"
  5050. },
  5051. "timezone": "browser",
  5052. "title": "BladeX监控大屏--MySql",
  5053. "uid": "bladex-mysql",
  5054. "version": 1
  5055. }