bladex-mysql.json 134 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056
  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": "Kd",
  36. "tooltip": "",
  37. "type": "link",
  38. "url": "https://jd.com"
  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": " 监控大屏--MySql",
  5053. "uid": "kd-mysql",
  5054. "version": 1
  5055. }