MySQL_Overview.json 172 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "graphTooltip": 1,
  8. "hideControls": true,
  9. "id": null,
  10. "links": [
  11. {
  12. "icon": "bolt",
  13. "includeVars": true,
  14. "keepTime": true,
  15. "tags": [],
  16. "targetBlank": true,
  17. "title": "Query Analytics",
  18. "type": "link",
  19. "url": "/graph/dashboard/db/_pmm-query-analytics"
  20. },
  21. {
  22. "asDropdown": true,
  23. "icon": "external link",
  24. "includeVars": true,
  25. "keepTime": true,
  26. "tags": [
  27. "OS"
  28. ],
  29. "targetBlank": true,
  30. "title": "OS",
  31. "type": "dashboards"
  32. },
  33. {
  34. "asDropdown": true,
  35. "icon": "external link",
  36. "includeVars": true,
  37. "keepTime": true,
  38. "tags": [
  39. "MySQL"
  40. ],
  41. "targetBlank": true,
  42. "title": "MySQL",
  43. "type": "dashboards"
  44. },
  45. {
  46. "asDropdown": true,
  47. "icon": "external link",
  48. "includeVars": true,
  49. "keepTime": true,
  50. "tags": [
  51. "HA"
  52. ],
  53. "targetBlank": true,
  54. "title": "HA",
  55. "type": "dashboards"
  56. }
  57. ],
  58. "refresh": "1m",
  59. "rows": [
  60. {
  61. "collapse": false,
  62. "height": "125px",
  63. "panels": [
  64. {
  65. "cacheTimeout": null,
  66. "colorBackground": false,
  67. "colorValue": true,
  68. "colors": [
  69. "rgba(245, 54, 54, 0.9)",
  70. "rgba(237, 129, 40, 0.89)",
  71. "rgba(50, 172, 45, 0.97)"
  72. ],
  73. "datasource": "Prometheus",
  74. "decimals": 1,
  75. "description": "The amount of time since the MySQL server process was started.",
  76. "editable": true,
  77. "error": false,
  78. "format": "s",
  79. "gauge": {
  80. "maxValue": 100,
  81. "minValue": 0,
  82. "show": false,
  83. "thresholdLabels": false,
  84. "thresholdMarkers": true
  85. },
  86. "height": "125px",
  87. "id": 12,
  88. "interval": "$interval",
  89. "links": [],
  90. "mappingType": 1,
  91. "mappingTypes": [
  92. {
  93. "name": "value to text",
  94. "value": 1
  95. },
  96. {
  97. "name": "range to text",
  98. "value": 2
  99. }
  100. ],
  101. "maxDataPoints": 100,
  102. "nullPointMode": "connected",
  103. "nullText": null,
  104. "postfix": "s",
  105. "postfixFontSize": "80%",
  106. "prefix": "",
  107. "prefixFontSize": "80%",
  108. "rangeMaps": [
  109. {
  110. "from": "null",
  111. "text": "N/A",
  112. "to": "null"
  113. }
  114. ],
  115. "span": 3,
  116. "sparkline": {
  117. "fillColor": "rgba(31, 118, 189, 0.18)",
  118. "full": false,
  119. "lineColor": "rgb(31, 120, 193)",
  120. "show": false
  121. },
  122. "tableColumn": "",
  123. "targets": [
  124. {
  125. "calculatedInterval": "10m",
  126. "datasourceErrors": {},
  127. "errors": {},
  128. "expr": "mysql_global_status_uptime{instance=\"$host\"}",
  129. "interval": "5m",
  130. "intervalFactor": 1,
  131. "legendFormat": "",
  132. "metric": "",
  133. "refId": "A",
  134. "step": 300
  135. }
  136. ],
  137. "thresholds": "300,3600",
  138. "title": "MySQL Uptime",
  139. "transparent": false,
  140. "type": "singlestat",
  141. "valueFontSize": "80%",
  142. "valueMaps": [],
  143. "valueName": "current"
  144. },
  145. {
  146. "cacheTimeout": null,
  147. "colorBackground": false,
  148. "colorValue": false,
  149. "colors": [
  150. "rgba(245, 54, 54, 0.9)",
  151. "rgba(237, 129, 40, 0.89)",
  152. "rgba(50, 172, 45, 0.97)"
  153. ],
  154. "datasource": "Prometheus",
  155. "decimals": 2,
  156. "description": "The number of queries executed by the server during the last second, *including those executed within stored programs*.\n\nThis variable does not include the following commands:\n\n* ``COM_PING``\n* ``COM_STATISTICS``\n\nSee also:",
  157. "editable": true,
  158. "error": false,
  159. "format": "short",
  160. "gauge": {
  161. "maxValue": 100,
  162. "minValue": 0,
  163. "show": false,
  164. "thresholdLabels": false,
  165. "thresholdMarkers": true
  166. },
  167. "height": "125px",
  168. "id": 13,
  169. "interval": "$interval",
  170. "links": [
  171. {
  172. "targetBlank": true,
  173. "title": "MySQL Server Status Variables",
  174. "type": "absolute",
  175. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Queries"
  176. },
  177. {
  178. "targetBlank": true,
  179. "title": "MySQL Queries and Questions",
  180. "type": "absolute",
  181. "url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/"
  182. }
  183. ],
  184. "mappingType": 1,
  185. "mappingTypes": [
  186. {
  187. "name": "value to text",
  188. "value": 1
  189. },
  190. {
  191. "name": "range to text",
  192. "value": 2
  193. }
  194. ],
  195. "maxDataPoints": 100,
  196. "nullPointMode": "connected",
  197. "nullText": null,
  198. "postfix": "",
  199. "postfixFontSize": "50%",
  200. "prefix": "",
  201. "prefixFontSize": "80%",
  202. "rangeMaps": [
  203. {
  204. "from": "null",
  205. "text": "N/A",
  206. "to": "null"
  207. }
  208. ],
  209. "span": 3,
  210. "sparkline": {
  211. "fillColor": "rgba(31, 118, 189, 0.18)",
  212. "full": false,
  213. "lineColor": "rgb(31, 120, 193)",
  214. "show": true
  215. },
  216. "tableColumn": "",
  217. "targets": [
  218. {
  219. "calculatedInterval": "10m",
  220. "datasourceErrors": {},
  221. "errors": {},
  222. "expr": "rate(mysql_global_status_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_queries{instance=\"$host\"}[5m])",
  223. "interval": "$interval",
  224. "intervalFactor": 1,
  225. "legendFormat": "",
  226. "metric": "",
  227. "refId": "A",
  228. "step": 20
  229. }
  230. ],
  231. "thresholds": "35,75",
  232. "title": "Current QPS",
  233. "transparent": false,
  234. "type": "singlestat",
  235. "valueFontSize": "80%",
  236. "valueMaps": [],
  237. "valueName": "current"
  238. },
  239. {
  240. "cacheTimeout": null,
  241. "colorBackground": false,
  242. "colorValue": false,
  243. "colors": [
  244. "rgba(50, 172, 45, 0.97)",
  245. "rgba(237, 129, 40, 0.89)",
  246. "rgba(245, 54, 54, 0.9)"
  247. ],
  248. "datasource": "Prometheus",
  249. "decimals": 0,
  250. "description": "Absolute value of the InnoDB buffer pool used for caching data and indexes in memory. This should be big enough to store the working set and never exceed the available memory on the database host.",
  251. "editable": true,
  252. "error": false,
  253. "format": "bytes",
  254. "gauge": {
  255. "maxValue": 100,
  256. "minValue": 0,
  257. "show": false,
  258. "thresholdLabels": false,
  259. "thresholdMarkers": true
  260. },
  261. "height": "125px",
  262. "id": 51,
  263. "interval": "$interval",
  264. "links": [
  265. {
  266. "targetBlank": true,
  267. "title": "Tuning the InnoDB Buffer Pool Size",
  268. "type": "absolute",
  269. "url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
  270. }
  271. ],
  272. "mappingType": 1,
  273. "mappingTypes": [
  274. {
  275. "name": "value to text",
  276. "value": 1
  277. },
  278. {
  279. "name": "range to text",
  280. "value": 2
  281. }
  282. ],
  283. "maxDataPoints": 100,
  284. "nullPointMode": "connected",
  285. "nullText": null,
  286. "postfix": "",
  287. "postfixFontSize": "50%",
  288. "prefix": "",
  289. "prefixFontSize": "80%",
  290. "rangeMaps": [
  291. {
  292. "from": "null",
  293. "text": "N/A",
  294. "to": "null"
  295. }
  296. ],
  297. "span": 3,
  298. "sparkline": {
  299. "fillColor": "rgba(31, 118, 189, 0.18)",
  300. "full": false,
  301. "lineColor": "rgb(31, 120, 193)",
  302. "show": false
  303. },
  304. "tableColumn": "",
  305. "targets": [
  306. {
  307. "calculatedInterval": "10m",
  308. "datasourceErrors": {},
  309. "errors": {},
  310. "expr": "mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"}",
  311. "interval": "5m",
  312. "intervalFactor": 1,
  313. "legendFormat": "",
  314. "metric": "",
  315. "refId": "A",
  316. "step": 300
  317. }
  318. ],
  319. "thresholds": "90,95",
  320. "title": "InnoDB Buffer Pool Size",
  321. "transparent": false,
  322. "type": "singlestat",
  323. "valueFontSize": "80%",
  324. "valueMaps": [],
  325. "valueName": "current"
  326. },
  327. {
  328. "cacheTimeout": null,
  329. "colorBackground": false,
  330. "colorValue": true,
  331. "colors": [
  332. "rgba(245, 54, 54, 0.9)",
  333. "rgba(237, 129, 40, 0.89)",
  334. "rgba(50, 172, 45, 0.97)"
  335. ],
  336. "datasource": "Prometheus",
  337. "decimals": 0,
  338. "description": "In most cases, the InnoDB buffer pool should be between 60% and 90% of available memory on a dedicated database host, but it depends on many factors.",
  339. "editable": true,
  340. "error": false,
  341. "format": "percent",
  342. "gauge": {
  343. "maxValue": 100,
  344. "minValue": 0,
  345. "show": false,
  346. "thresholdLabels": false,
  347. "thresholdMarkers": true
  348. },
  349. "height": "125px",
  350. "id": 52,
  351. "interval": "$interval",
  352. "links": [
  353. {
  354. "targetBlank": true,
  355. "title": "Tuning the InnoDB Buffer Pool Size",
  356. "type": "absolute",
  357. "url": "https://www.percona.com/blog/2015/06/02/80-ram-tune-innodb_buffer_pool_size/"
  358. }
  359. ],
  360. "mappingType": 1,
  361. "mappingTypes": [
  362. {
  363. "name": "value to text",
  364. "value": 1
  365. },
  366. {
  367. "name": "range to text",
  368. "value": 2
  369. }
  370. ],
  371. "maxDataPoints": 100,
  372. "nullPointMode": "connected",
  373. "nullText": null,
  374. "postfix": "",
  375. "postfixFontSize": "50%",
  376. "prefix": "",
  377. "prefixFontSize": "80%",
  378. "rangeMaps": [
  379. {
  380. "from": "null",
  381. "text": "N/A",
  382. "to": "null"
  383. }
  384. ],
  385. "repeat": null,
  386. "span": 3,
  387. "sparkline": {
  388. "fillColor": "rgba(31, 118, 189, 0.18)",
  389. "full": false,
  390. "lineColor": "rgb(31, 120, 193)",
  391. "show": false
  392. },
  393. "tableColumn": "",
  394. "targets": [
  395. {
  396. "calculatedInterval": "10m",
  397. "datasourceErrors": {},
  398. "errors": {},
  399. "expr": "(mysql_global_variables_innodb_buffer_pool_size{instance=\"$host\"} * 100) / on (instance) node_memory_MemTotal{instance=\"$host\"}",
  400. "interval": "5m",
  401. "intervalFactor": 1,
  402. "legendFormat": "",
  403. "metric": "",
  404. "refId": "A",
  405. "step": 300
  406. }
  407. ],
  408. "thresholds": "40,80",
  409. "title": "Buffer Pool Size of Total RAM",
  410. "transparent": false,
  411. "type": "singlestat",
  412. "valueFontSize": "80%",
  413. "valueMaps": [],
  414. "valueName": "current"
  415. }
  416. ],
  417. "repeat": null,
  418. "repeatIteration": null,
  419. "repeatRowId": null,
  420. "showTitle": false,
  421. "title": "Widgets",
  422. "titleSize": "h6"
  423. },
  424. {
  425. "collapse": false,
  426. "height": "250px",
  427. "panels": [
  428. {
  429. "aliasColors": {},
  430. "bars": false,
  431. "dashLength": 10,
  432. "dashes": false,
  433. "datasource": "Prometheus",
  434. "decimals": 0,
  435. "description": "**Max Connections** is the maximum permitted number of simultaneous client connections. This is the value of the ``max_connections`` variable.\n\n**Max Used Connections** is the maximum number of connections that have been in use simultaneously since the server was started.\n\n**Connections** is the number of connection attempts (successful or not) to the MySQL server.",
  436. "editable": true,
  437. "error": false,
  438. "fill": 2,
  439. "grid": {},
  440. "height": "250px",
  441. "id": 92,
  442. "legend": {
  443. "alignAsTable": true,
  444. "avg": true,
  445. "current": false,
  446. "max": true,
  447. "min": true,
  448. "show": true,
  449. "sort": "avg",
  450. "sortDesc": true,
  451. "total": false,
  452. "values": true
  453. },
  454. "lines": true,
  455. "linewidth": 2,
  456. "links": [
  457. {
  458. "targetBlank": true,
  459. "title": "MySQL Server System Variables",
  460. "type": "absolute",
  461. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections"
  462. }
  463. ],
  464. "nullPointMode": "null",
  465. "percentage": false,
  466. "pointradius": 5,
  467. "points": false,
  468. "renderer": "flot",
  469. "seriesOverrides": [
  470. {
  471. "alias": "Max Connections",
  472. "fill": 0
  473. }
  474. ],
  475. "spaceLength": 10,
  476. "span": 6,
  477. "stack": false,
  478. "steppedLine": false,
  479. "targets": [
  480. {
  481. "calculatedInterval": "2m",
  482. "datasourceErrors": {},
  483. "errors": {},
  484. "expr": "max(max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval]) or mysql_global_status_threads_connected{instance=\"$host\"} )",
  485. "interval": "$interval",
  486. "intervalFactor": 1,
  487. "legendFormat": "Connections",
  488. "metric": "",
  489. "refId": "A",
  490. "step": 20
  491. },
  492. {
  493. "calculatedInterval": "2m",
  494. "datasourceErrors": {},
  495. "errors": {},
  496. "expr": "mysql_global_status_max_used_connections{instance=\"$host\"}",
  497. "interval": "$interval",
  498. "intervalFactor": 1,
  499. "legendFormat": "Max Used Connections",
  500. "metric": "",
  501. "refId": "C",
  502. "step": 20,
  503. "target": ""
  504. },
  505. {
  506. "calculatedInterval": "2m",
  507. "datasourceErrors": {},
  508. "errors": {},
  509. "expr": "mysql_global_variables_max_connections{instance=\"$host\"}",
  510. "interval": "$interval",
  511. "intervalFactor": 1,
  512. "legendFormat": "Max Connections",
  513. "metric": "",
  514. "refId": "B",
  515. "step": 20,
  516. "target": ""
  517. }
  518. ],
  519. "thresholds": [],
  520. "timeFrom": null,
  521. "timeShift": null,
  522. "title": "MySQL Connections",
  523. "tooltip": {
  524. "msResolution": false,
  525. "shared": true,
  526. "sort": 0,
  527. "value_type": "cumulative"
  528. },
  529. "type": "graph",
  530. "xaxis": {
  531. "buckets": null,
  532. "mode": "time",
  533. "name": null,
  534. "show": true,
  535. "values": []
  536. },
  537. "yaxes": [
  538. {
  539. "format": "short",
  540. "label": "",
  541. "logBase": 1,
  542. "max": null,
  543. "min": 0,
  544. "show": true
  545. },
  546. {
  547. "format": "short",
  548. "label": "",
  549. "logBase": 1,
  550. "max": null,
  551. "min": 0,
  552. "show": true
  553. }
  554. ]
  555. },
  556. {
  557. "aliasColors": {},
  558. "bars": false,
  559. "dashLength": 10,
  560. "dashes": false,
  561. "datasource": "Prometheus",
  562. "decimals": 2,
  563. "description": "**Peak Threads Connected** is number of peak number of connections MySQL had in the period of time\n\n**Peak Threads Running** is the peak number of threads considered \"Running\" by MySQL, not Sleeping or Waiting on Table level locks which can be indicative for workload spikes\n\n**Avg Threads Running** is the average number of Threads running over interval which can be indicative of sustained load",
  564. "editable": true,
  565. "error": false,
  566. "fill": 2,
  567. "grid": {},
  568. "id": 10,
  569. "legend": {
  570. "alignAsTable": true,
  571. "avg": true,
  572. "current": true,
  573. "max": true,
  574. "min": true,
  575. "rightSide": false,
  576. "show": true,
  577. "sortDesc": true,
  578. "total": false,
  579. "values": true
  580. },
  581. "lines": true,
  582. "linewidth": 2,
  583. "links": [],
  584. "nullPointMode": "null",
  585. "percentage": false,
  586. "pointradius": 5,
  587. "points": false,
  588. "renderer": "flot",
  589. "seriesOverrides": [
  590. {
  591. "alias": "Peak Threads Running",
  592. "color": "#E24D42",
  593. "lines": false,
  594. "pointradius": 1,
  595. "points": true
  596. },
  597. {
  598. "alias": "Peak Threads Connected",
  599. "color": "#1F78C1"
  600. },
  601. {
  602. "alias": "Avg Threads Running",
  603. "color": "#EAB839"
  604. }
  605. ],
  606. "spaceLength": 10,
  607. "span": 6,
  608. "stack": false,
  609. "steppedLine": false,
  610. "targets": [
  611. {
  612. "calculatedInterval": "2m",
  613. "datasourceErrors": {},
  614. "errors": {},
  615. "expr": "max_over_time(mysql_global_status_threads_connected{instance=\"$host\"}[$interval])",
  616. "format": "time_series",
  617. "hide": false,
  618. "interval": "$interval",
  619. "intervalFactor": 1,
  620. "legendFormat": "Peak Threads Connected",
  621. "metric": "",
  622. "refId": "A",
  623. "step": 20
  624. },
  625. {
  626. "calculatedInterval": "2m",
  627. "datasourceErrors": {},
  628. "errors": {},
  629. "expr": "max_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval])",
  630. "format": "time_series",
  631. "interval": "$interval",
  632. "intervalFactor": 1,
  633. "legendFormat": "Peak Threads Running",
  634. "metric": "",
  635. "refId": "B",
  636. "step": 20
  637. },
  638. {
  639. "expr": "avg_over_time(mysql_global_status_threads_running{instance=\"$host\"}[$interval])",
  640. "format": "time_series",
  641. "interval": "$interval",
  642. "intervalFactor": 1,
  643. "legendFormat": "Avg Threads Running",
  644. "refId": "C",
  645. "step": 20
  646. }
  647. ],
  648. "thresholds": [],
  649. "timeFrom": null,
  650. "timeShift": null,
  651. "title": "MySQL Client Thread Activity",
  652. "tooltip": {
  653. "msResolution": false,
  654. "shared": true,
  655. "sort": 0,
  656. "value_type": "individual"
  657. },
  658. "type": "graph",
  659. "xaxis": {
  660. "buckets": null,
  661. "mode": "time",
  662. "name": null,
  663. "show": true,
  664. "values": [
  665. "total"
  666. ]
  667. },
  668. "yaxes": [
  669. {
  670. "format": "short",
  671. "label": "Threads",
  672. "logBase": 1,
  673. "max": null,
  674. "min": 0,
  675. "show": true
  676. },
  677. {
  678. "format": "short",
  679. "label": "",
  680. "logBase": 1,
  681. "max": null,
  682. "min": 0,
  683. "show": false
  684. }
  685. ]
  686. }
  687. ],
  688. "repeat": null,
  689. "repeatIteration": null,
  690. "repeatRowId": null,
  691. "showTitle": false,
  692. "title": "Connections",
  693. "titleSize": "h6"
  694. },
  695. {
  696. "collapse": false,
  697. "height": "250px",
  698. "panels": [
  699. {
  700. "aliasColors": {},
  701. "bars": false,
  702. "dashLength": 10,
  703. "dashes": false,
  704. "datasource": "Prometheus",
  705. "decimals": null,
  706. "description": "The number of queries sent to the server by clients, *excluding those executed within stored programs*.\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``\n\nSee also:",
  707. "editable": true,
  708. "error": false,
  709. "fill": 2,
  710. "grid": {},
  711. "id": 53,
  712. "legend": {
  713. "alignAsTable": true,
  714. "avg": true,
  715. "current": false,
  716. "max": true,
  717. "min": true,
  718. "rightSide": false,
  719. "show": true,
  720. "total": false,
  721. "values": true
  722. },
  723. "lines": true,
  724. "linewidth": 2,
  725. "links": [
  726. {
  727. "targetBlank": true,
  728. "title": "MySQL Server Status Variables",
  729. "type": "absolute",
  730. "url": "https://dev.mysql.com/doc/refman/5.7/en/server-status-variables.html#statvar_Questions"
  731. },
  732. {
  733. "targetBlank": true,
  734. "title": "MySQL Queries and Questions",
  735. "type": "absolute",
  736. "url": "https://www.percona.com/blog/2014/05/29/how-mysql-queries-and-questions-are-measured/"
  737. }
  738. ],
  739. "nullPointMode": "null",
  740. "percentage": false,
  741. "pointradius": 5,
  742. "points": false,
  743. "renderer": "flot",
  744. "seriesOverrides": [],
  745. "spaceLength": 10,
  746. "span": 6,
  747. "stack": false,
  748. "steppedLine": false,
  749. "targets": [
  750. {
  751. "calculatedInterval": "2m",
  752. "datasourceErrors": {},
  753. "errors": {},
  754. "expr": "rate(mysql_global_status_questions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_questions{instance=\"$host\"}[5m])",
  755. "interval": "$interval",
  756. "intervalFactor": 1,
  757. "legendFormat": "Questions",
  758. "metric": "",
  759. "refId": "A",
  760. "step": 20
  761. }
  762. ],
  763. "thresholds": [],
  764. "timeFrom": null,
  765. "timeShift": null,
  766. "title": "MySQL Questions",
  767. "tooltip": {
  768. "msResolution": false,
  769. "shared": true,
  770. "sort": 0,
  771. "value_type": "individual"
  772. },
  773. "type": "graph",
  774. "xaxis": {
  775. "buckets": null,
  776. "mode": "time",
  777. "name": null,
  778. "show": true,
  779. "values": []
  780. },
  781. "yaxes": [
  782. {
  783. "format": "short",
  784. "logBase": 1,
  785. "max": null,
  786. "min": 0,
  787. "show": true
  788. },
  789. {
  790. "format": "short",
  791. "logBase": 1,
  792. "max": null,
  793. "min": 0,
  794. "show": true
  795. }
  796. ]
  797. },
  798. {
  799. "aliasColors": {},
  800. "bars": false,
  801. "dashLength": 10,
  802. "dashes": false,
  803. "datasource": "Prometheus",
  804. "decimals": 2,
  805. "description": "**Thread Cache Size** is the value of the [thread_cache_size](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_thread_cache_size) system variable that defines how many threads the server should cache for reuse. When a client disconnects, the client's threads are put in the cache (unless it is full). As of MySQL 5.6.8, default thread cache size depends on the value of [max_connections](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connections) and is capped at 100 threads. 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 Cached** is the number of threads in the thread cache.\n\n**Threads Created** is the number of threads created to handle connections.",
  806. "editable": true,
  807. "error": false,
  808. "fill": 2,
  809. "grid": {},
  810. "id": 11,
  811. "legend": {
  812. "alignAsTable": true,
  813. "avg": true,
  814. "current": false,
  815. "max": true,
  816. "min": true,
  817. "rightSide": false,
  818. "show": true,
  819. "sort": "avg",
  820. "sortDesc": true,
  821. "total": false,
  822. "values": true
  823. },
  824. "lines": true,
  825. "linewidth": 2,
  826. "links": [],
  827. "nullPointMode": "null",
  828. "percentage": false,
  829. "pointradius": 5,
  830. "points": false,
  831. "renderer": "flot",
  832. "seriesOverrides": [
  833. {
  834. "alias": "Threads Created",
  835. "fill": 0
  836. }
  837. ],
  838. "spaceLength": 10,
  839. "span": 6,
  840. "stack": false,
  841. "steppedLine": false,
  842. "targets": [
  843. {
  844. "calculatedInterval": "2m",
  845. "datasourceErrors": {},
  846. "errors": {},
  847. "expr": "mysql_global_variables_thread_cache_size{instance=\"$host\"}",
  848. "format": "time_series",
  849. "interval": "$interval",
  850. "intervalFactor": 1,
  851. "legendFormat": "Thread Cache Size",
  852. "metric": "",
  853. "refId": "B",
  854. "step": 20
  855. },
  856. {
  857. "calculatedInterval": "2m",
  858. "datasourceErrors": {},
  859. "errors": {},
  860. "expr": "mysql_global_status_threads_cached{instance=\"$host\"}",
  861. "format": "time_series",
  862. "interval": "$interval",
  863. "intervalFactor": 1,
  864. "legendFormat": "Threads Cached",
  865. "metric": "",
  866. "refId": "C",
  867. "step": 20
  868. },
  869. {
  870. "calculatedInterval": "2m",
  871. "datasourceErrors": {},
  872. "errors": {},
  873. "expr": "rate(mysql_global_status_threads_created{instance=\"$host\"}[$interval]) or irate(mysql_global_status_threads_created{instance=\"$host\"}[5m])",
  874. "format": "time_series",
  875. "interval": "$interval",
  876. "intervalFactor": 1,
  877. "legendFormat": "Threads Created",
  878. "metric": "",
  879. "refId": "A",
  880. "step": 20
  881. }
  882. ],
  883. "thresholds": [],
  884. "timeFrom": null,
  885. "timeShift": null,
  886. "title": "MySQL Thread Cache",
  887. "tooltip": {
  888. "msResolution": false,
  889. "shared": true,
  890. "sort": 0,
  891. "value_type": "individual"
  892. },
  893. "transparent": false,
  894. "type": "graph",
  895. "xaxis": {
  896. "buckets": null,
  897. "mode": "time",
  898. "name": null,
  899. "show": true,
  900. "values": []
  901. },
  902. "yaxes": [
  903. {
  904. "format": "short",
  905. "logBase": 1,
  906. "max": null,
  907. "min": 0,
  908. "show": true
  909. },
  910. {
  911. "format": "short",
  912. "logBase": 1,
  913. "max": null,
  914. "min": 0,
  915. "show": true
  916. }
  917. ]
  918. }
  919. ],
  920. "repeat": null,
  921. "repeatIteration": null,
  922. "repeatRowId": null,
  923. "showTitle": false,
  924. "title": "Table Locks",
  925. "titleSize": "h6"
  926. },
  927. {
  928. "collapse": false,
  929. "height": "250px",
  930. "panels": [
  931. {
  932. "aliasColors": {},
  933. "bars": false,
  934. "dashLength": 10,
  935. "dashes": false,
  936. "datasource": "Prometheus",
  937. "decimals": 2,
  938. "editable": true,
  939. "error": false,
  940. "fill": 2,
  941. "grid": {},
  942. "id": 22,
  943. "legend": {
  944. "alignAsTable": true,
  945. "avg": true,
  946. "current": false,
  947. "max": true,
  948. "min": true,
  949. "rightSide": false,
  950. "show": true,
  951. "sort": "avg",
  952. "sortDesc": true,
  953. "total": false,
  954. "values": true
  955. },
  956. "lines": true,
  957. "linewidth": 2,
  958. "links": [],
  959. "nullPointMode": "null",
  960. "percentage": false,
  961. "pointradius": 5,
  962. "points": false,
  963. "renderer": "flot",
  964. "seriesOverrides": [],
  965. "spaceLength": 10,
  966. "span": 6,
  967. "stack": false,
  968. "steppedLine": false,
  969. "targets": [
  970. {
  971. "calculatedInterval": "2m",
  972. "datasourceErrors": {},
  973. "errors": {},
  974. "expr": "rate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_tables{instance=\"$host\"}[5m])",
  975. "interval": "$interval",
  976. "intervalFactor": 1,
  977. "legendFormat": "Created Tmp Tables",
  978. "metric": "",
  979. "refId": "A",
  980. "step": 20
  981. },
  982. {
  983. "calculatedInterval": "2m",
  984. "datasourceErrors": {},
  985. "errors": {},
  986. "expr": "rate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_disk_tables{instance=\"$host\"}[5m])",
  987. "interval": "$interval",
  988. "intervalFactor": 1,
  989. "legendFormat": "Created Tmp Disk Tables",
  990. "metric": "",
  991. "refId": "B",
  992. "step": 20
  993. },
  994. {
  995. "calculatedInterval": "2m",
  996. "datasourceErrors": {},
  997. "errors": {},
  998. "expr": "rate(mysql_global_status_created_tmp_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_created_tmp_files{instance=\"$host\"}[5m])",
  999. "interval": "$interval",
  1000. "intervalFactor": 1,
  1001. "legendFormat": "Created Tmp Files",
  1002. "metric": "",
  1003. "refId": "C",
  1004. "step": 20
  1005. }
  1006. ],
  1007. "thresholds": [],
  1008. "timeFrom": null,
  1009. "timeShift": null,
  1010. "title": "MySQL Temporary Objects",
  1011. "tooltip": {
  1012. "msResolution": false,
  1013. "shared": true,
  1014. "sort": 0,
  1015. "value_type": "individual"
  1016. },
  1017. "type": "graph",
  1018. "xaxis": {
  1019. "buckets": null,
  1020. "mode": "time",
  1021. "name": null,
  1022. "show": true,
  1023. "values": []
  1024. },
  1025. "yaxes": [
  1026. {
  1027. "format": "short",
  1028. "logBase": 1,
  1029. "max": null,
  1030. "min": 0,
  1031. "show": true
  1032. },
  1033. {
  1034. "format": "short",
  1035. "logBase": 1,
  1036. "max": null,
  1037. "min": 0,
  1038. "show": true
  1039. }
  1040. ]
  1041. },
  1042. {
  1043. "aliasColors": {},
  1044. "bars": false,
  1045. "dashLength": 10,
  1046. "dashes": false,
  1047. "datasource": "Prometheus",
  1048. "decimals": 2,
  1049. "description": "Shows how many selects were done without indexes. Such operations can impact performance.\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\n* **Select Range** is how many queries used a range scan, which means MySQL scanned all rows in a given range.\n\n* **Select Full Join** is the number of joins that are not joined on an index, this is usually a huge performance hit.",
  1050. "editable": true,
  1051. "error": false,
  1052. "fill": 2,
  1053. "grid": {},
  1054. "height": "250px",
  1055. "id": 311,
  1056. "legend": {
  1057. "alignAsTable": true,
  1058. "avg": true,
  1059. "current": false,
  1060. "hideZero": true,
  1061. "max": true,
  1062. "min": true,
  1063. "rightSide": false,
  1064. "show": true,
  1065. "sort": "avg",
  1066. "sortDesc": true,
  1067. "total": false,
  1068. "values": true
  1069. },
  1070. "lines": true,
  1071. "linewidth": 2,
  1072. "links": [],
  1073. "nullPointMode": "null",
  1074. "percentage": false,
  1075. "pointradius": 5,
  1076. "points": false,
  1077. "renderer": "flot",
  1078. "seriesOverrides": [],
  1079. "spaceLength": 10,
  1080. "span": 6,
  1081. "stack": false,
  1082. "steppedLine": false,
  1083. "targets": [
  1084. {
  1085. "calculatedInterval": "2m",
  1086. "datasourceErrors": {},
  1087. "errors": {},
  1088. "expr": "rate(mysql_global_status_select_full_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_join{instance=\"$host\"}[5m])",
  1089. "format": "time_series",
  1090. "interval": "$interval",
  1091. "intervalFactor": 1,
  1092. "legendFormat": "Select Full Join",
  1093. "metric": "",
  1094. "refId": "A",
  1095. "step": 20
  1096. },
  1097. {
  1098. "calculatedInterval": "2m",
  1099. "datasourceErrors": {},
  1100. "errors": {},
  1101. "expr": "rate(mysql_global_status_select_full_range_join{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_full_range_join{instance=\"$host\"}[5m])",
  1102. "format": "time_series",
  1103. "interval": "$interval",
  1104. "intervalFactor": 1,
  1105. "legendFormat": "Select Full Range Join",
  1106. "metric": "",
  1107. "refId": "B",
  1108. "step": 20
  1109. },
  1110. {
  1111. "calculatedInterval": "2m",
  1112. "datasourceErrors": {},
  1113. "errors": {},
  1114. "expr": "rate(mysql_global_status_select_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range{instance=\"$host\"}[5m])",
  1115. "format": "time_series",
  1116. "interval": "$interval",
  1117. "intervalFactor": 1,
  1118. "legendFormat": "Select Range",
  1119. "metric": "",
  1120. "refId": "C",
  1121. "step": 20
  1122. },
  1123. {
  1124. "calculatedInterval": "2m",
  1125. "datasourceErrors": {},
  1126. "errors": {},
  1127. "expr": "rate(mysql_global_status_select_range_check{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_range_check{instance=\"$host\"}[5m])",
  1128. "format": "time_series",
  1129. "interval": "$interval",
  1130. "intervalFactor": 1,
  1131. "legendFormat": "Select Range Check",
  1132. "metric": "",
  1133. "refId": "D",
  1134. "step": 20
  1135. },
  1136. {
  1137. "calculatedInterval": "2m",
  1138. "datasourceErrors": {},
  1139. "errors": {},
  1140. "expr": "rate(mysql_global_status_select_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_select_scan{instance=\"$host\"}[5m])",
  1141. "format": "time_series",
  1142. "interval": "$interval",
  1143. "intervalFactor": 1,
  1144. "legendFormat": "Select Scan",
  1145. "metric": "",
  1146. "refId": "E",
  1147. "step": 20
  1148. }
  1149. ],
  1150. "thresholds": [],
  1151. "timeFrom": null,
  1152. "timeShift": null,
  1153. "title": "MySQL Select Types",
  1154. "tooltip": {
  1155. "msResolution": false,
  1156. "shared": true,
  1157. "sort": 0,
  1158. "value_type": "individual"
  1159. },
  1160. "type": "graph",
  1161. "xaxis": {
  1162. "buckets": null,
  1163. "mode": "time",
  1164. "name": null,
  1165. "show": true,
  1166. "values": []
  1167. },
  1168. "yaxes": [
  1169. {
  1170. "format": "short",
  1171. "logBase": 1,
  1172. "max": null,
  1173. "min": 0,
  1174. "show": true
  1175. },
  1176. {
  1177. "format": "short",
  1178. "logBase": 1,
  1179. "max": null,
  1180. "min": 0,
  1181. "show": true
  1182. }
  1183. ]
  1184. }
  1185. ],
  1186. "repeat": null,
  1187. "repeatIteration": null,
  1188. "repeatRowId": null,
  1189. "showTitle": false,
  1190. "title": "Temporary Objects",
  1191. "titleSize": "h6"
  1192. },
  1193. {
  1194. "collapse": false,
  1195. "height": "250px",
  1196. "panels": [
  1197. {
  1198. "aliasColors": {},
  1199. "bars": false,
  1200. "dashLength": 10,
  1201. "dashes": false,
  1202. "datasource": "Prometheus",
  1203. "decimals": 2,
  1204. "description": "**Sort Rows** shows how many rows had to be sorted to return them in the correct order.\n\nFor sorts that could not use indexes, it is important to note the following:\n\n* **Sort Scan** shows how many sorts caused a full table scan.\n\n* **Sort Range** shows how many sorts used a range scan.",
  1205. "editable": true,
  1206. "error": false,
  1207. "fill": 2,
  1208. "grid": {},
  1209. "id": 30,
  1210. "legend": {
  1211. "alignAsTable": true,
  1212. "avg": true,
  1213. "current": false,
  1214. "hideZero": true,
  1215. "max": true,
  1216. "min": true,
  1217. "rightSide": false,
  1218. "show": true,
  1219. "sort": "avg",
  1220. "sortDesc": true,
  1221. "total": false,
  1222. "values": true
  1223. },
  1224. "lines": true,
  1225. "linewidth": 2,
  1226. "links": [],
  1227. "nullPointMode": "null",
  1228. "percentage": false,
  1229. "pointradius": 5,
  1230. "points": false,
  1231. "renderer": "flot",
  1232. "seriesOverrides": [],
  1233. "spaceLength": 10,
  1234. "span": 6,
  1235. "stack": false,
  1236. "steppedLine": false,
  1237. "targets": [
  1238. {
  1239. "calculatedInterval": "2m",
  1240. "datasourceErrors": {},
  1241. "errors": {},
  1242. "expr": "rate(mysql_global_status_sort_rows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_rows{instance=\"$host\"}[5m])",
  1243. "format": "time_series",
  1244. "interval": "$interval",
  1245. "intervalFactor": 1,
  1246. "legendFormat": "Sort Rows",
  1247. "metric": "",
  1248. "refId": "A",
  1249. "step": 20
  1250. },
  1251. {
  1252. "calculatedInterval": "2m",
  1253. "datasourceErrors": {},
  1254. "errors": {},
  1255. "expr": "rate(mysql_global_status_sort_range{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_range{instance=\"$host\"}[5m])",
  1256. "format": "time_series",
  1257. "interval": "$interval",
  1258. "intervalFactor": 1,
  1259. "legendFormat": "Sort Range",
  1260. "metric": "",
  1261. "refId": "B",
  1262. "step": 20
  1263. },
  1264. {
  1265. "calculatedInterval": "2m",
  1266. "datasourceErrors": {},
  1267. "errors": {},
  1268. "expr": "rate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_merge_passes{instance=\"$host\"}[5m])",
  1269. "format": "time_series",
  1270. "interval": "$interval",
  1271. "intervalFactor": 1,
  1272. "legendFormat": "Sort Merge Passes",
  1273. "metric": "",
  1274. "refId": "C",
  1275. "step": 20
  1276. },
  1277. {
  1278. "calculatedInterval": "2m",
  1279. "datasourceErrors": {},
  1280. "errors": {},
  1281. "expr": "rate(mysql_global_status_sort_scan{instance=\"$host\"}[$interval]) or irate(mysql_global_status_sort_scan{instance=\"$host\"}[5m])",
  1282. "format": "time_series",
  1283. "interval": "$interval",
  1284. "intervalFactor": 1,
  1285. "legendFormat": "Sort Scan",
  1286. "metric": "",
  1287. "refId": "D",
  1288. "step": 20
  1289. }
  1290. ],
  1291. "thresholds": [],
  1292. "timeFrom": null,
  1293. "timeShift": null,
  1294. "title": "MySQL Sorts",
  1295. "tooltip": {
  1296. "msResolution": false,
  1297. "shared": true,
  1298. "sort": 0,
  1299. "value_type": "individual"
  1300. },
  1301. "type": "graph",
  1302. "xaxis": {
  1303. "buckets": null,
  1304. "mode": "time",
  1305. "name": null,
  1306. "show": true,
  1307. "values": []
  1308. },
  1309. "yaxes": [
  1310. {
  1311. "format": "short",
  1312. "logBase": 1,
  1313. "max": null,
  1314. "min": 0,
  1315. "show": true
  1316. },
  1317. {
  1318. "format": "short",
  1319. "logBase": 1,
  1320. "max": null,
  1321. "min": 0,
  1322. "show": true
  1323. }
  1324. ]
  1325. },
  1326. {
  1327. "aliasColors": {},
  1328. "bars": false,
  1329. "dashLength": 10,
  1330. "dashes": false,
  1331. "datasource": "Prometheus",
  1332. "decimals": 2,
  1333. "description": "Shows how many *slow queries* were executed by the server. A query is considered slow if it takes more time than the value of the [long_query_time](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_long_query_time) system variable.",
  1334. "editable": true,
  1335. "error": false,
  1336. "fill": 2,
  1337. "grid": {},
  1338. "id": 48,
  1339. "legend": {
  1340. "alignAsTable": true,
  1341. "avg": true,
  1342. "current": false,
  1343. "max": true,
  1344. "min": true,
  1345. "show": true,
  1346. "total": false,
  1347. "values": true
  1348. },
  1349. "lines": true,
  1350. "linewidth": 2,
  1351. "links": [],
  1352. "nullPointMode": "null",
  1353. "percentage": false,
  1354. "pointradius": 5,
  1355. "points": false,
  1356. "renderer": "flot",
  1357. "seriesOverrides": [],
  1358. "spaceLength": 10,
  1359. "span": 6,
  1360. "stack": false,
  1361. "steppedLine": false,
  1362. "targets": [
  1363. {
  1364. "calculatedInterval": "2m",
  1365. "datasourceErrors": {},
  1366. "errors": {},
  1367. "expr": "rate(mysql_global_status_slow_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_slow_queries{instance=\"$host\"}[5m])",
  1368. "format": "time_series",
  1369. "interval": "$interval",
  1370. "intervalFactor": 1,
  1371. "legendFormat": "Slow Queries",
  1372. "metric": "",
  1373. "refId": "A",
  1374. "step": 20
  1375. }
  1376. ],
  1377. "thresholds": [],
  1378. "timeFrom": null,
  1379. "timeShift": null,
  1380. "title": "MySQL Slow Queries",
  1381. "tooltip": {
  1382. "msResolution": false,
  1383. "shared": true,
  1384. "sort": 0,
  1385. "value_type": "cumulative"
  1386. },
  1387. "type": "graph",
  1388. "xaxis": {
  1389. "buckets": null,
  1390. "mode": "time",
  1391. "name": null,
  1392. "show": true,
  1393. "values": []
  1394. },
  1395. "yaxes": [
  1396. {
  1397. "format": "short",
  1398. "label": "",
  1399. "logBase": 1,
  1400. "max": null,
  1401. "min": 0,
  1402. "show": true
  1403. },
  1404. {
  1405. "format": "short",
  1406. "label": "",
  1407. "logBase": 1,
  1408. "max": null,
  1409. "min": 0,
  1410. "show": true
  1411. }
  1412. ]
  1413. }
  1414. ],
  1415. "repeat": null,
  1416. "repeatIteration": null,
  1417. "repeatRowId": null,
  1418. "showTitle": false,
  1419. "title": "Sorts",
  1420. "titleSize": "h6"
  1421. },
  1422. {
  1423. "collapse": false,
  1424. "height": "250px",
  1425. "panels": [
  1426. {
  1427. "aliasColors": {},
  1428. "bars": false,
  1429. "dashLength": 10,
  1430. "dashes": false,
  1431. "datasource": "Prometheus",
  1432. "decimals": 2,
  1433. "description": "**Aborted Clients** shows how many connections were aborted (the client disconnected improperly or was terminated).\n\n**Aborted Connects** shows how many attempts to connect to the MySQL server failed. If the number of attempts from a host reaches the value of the [max_connect_errors](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_connect_errors) system variable, the server blocks that host from further connections. To unblock the host, flush the host cache using `FLUSH HOSTS`.",
  1434. "editable": true,
  1435. "error": false,
  1436. "fill": 2,
  1437. "grid": {},
  1438. "id": 47,
  1439. "legend": {
  1440. "alignAsTable": true,
  1441. "avg": true,
  1442. "current": false,
  1443. "max": true,
  1444. "min": true,
  1445. "show": true,
  1446. "sort": "avg",
  1447. "sortDesc": true,
  1448. "total": false,
  1449. "values": true
  1450. },
  1451. "lines": true,
  1452. "linewidth": 2,
  1453. "links": [
  1454. {
  1455. "targetBlank": true,
  1456. "title": "Communication Errors and Aborted Connections",
  1457. "type": "absolute",
  1458. "url": "https://dev.mysql.com/doc/refman/5.7/en/communication-errors.html"
  1459. }
  1460. ],
  1461. "nullPointMode": "null",
  1462. "percentage": false,
  1463. "pointradius": 5,
  1464. "points": false,
  1465. "renderer": "flot",
  1466. "seriesOverrides": [],
  1467. "spaceLength": 10,
  1468. "span": 6,
  1469. "stack": false,
  1470. "steppedLine": false,
  1471. "targets": [
  1472. {
  1473. "calculatedInterval": "2m",
  1474. "datasourceErrors": {},
  1475. "errors": {},
  1476. "expr": "rate(mysql_global_status_aborted_connects{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_connects{instance=\"$host\"}[5m])",
  1477. "format": "time_series",
  1478. "interval": "$interval",
  1479. "intervalFactor": 1,
  1480. "legendFormat": "Aborted Connects (attempts)",
  1481. "metric": "",
  1482. "refId": "A",
  1483. "step": 20
  1484. },
  1485. {
  1486. "calculatedInterval": "2m",
  1487. "datasourceErrors": {},
  1488. "errors": {},
  1489. "expr": "rate(mysql_global_status_aborted_clients{instance=\"$host\"}[$interval]) or irate(mysql_global_status_aborted_clients{instance=\"$host\"}[5m])",
  1490. "format": "time_series",
  1491. "interval": "$interval",
  1492. "intervalFactor": 1,
  1493. "legendFormat": "Aborted Clients (timeout)",
  1494. "metric": "",
  1495. "refId": "B",
  1496. "step": 20,
  1497. "target": ""
  1498. }
  1499. ],
  1500. "thresholds": [],
  1501. "timeFrom": null,
  1502. "timeShift": null,
  1503. "title": "MySQL Aborted Connections",
  1504. "tooltip": {
  1505. "msResolution": false,
  1506. "shared": true,
  1507. "sort": 0,
  1508. "value_type": "cumulative"
  1509. },
  1510. "type": "graph",
  1511. "xaxis": {
  1512. "buckets": null,
  1513. "mode": "time",
  1514. "name": null,
  1515. "show": true,
  1516. "values": []
  1517. },
  1518. "yaxes": [
  1519. {
  1520. "format": "short",
  1521. "label": "",
  1522. "logBase": 1,
  1523. "max": null,
  1524. "min": 0,
  1525. "show": true
  1526. },
  1527. {
  1528. "format": "short",
  1529. "label": "",
  1530. "logBase": 1,
  1531. "max": null,
  1532. "min": 0,
  1533. "show": true
  1534. }
  1535. ]
  1536. },
  1537. {
  1538. "aliasColors": {},
  1539. "bars": false,
  1540. "dashLength": 10,
  1541. "dashes": false,
  1542. "datasource": "Prometheus",
  1543. "decimals": 2,
  1544. "description": "Shows how many table locks MySQL server requested from the storage engine.\n\n**Table Locks Immediate** shows the number of times that a request for a table lock could be granted immediately.\n\n**Table Locks Waited** shows the number of times that a request for a table lock could not be granted immediately. If this metric is rising, you need to deal with lock contention:\n\n* Optimize queries that require table locks.\n* Split tables that require frequent locking or replicate them.",
  1545. "editable": true,
  1546. "error": false,
  1547. "fill": 2,
  1548. "grid": {},
  1549. "id": 32,
  1550. "legend": {
  1551. "alignAsTable": true,
  1552. "avg": true,
  1553. "current": false,
  1554. "max": true,
  1555. "min": true,
  1556. "rightSide": false,
  1557. "show": true,
  1558. "sort": "avg",
  1559. "sortDesc": true,
  1560. "total": false,
  1561. "values": true
  1562. },
  1563. "lines": true,
  1564. "linewidth": 2,
  1565. "links": [],
  1566. "nullPointMode": "null",
  1567. "percentage": false,
  1568. "pointradius": 5,
  1569. "points": false,
  1570. "renderer": "flot",
  1571. "seriesOverrides": [],
  1572. "spaceLength": 10,
  1573. "span": 6,
  1574. "stack": false,
  1575. "steppedLine": false,
  1576. "targets": [
  1577. {
  1578. "calculatedInterval": "2m",
  1579. "datasourceErrors": {},
  1580. "errors": {},
  1581. "expr": "rate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_immediate{instance=\"$host\"}[5m])",
  1582. "format": "time_series",
  1583. "interval": "$interval",
  1584. "intervalFactor": 1,
  1585. "legendFormat": "Table Locks Immediate",
  1586. "metric": "",
  1587. "refId": "A",
  1588. "step": 20
  1589. },
  1590. {
  1591. "calculatedInterval": "2m",
  1592. "datasourceErrors": {},
  1593. "errors": {},
  1594. "expr": "rate(mysql_global_status_table_locks_waited{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_locks_waited{instance=\"$host\"}[5m])",
  1595. "format": "time_series",
  1596. "interval": "$interval",
  1597. "intervalFactor": 1,
  1598. "legendFormat": "Table Locks Waited",
  1599. "metric": "",
  1600. "refId": "B",
  1601. "step": 20
  1602. }
  1603. ],
  1604. "thresholds": [],
  1605. "timeFrom": null,
  1606. "timeShift": null,
  1607. "title": "MySQL Table Locks",
  1608. "tooltip": {
  1609. "msResolution": false,
  1610. "shared": true,
  1611. "sort": 0,
  1612. "value_type": "individual"
  1613. },
  1614. "type": "graph",
  1615. "xaxis": {
  1616. "buckets": null,
  1617. "mode": "time",
  1618. "name": null,
  1619. "show": true,
  1620. "values": []
  1621. },
  1622. "yaxes": [
  1623. {
  1624. "format": "short",
  1625. "logBase": 1,
  1626. "max": null,
  1627. "min": 0,
  1628. "show": true
  1629. },
  1630. {
  1631. "format": "short",
  1632. "logBase": 1,
  1633. "max": null,
  1634. "min": 0,
  1635. "show": true
  1636. }
  1637. ]
  1638. }
  1639. ],
  1640. "repeat": null,
  1641. "repeatIteration": null,
  1642. "repeatRowId": null,
  1643. "showTitle": false,
  1644. "title": "Aborted",
  1645. "titleSize": "h6"
  1646. },
  1647. {
  1648. "collapse": false,
  1649. "height": "250px",
  1650. "panels": [
  1651. {
  1652. "aliasColors": {},
  1653. "bars": false,
  1654. "dashLength": 10,
  1655. "dashes": false,
  1656. "datasource": "Prometheus",
  1657. "decimals": 2,
  1658. "description": "Shows how much network traffic is generated by MySQL.\n\n**Outbound** is traffic sent from the server.\n\n**Inbound** is traffic received by the server.",
  1659. "editable": true,
  1660. "error": false,
  1661. "fill": 6,
  1662. "grid": {},
  1663. "id": 9,
  1664. "legend": {
  1665. "alignAsTable": true,
  1666. "avg": true,
  1667. "current": false,
  1668. "max": true,
  1669. "min": true,
  1670. "rightSide": false,
  1671. "show": true,
  1672. "sort": "avg",
  1673. "sortDesc": true,
  1674. "total": false,
  1675. "values": true
  1676. },
  1677. "lines": true,
  1678. "linewidth": 2,
  1679. "links": [],
  1680. "nullPointMode": "null",
  1681. "percentage": false,
  1682. "pointradius": 5,
  1683. "points": false,
  1684. "renderer": "flot",
  1685. "seriesOverrides": [],
  1686. "spaceLength": 10,
  1687. "span": 6,
  1688. "stack": true,
  1689. "steppedLine": false,
  1690. "targets": [
  1691. {
  1692. "calculatedInterval": "2m",
  1693. "datasourceErrors": {},
  1694. "errors": {},
  1695. "expr": "rate(mysql_global_status_bytes_received{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_received{instance=\"$host\"}[5m])",
  1696. "format": "time_series",
  1697. "interval": "$interval",
  1698. "intervalFactor": 1,
  1699. "legendFormat": "Inbound",
  1700. "metric": "",
  1701. "refId": "A",
  1702. "step": 20
  1703. },
  1704. {
  1705. "calculatedInterval": "2m",
  1706. "datasourceErrors": {},
  1707. "errors": {},
  1708. "expr": "rate(mysql_global_status_bytes_sent{instance=\"$host\"}[$interval]) or irate(mysql_global_status_bytes_sent{instance=\"$host\"}[5m])",
  1709. "format": "time_series",
  1710. "interval": "$interval",
  1711. "intervalFactor": 1,
  1712. "legendFormat": "Outbound",
  1713. "metric": "",
  1714. "refId": "B",
  1715. "step": 20
  1716. }
  1717. ],
  1718. "thresholds": [],
  1719. "timeFrom": null,
  1720. "timeShift": null,
  1721. "title": "MySQL Network Traffic",
  1722. "tooltip": {
  1723. "msResolution": false,
  1724. "shared": true,
  1725. "sort": 0,
  1726. "value_type": "individual"
  1727. },
  1728. "type": "graph",
  1729. "xaxis": {
  1730. "buckets": null,
  1731. "mode": "time",
  1732. "name": null,
  1733. "show": true,
  1734. "values": []
  1735. },
  1736. "yaxes": [
  1737. {
  1738. "format": "Bps",
  1739. "logBase": 1,
  1740. "max": null,
  1741. "min": 0,
  1742. "show": true
  1743. },
  1744. {
  1745. "format": "none",
  1746. "logBase": 1,
  1747. "max": null,
  1748. "min": 0,
  1749. "show": true
  1750. }
  1751. ]
  1752. },
  1753. {
  1754. "aliasColors": {},
  1755. "bars": true,
  1756. "dashLength": 10,
  1757. "dashes": false,
  1758. "datasource": "Prometheus",
  1759. "decimals": 2,
  1760. "description": "Shows how much data was *sent* from the MySQL server and how much data was *received* by the server every hour in the last 24 hours.",
  1761. "editable": true,
  1762. "error": false,
  1763. "fill": 6,
  1764. "grid": {},
  1765. "height": "250px",
  1766. "id": 381,
  1767. "legend": {
  1768. "alignAsTable": true,
  1769. "avg": true,
  1770. "current": false,
  1771. "max": true,
  1772. "min": true,
  1773. "rightSide": false,
  1774. "show": true,
  1775. "sort": "avg",
  1776. "sortDesc": true,
  1777. "total": false,
  1778. "values": true
  1779. },
  1780. "lines": false,
  1781. "linewidth": 2,
  1782. "links": [],
  1783. "nullPointMode": "null",
  1784. "percentage": false,
  1785. "pointradius": 5,
  1786. "points": false,
  1787. "renderer": "flot",
  1788. "seriesOverrides": [],
  1789. "spaceLength": 10,
  1790. "span": 6,
  1791. "stack": true,
  1792. "steppedLine": false,
  1793. "targets": [
  1794. {
  1795. "calculatedInterval": "2m",
  1796. "datasourceErrors": {},
  1797. "errors": {},
  1798. "expr": "increase(mysql_global_status_bytes_received{instance=\"$host\"}[1h])",
  1799. "format": "time_series",
  1800. "interval": "1h",
  1801. "intervalFactor": 1,
  1802. "legendFormat": "Received",
  1803. "metric": "",
  1804. "refId": "A",
  1805. "step": 3600
  1806. },
  1807. {
  1808. "calculatedInterval": "2m",
  1809. "datasourceErrors": {},
  1810. "errors": {},
  1811. "expr": "increase(mysql_global_status_bytes_sent{instance=\"$host\"}[1h])",
  1812. "format": "time_series",
  1813. "interval": "1h",
  1814. "intervalFactor": 1,
  1815. "legendFormat": "Sent",
  1816. "metric": "",
  1817. "refId": "B",
  1818. "step": 3600
  1819. }
  1820. ],
  1821. "thresholds": [],
  1822. "timeFrom": "24h",
  1823. "timeShift": null,
  1824. "title": "MySQL Network Usage Hourly",
  1825. "tooltip": {
  1826. "msResolution": false,
  1827. "shared": true,
  1828. "sort": 0,
  1829. "value_type": "individual"
  1830. },
  1831. "type": "graph",
  1832. "xaxis": {
  1833. "buckets": null,
  1834. "mode": "time",
  1835. "name": null,
  1836. "show": true,
  1837. "values": []
  1838. },
  1839. "yaxes": [
  1840. {
  1841. "format": "bytes",
  1842. "logBase": 1,
  1843. "max": null,
  1844. "min": 0,
  1845. "show": true
  1846. },
  1847. {
  1848. "format": "none",
  1849. "logBase": 1,
  1850. "max": null,
  1851. "min": 0,
  1852. "show": true
  1853. }
  1854. ]
  1855. }
  1856. ],
  1857. "repeat": null,
  1858. "repeatIteration": null,
  1859. "repeatRowId": null,
  1860. "showTitle": false,
  1861. "title": "Network",
  1862. "titleSize": "h6"
  1863. },
  1864. {
  1865. "collapse": false,
  1866. "height": "250px",
  1867. "panels": [
  1868. {
  1869. "aliasColors": {},
  1870. "bars": false,
  1871. "dashLength": 10,
  1872. "dashes": false,
  1873. "datasource": "Prometheus",
  1874. "decimals": 0,
  1875. "description": "Shows various uses of memory within MySQL.\n\n**System Memory** is the total memory for the system.\n\n**InnoDB Buffer Pool Data** is the size of the [InnoDB buffer pool](https://dev.mysql.com/doc/refman/5.7/en/innodb-buffer-pool.html) for caching data and indexes in memory.\n\n**TokuDB Cache Size** is the size of the [TokuDB cache table](https://www.percona.com/doc/percona-server/LATEST/tokudb/tokudb_variables.html#tokudb_cache_size). For more information, see [Considerations to Run TokuDB in Production](https://www.percona.com/doc/percona-server/LATEST/tokudb/tokudb_quickstart.html#considerations-to-run-tokudb-in-production)\n\n**Key Buffer Size** is the size of the [buffer used for index blocks](https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_key_buffer_size) in MyISAM tables. The key buffer is also known as the *key cache*.\n \n**Adaptive Hash Index Size** is the size of the [adaptive hash index](https://dev.mysql.com/doc/refman/5.7/en/innodb-adaptive-hash.html), which enables InnoDB to perform more like an in-memory database. 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. This allows for very fast hashed lookups.\n\n**Query Cache Size** is the size of the [MySQL query cache](https://dev.mysql.com/doc/refman/5.7/en/query-cache.html), which 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, because only one thread can do an operation in the query cache at a time. This serialization is true for `SELECT`, `INSERT`, `UPDATE`, and `DELETE` queries. The larger the query cache size is set to, the slower those operations become.\n\n**InnoDB Dictionary Size** is the size of the [InnoDB data dictionary](https://dev.mysql.com/doc/refman/5.7/en/innodb-data-dictionary.html), which is the internal catalog of tables. InnoDB stores the data dictionary on disk, and loads entries into memory while the server is running. This is somewhat analogous to MySQL\u2018s table cache, but instead of operating at the server level, it is internal to the InnoDB storage engine.\n\n**InnoDB Log Buffer Size** the size of the [InnoDB redo log buffer](https://dev.mysql.com/doc/refman/5.6/en/innodb-redo-log-buffer.html). It allows transactions to run without having to write the log to disk until the transaction commits.",
  1876. "editable": true,
  1877. "error": false,
  1878. "fill": 6,
  1879. "grid": {},
  1880. "id": 50,
  1881. "legend": {
  1882. "alignAsTable": true,
  1883. "avg": true,
  1884. "current": false,
  1885. "hideEmpty": true,
  1886. "hideZero": true,
  1887. "max": true,
  1888. "min": true,
  1889. "rightSide": true,
  1890. "show": true,
  1891. "sort": "avg",
  1892. "sortDesc": true,
  1893. "total": false,
  1894. "values": true
  1895. },
  1896. "lines": true,
  1897. "linewidth": 2,
  1898. "links": [],
  1899. "nullPointMode": "null",
  1900. "percentage": false,
  1901. "pointradius": 5,
  1902. "points": false,
  1903. "renderer": "flot",
  1904. "seriesOverrides": [
  1905. {
  1906. "alias": "System Memory",
  1907. "fill": 0,
  1908. "stack": false
  1909. }
  1910. ],
  1911. "spaceLength": 10,
  1912. "span": 12,
  1913. "stack": true,
  1914. "steppedLine": false,
  1915. "targets": [
  1916. {
  1917. "expr": "node_memory_MemTotal{instance=\"$host\"}",
  1918. "format": "time_series",
  1919. "intervalFactor": 2,
  1920. "legendFormat": "System Memory",
  1921. "refId": "G",
  1922. "step": 4
  1923. },
  1924. {
  1925. "expr": "mysql_global_status_innodb_page_size{instance=\"$host\"} * on (instance) mysql_global_status_buffer_pool_pages{instance=\"$host\",state=\"data\"}",
  1926. "format": "time_series",
  1927. "hide": false,
  1928. "interval": "$interval",
  1929. "intervalFactor": 1,
  1930. "legendFormat": "InnoDB Buffer Pool Data",
  1931. "refId": "A",
  1932. "step": 20
  1933. },
  1934. {
  1935. "expr": "mysql_global_variables_innodb_log_buffer_size{instance=\"$host\"}",
  1936. "format": "time_series",
  1937. "interval": "$interval",
  1938. "intervalFactor": 1,
  1939. "legendFormat": "InnoDB Log Buffer Size",
  1940. "refId": "D",
  1941. "step": 20
  1942. },
  1943. {
  1944. "expr": "mysql_global_variables_innodb_additional_mem_pool_size{instance=\"$host\"}",
  1945. "format": "time_series",
  1946. "interval": "$interval",
  1947. "intervalFactor": 2,
  1948. "legendFormat": "InnoDB Additional Memory Pool Size",
  1949. "refId": "H",
  1950. "step": 40
  1951. },
  1952. {
  1953. "expr": "mysql_global_status_innodb_mem_dictionary{instance=\"$host\"}",
  1954. "format": "time_series",
  1955. "interval": "$interval",
  1956. "intervalFactor": 1,
  1957. "legendFormat": "InnoDB Dictionary Size",
  1958. "refId": "F",
  1959. "step": 20
  1960. },
  1961. {
  1962. "expr": "mysql_global_variables_key_buffer_size{instance=\"$host\"}",
  1963. "format": "time_series",
  1964. "interval": "$interval",
  1965. "intervalFactor": 1,
  1966. "legendFormat": "Key Buffer Size",
  1967. "refId": "B",
  1968. "step": 20
  1969. },
  1970. {
  1971. "expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
  1972. "format": "time_series",
  1973. "interval": "$interval",
  1974. "intervalFactor": 1,
  1975. "legendFormat": "Query Cache Size",
  1976. "refId": "C",
  1977. "step": 20
  1978. },
  1979. {
  1980. "expr": "mysql_global_status_innodb_mem_adaptive_hash{instance=\"$host\"}",
  1981. "format": "time_series",
  1982. "interval": "$interval",
  1983. "intervalFactor": 1,
  1984. "legendFormat": "Adaptive Hash Index Size",
  1985. "refId": "E",
  1986. "step": 20
  1987. },
  1988. {
  1989. "expr": "mysql_global_variables_tokudb_cache_size{instance=\"$host\"}",
  1990. "format": "time_series",
  1991. "interval": "$interval",
  1992. "intervalFactor": 1,
  1993. "legendFormat": "TokuDB Cache Size",
  1994. "refId": "I",
  1995. "step": 20
  1996. }
  1997. ],
  1998. "thresholds": [],
  1999. "timeFrom": null,
  2000. "timeShift": null,
  2001. "title": "MySQL Internal Memory Overview",
  2002. "tooltip": {
  2003. "msResolution": false,
  2004. "shared": true,
  2005. "sort": 0,
  2006. "value_type": "individual"
  2007. },
  2008. "type": "graph",
  2009. "xaxis": {
  2010. "buckets": null,
  2011. "mode": "time",
  2012. "name": null,
  2013. "show": true,
  2014. "values": []
  2015. },
  2016. "yaxes": [
  2017. {
  2018. "format": "bytes",
  2019. "label": "",
  2020. "logBase": 1,
  2021. "max": null,
  2022. "min": 0,
  2023. "show": true
  2024. },
  2025. {
  2026. "format": "short",
  2027. "label": null,
  2028. "logBase": 1,
  2029. "max": null,
  2030. "min": null,
  2031. "show": true
  2032. }
  2033. ]
  2034. }
  2035. ],
  2036. "repeat": null,
  2037. "repeatIteration": null,
  2038. "repeatRowId": null,
  2039. "showTitle": false,
  2040. "title": "Memory",
  2041. "titleSize": "h6"
  2042. },
  2043. {
  2044. "collapse": false,
  2045. "height": "250px",
  2046. "panels": [
  2047. {
  2048. "aliasColors": {},
  2049. "bars": false,
  2050. "dashLength": 10,
  2051. "dashes": false,
  2052. "datasource": "Prometheus",
  2053. "decimals": 2,
  2054. "editable": true,
  2055. "error": false,
  2056. "fill": 2,
  2057. "grid": {},
  2058. "id": 14,
  2059. "legend": {
  2060. "alignAsTable": true,
  2061. "avg": true,
  2062. "current": false,
  2063. "hideEmpty": false,
  2064. "hideZero": false,
  2065. "max": true,
  2066. "min": true,
  2067. "rightSide": true,
  2068. "show": true,
  2069. "sort": "avg",
  2070. "sortDesc": true,
  2071. "total": false,
  2072. "values": true
  2073. },
  2074. "lines": true,
  2075. "linewidth": 2,
  2076. "links": [],
  2077. "nullPointMode": "null",
  2078. "percentage": false,
  2079. "pointradius": 5,
  2080. "points": false,
  2081. "renderer": "flot",
  2082. "seriesOverrides": [],
  2083. "spaceLength": 10,
  2084. "span": 12,
  2085. "stack": false,
  2086. "steppedLine": false,
  2087. "targets": [
  2088. {
  2089. "calculatedInterval": "2m",
  2090. "datasourceErrors": {},
  2091. "errors": {},
  2092. "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)",
  2093. "hide": false,
  2094. "interval": "$interval",
  2095. "intervalFactor": 1,
  2096. "legendFormat": "Com_{{ command }}",
  2097. "metric": "",
  2098. "refId": "B",
  2099. "step": 20
  2100. }
  2101. ],
  2102. "thresholds": [],
  2103. "timeFrom": null,
  2104. "timeShift": null,
  2105. "title": "Top Command Counters",
  2106. "tooltip": {
  2107. "msResolution": false,
  2108. "shared": true,
  2109. "sort": 0,
  2110. "value_type": "individual"
  2111. },
  2112. "type": "graph",
  2113. "xaxis": {
  2114. "buckets": null,
  2115. "mode": "time",
  2116. "name": null,
  2117. "show": true,
  2118. "values": []
  2119. },
  2120. "yaxes": [
  2121. {
  2122. "format": "short",
  2123. "logBase": 1,
  2124. "max": null,
  2125. "min": 0,
  2126. "show": true
  2127. },
  2128. {
  2129. "format": "short",
  2130. "logBase": 1,
  2131. "max": null,
  2132. "min": 0,
  2133. "show": true
  2134. }
  2135. ]
  2136. },
  2137. {
  2138. "aliasColors": {},
  2139. "bars": true,
  2140. "dashLength": 10,
  2141. "dashes": false,
  2142. "datasource": "Prometheus",
  2143. "decimals": 2,
  2144. "editable": true,
  2145. "error": false,
  2146. "fill": 6,
  2147. "grid": {},
  2148. "id": 39,
  2149. "legend": {
  2150. "alignAsTable": true,
  2151. "avg": true,
  2152. "current": false,
  2153. "max": true,
  2154. "min": true,
  2155. "rightSide": true,
  2156. "show": true,
  2157. "sort": "avg",
  2158. "sortDesc": true,
  2159. "total": false,
  2160. "values": true
  2161. },
  2162. "lines": false,
  2163. "linewidth": 2,
  2164. "links": [],
  2165. "nullPointMode": "null",
  2166. "percentage": false,
  2167. "pointradius": 5,
  2168. "points": false,
  2169. "renderer": "flot",
  2170. "seriesOverrides": [],
  2171. "spaceLength": 10,
  2172. "span": 12,
  2173. "stack": true,
  2174. "steppedLine": false,
  2175. "targets": [
  2176. {
  2177. "calculatedInterval": "2m",
  2178. "datasourceErrors": {},
  2179. "errors": {},
  2180. "expr": "topk(5, increase(mysql_global_status_commands_total{instance=\"$host\"}[1h])>0)",
  2181. "interval": "1h",
  2182. "intervalFactor": 1,
  2183. "legendFormat": "Com_{{ command }}",
  2184. "metric": "",
  2185. "refId": "A",
  2186. "step": 3600
  2187. }
  2188. ],
  2189. "thresholds": [],
  2190. "timeFrom": "24h",
  2191. "timeShift": null,
  2192. "title": "Top Command Counters Hourly",
  2193. "tooltip": {
  2194. "msResolution": false,
  2195. "shared": true,
  2196. "sort": 0,
  2197. "value_type": "individual"
  2198. },
  2199. "type": "graph",
  2200. "xaxis": {
  2201. "buckets": null,
  2202. "mode": "time",
  2203. "name": null,
  2204. "show": true,
  2205. "values": []
  2206. },
  2207. "yaxes": [
  2208. {
  2209. "format": "short",
  2210. "logBase": 1,
  2211. "max": null,
  2212. "min": 0,
  2213. "show": true
  2214. },
  2215. {
  2216. "format": "short",
  2217. "logBase": 1,
  2218. "max": null,
  2219. "min": 0,
  2220. "show": true
  2221. }
  2222. ]
  2223. },
  2224. {
  2225. "aliasColors": {},
  2226. "bars": false,
  2227. "dashLength": 10,
  2228. "dashes": false,
  2229. "datasource": "Prometheus",
  2230. "decimals": 2,
  2231. "editable": true,
  2232. "error": false,
  2233. "fill": 2,
  2234. "grid": {},
  2235. "id": 8,
  2236. "legend": {
  2237. "alignAsTable": true,
  2238. "avg": true,
  2239. "current": false,
  2240. "hideZero": true,
  2241. "max": true,
  2242. "min": true,
  2243. "rightSide": true,
  2244. "show": true,
  2245. "sort": "avg",
  2246. "sortDesc": true,
  2247. "total": false,
  2248. "values": true
  2249. },
  2250. "lines": true,
  2251. "linewidth": 2,
  2252. "links": [],
  2253. "nullPointMode": "null",
  2254. "percentage": false,
  2255. "pointradius": 5,
  2256. "points": false,
  2257. "renderer": "flot",
  2258. "seriesOverrides": [],
  2259. "spaceLength": 10,
  2260. "span": 12,
  2261. "stack": false,
  2262. "steppedLine": false,
  2263. "targets": [
  2264. {
  2265. "calculatedInterval": "2m",
  2266. "datasourceErrors": {},
  2267. "errors": {},
  2268. "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])",
  2269. "interval": "$interval",
  2270. "intervalFactor": 1,
  2271. "legendFormat": "{{ handler }}",
  2272. "metric": "",
  2273. "refId": "J",
  2274. "step": 20
  2275. }
  2276. ],
  2277. "thresholds": [],
  2278. "timeFrom": null,
  2279. "timeShift": null,
  2280. "title": "MySQL Handlers",
  2281. "tooltip": {
  2282. "msResolution": false,
  2283. "shared": true,
  2284. "sort": 0,
  2285. "value_type": "individual"
  2286. },
  2287. "type": "graph",
  2288. "xaxis": {
  2289. "buckets": null,
  2290. "mode": "time",
  2291. "name": null,
  2292. "show": true,
  2293. "values": []
  2294. },
  2295. "yaxes": [
  2296. {
  2297. "format": "short",
  2298. "logBase": 1,
  2299. "max": null,
  2300. "min": 0,
  2301. "show": true
  2302. },
  2303. {
  2304. "format": "short",
  2305. "logBase": 1,
  2306. "max": null,
  2307. "min": 0,
  2308. "show": true
  2309. }
  2310. ]
  2311. },
  2312. {
  2313. "aliasColors": {},
  2314. "bars": false,
  2315. "dashLength": 10,
  2316. "dashes": false,
  2317. "datasource": "Prometheus",
  2318. "decimals": 2,
  2319. "editable": true,
  2320. "error": false,
  2321. "fill": 2,
  2322. "grid": {},
  2323. "id": 28,
  2324. "legend": {
  2325. "alignAsTable": true,
  2326. "avg": true,
  2327. "current": false,
  2328. "hideZero": true,
  2329. "max": true,
  2330. "min": true,
  2331. "rightSide": true,
  2332. "show": true,
  2333. "sort": "avg",
  2334. "sortDesc": true,
  2335. "total": false,
  2336. "values": true
  2337. },
  2338. "lines": true,
  2339. "linewidth": 2,
  2340. "links": [],
  2341. "nullPointMode": "null",
  2342. "percentage": false,
  2343. "pointradius": 5,
  2344. "points": false,
  2345. "renderer": "flot",
  2346. "seriesOverrides": [],
  2347. "spaceLength": 10,
  2348. "span": 12,
  2349. "stack": false,
  2350. "steppedLine": false,
  2351. "targets": [
  2352. {
  2353. "calculatedInterval": "2m",
  2354. "datasourceErrors": {},
  2355. "errors": {},
  2356. "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])",
  2357. "interval": "$interval",
  2358. "intervalFactor": 1,
  2359. "legendFormat": "{{ handler }}",
  2360. "metric": "",
  2361. "refId": "A",
  2362. "step": 20
  2363. }
  2364. ],
  2365. "thresholds": [],
  2366. "timeFrom": null,
  2367. "timeShift": null,
  2368. "title": "MySQL Transaction Handlers",
  2369. "tooltip": {
  2370. "msResolution": false,
  2371. "shared": true,
  2372. "sort": 0,
  2373. "value_type": "individual"
  2374. },
  2375. "type": "graph",
  2376. "xaxis": {
  2377. "buckets": null,
  2378. "mode": "time",
  2379. "name": null,
  2380. "show": true,
  2381. "values": []
  2382. },
  2383. "yaxes": [
  2384. {
  2385. "format": "short",
  2386. "logBase": 1,
  2387. "max": null,
  2388. "min": 0,
  2389. "show": true
  2390. },
  2391. {
  2392. "format": "short",
  2393. "logBase": 1,
  2394. "max": null,
  2395. "min": 0,
  2396. "show": true
  2397. }
  2398. ]
  2399. },
  2400. {
  2401. "aliasColors": {},
  2402. "bars": false,
  2403. "dashLength": 10,
  2404. "dashes": false,
  2405. "datasource": "Prometheus",
  2406. "decimals": 2,
  2407. "editable": true,
  2408. "error": false,
  2409. "fill": 0,
  2410. "grid": {},
  2411. "id": 40,
  2412. "legend": {
  2413. "alignAsTable": true,
  2414. "avg": true,
  2415. "current": false,
  2416. "hideZero": true,
  2417. "max": true,
  2418. "min": false,
  2419. "rightSide": true,
  2420. "show": true,
  2421. "sort": "avg",
  2422. "sortDesc": true,
  2423. "total": false,
  2424. "values": true
  2425. },
  2426. "lines": true,
  2427. "linewidth": 2,
  2428. "links": [],
  2429. "nullPointMode": "null",
  2430. "percentage": false,
  2431. "pointradius": 5,
  2432. "points": false,
  2433. "renderer": "flot",
  2434. "seriesOverrides": [],
  2435. "spaceLength": 10,
  2436. "span": 12,
  2437. "stack": false,
  2438. "steppedLine": false,
  2439. "targets": [
  2440. {
  2441. "calculatedInterval": "2m",
  2442. "datasourceErrors": {},
  2443. "errors": {},
  2444. "expr": "mysql_info_schema_threads{instance=\"$host\"}",
  2445. "interval": "$interval",
  2446. "intervalFactor": 1,
  2447. "legendFormat": "{{ state }}",
  2448. "metric": "",
  2449. "refId": "A",
  2450. "step": 20
  2451. }
  2452. ],
  2453. "thresholds": [],
  2454. "timeFrom": null,
  2455. "timeShift": null,
  2456. "title": "Process States",
  2457. "tooltip": {
  2458. "msResolution": false,
  2459. "shared": true,
  2460. "sort": 0,
  2461. "value_type": "individual"
  2462. },
  2463. "type": "graph",
  2464. "xaxis": {
  2465. "buckets": null,
  2466. "mode": "time",
  2467. "name": null,
  2468. "show": true,
  2469. "values": []
  2470. },
  2471. "yaxes": [
  2472. {
  2473. "format": "short",
  2474. "logBase": 1,
  2475. "max": null,
  2476. "min": 0,
  2477. "show": true
  2478. },
  2479. {
  2480. "format": "short",
  2481. "logBase": 1,
  2482. "max": null,
  2483. "min": 0,
  2484. "show": true
  2485. }
  2486. ]
  2487. },
  2488. {
  2489. "aliasColors": {},
  2490. "bars": true,
  2491. "dashLength": 10,
  2492. "dashes": false,
  2493. "datasource": "Prometheus",
  2494. "decimals": 2,
  2495. "editable": true,
  2496. "error": false,
  2497. "fill": 6,
  2498. "grid": {},
  2499. "id": 49,
  2500. "legend": {
  2501. "alignAsTable": true,
  2502. "avg": true,
  2503. "current": false,
  2504. "hideZero": true,
  2505. "max": true,
  2506. "min": false,
  2507. "rightSide": true,
  2508. "show": true,
  2509. "sort": "avg",
  2510. "sortDesc": true,
  2511. "total": false,
  2512. "values": true
  2513. },
  2514. "lines": false,
  2515. "linewidth": 2,
  2516. "links": [],
  2517. "nullPointMode": "null",
  2518. "percentage": false,
  2519. "pointradius": 5,
  2520. "points": false,
  2521. "renderer": "flot",
  2522. "seriesOverrides": [],
  2523. "spaceLength": 10,
  2524. "span": 12,
  2525. "stack": true,
  2526. "steppedLine": false,
  2527. "targets": [
  2528. {
  2529. "calculatedInterval": "2m",
  2530. "datasourceErrors": {},
  2531. "errors": {},
  2532. "expr": "topk(5, sum_over_time(mysql_info_schema_threads{instance=\"$host\"}[1h]))",
  2533. "interval": "1h",
  2534. "intervalFactor": 1,
  2535. "legendFormat": "{{ state }}",
  2536. "metric": "",
  2537. "refId": "A",
  2538. "step": 3600
  2539. }
  2540. ],
  2541. "thresholds": [],
  2542. "timeFrom": "24h",
  2543. "timeShift": null,
  2544. "title": "Top Process States Hourly",
  2545. "tooltip": {
  2546. "msResolution": false,
  2547. "shared": true,
  2548. "sort": 0,
  2549. "value_type": "individual"
  2550. },
  2551. "type": "graph",
  2552. "xaxis": {
  2553. "buckets": null,
  2554. "mode": "time",
  2555. "name": null,
  2556. "show": true,
  2557. "values": []
  2558. },
  2559. "yaxes": [
  2560. {
  2561. "format": "short",
  2562. "logBase": 1,
  2563. "max": null,
  2564. "min": 0,
  2565. "show": true
  2566. },
  2567. {
  2568. "format": "short",
  2569. "logBase": 1,
  2570. "max": null,
  2571. "min": 0,
  2572. "show": true
  2573. }
  2574. ]
  2575. }
  2576. ],
  2577. "repeat": null,
  2578. "repeatIteration": null,
  2579. "repeatRowId": null,
  2580. "showTitle": true,
  2581. "title": "Command, Handlers, Processes",
  2582. "titleSize": "h6"
  2583. },
  2584. {
  2585. "collapse": false,
  2586. "height": "250px",
  2587. "panels": [
  2588. {
  2589. "aliasColors": {},
  2590. "bars": false,
  2591. "dashLength": 10,
  2592. "dashes": false,
  2593. "datasource": "Prometheus",
  2594. "decimals": 2,
  2595. "editable": true,
  2596. "error": false,
  2597. "fill": 2,
  2598. "grid": {},
  2599. "id": 46,
  2600. "legend": {
  2601. "alignAsTable": true,
  2602. "avg": true,
  2603. "current": false,
  2604. "max": true,
  2605. "min": true,
  2606. "rightSide": false,
  2607. "show": true,
  2608. "sort": "avg",
  2609. "sortDesc": true,
  2610. "total": false,
  2611. "values": true
  2612. },
  2613. "lines": true,
  2614. "linewidth": 2,
  2615. "links": [],
  2616. "nullPointMode": "null",
  2617. "percentage": false,
  2618. "pointradius": 5,
  2619. "points": false,
  2620. "renderer": "flot",
  2621. "seriesOverrides": [],
  2622. "spaceLength": 10,
  2623. "span": 6,
  2624. "stack": false,
  2625. "steppedLine": false,
  2626. "targets": [
  2627. {
  2628. "calculatedInterval": "2m",
  2629. "datasourceErrors": {},
  2630. "errors": {},
  2631. "expr": "mysql_global_status_qcache_free_memory{instance=\"$host\"}",
  2632. "interval": "$interval",
  2633. "intervalFactor": 1,
  2634. "legendFormat": "Free Memory",
  2635. "metric": "",
  2636. "refId": "F",
  2637. "step": 20
  2638. },
  2639. {
  2640. "calculatedInterval": "2m",
  2641. "datasourceErrors": {},
  2642. "errors": {},
  2643. "expr": "mysql_global_variables_query_cache_size{instance=\"$host\"}",
  2644. "interval": "$interval",
  2645. "intervalFactor": 1,
  2646. "legendFormat": "Query Cache Size",
  2647. "metric": "",
  2648. "refId": "E",
  2649. "step": 20
  2650. }
  2651. ],
  2652. "thresholds": [],
  2653. "timeFrom": null,
  2654. "timeShift": null,
  2655. "title": "MySQL Query Cache Memory",
  2656. "tooltip": {
  2657. "msResolution": false,
  2658. "shared": true,
  2659. "sort": 0,
  2660. "value_type": "individual"
  2661. },
  2662. "type": "graph",
  2663. "xaxis": {
  2664. "buckets": null,
  2665. "mode": "time",
  2666. "name": null,
  2667. "show": true,
  2668. "values": []
  2669. },
  2670. "yaxes": [
  2671. {
  2672. "format": "bytes",
  2673. "logBase": 1,
  2674. "max": null,
  2675. "min": 0,
  2676. "show": true
  2677. },
  2678. {
  2679. "format": "short",
  2680. "logBase": 1,
  2681. "max": null,
  2682. "min": 0,
  2683. "show": true
  2684. }
  2685. ]
  2686. },
  2687. {
  2688. "aliasColors": {},
  2689. "bars": false,
  2690. "dashLength": 10,
  2691. "dashes": false,
  2692. "datasource": "Prometheus",
  2693. "decimals": 2,
  2694. "editable": true,
  2695. "error": false,
  2696. "fill": 2,
  2697. "grid": {},
  2698. "height": "",
  2699. "id": 45,
  2700. "legend": {
  2701. "alignAsTable": true,
  2702. "avg": true,
  2703. "current": false,
  2704. "max": true,
  2705. "min": true,
  2706. "rightSide": false,
  2707. "show": true,
  2708. "sort": "avg",
  2709. "sortDesc": true,
  2710. "total": false,
  2711. "values": true
  2712. },
  2713. "lines": true,
  2714. "linewidth": 2,
  2715. "links": [],
  2716. "nullPointMode": "null",
  2717. "percentage": false,
  2718. "pointradius": 5,
  2719. "points": false,
  2720. "renderer": "flot",
  2721. "seriesOverrides": [],
  2722. "spaceLength": 10,
  2723. "span": 6,
  2724. "stack": false,
  2725. "steppedLine": false,
  2726. "targets": [
  2727. {
  2728. "calculatedInterval": "2m",
  2729. "datasourceErrors": {},
  2730. "errors": {},
  2731. "expr": "rate(mysql_global_status_qcache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_hits{instance=\"$host\"}[5m])",
  2732. "interval": "$interval",
  2733. "intervalFactor": 1,
  2734. "legendFormat": "Hits",
  2735. "metric": "",
  2736. "refId": "B",
  2737. "step": 20
  2738. },
  2739. {
  2740. "calculatedInterval": "2m",
  2741. "datasourceErrors": {},
  2742. "errors": {},
  2743. "expr": "rate(mysql_global_status_qcache_inserts{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_inserts{instance=\"$host\"}[5m])",
  2744. "interval": "$interval",
  2745. "intervalFactor": 1,
  2746. "legendFormat": "Inserts",
  2747. "metric": "",
  2748. "refId": "C",
  2749. "step": 20
  2750. },
  2751. {
  2752. "calculatedInterval": "2m",
  2753. "datasourceErrors": {},
  2754. "errors": {},
  2755. "expr": "rate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_not_cached{instance=\"$host\"}[5m])",
  2756. "interval": "$interval",
  2757. "intervalFactor": 1,
  2758. "legendFormat": "Not Cached",
  2759. "metric": "",
  2760. "refId": "D",
  2761. "step": 20
  2762. },
  2763. {
  2764. "calculatedInterval": "2m",
  2765. "datasourceErrors": {},
  2766. "errors": {},
  2767. "expr": "rate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_qcache_lowmem_prunes{instance=\"$host\"}[5m])",
  2768. "interval": "$interval",
  2769. "intervalFactor": 1,
  2770. "legendFormat": "Prunes",
  2771. "metric": "",
  2772. "refId": "F",
  2773. "step": 20
  2774. },
  2775. {
  2776. "calculatedInterval": "2m",
  2777. "datasourceErrors": {},
  2778. "errors": {},
  2779. "expr": "mysql_global_status_qcache_queries_in_cache{instance=\"$host\"}",
  2780. "interval": "$interval",
  2781. "intervalFactor": 1,
  2782. "legendFormat": "Queries in Cache",
  2783. "metric": "",
  2784. "refId": "E",
  2785. "step": 20
  2786. }
  2787. ],
  2788. "thresholds": [],
  2789. "timeFrom": null,
  2790. "timeShift": null,
  2791. "title": "MySQL Query Cache Activity",
  2792. "tooltip": {
  2793. "msResolution": false,
  2794. "shared": true,
  2795. "sort": 0,
  2796. "value_type": "individual"
  2797. },
  2798. "type": "graph",
  2799. "xaxis": {
  2800. "buckets": null,
  2801. "mode": "time",
  2802. "name": null,
  2803. "show": true,
  2804. "values": []
  2805. },
  2806. "yaxes": [
  2807. {
  2808. "format": "short",
  2809. "logBase": 1,
  2810. "max": null,
  2811. "min": 0,
  2812. "show": true
  2813. },
  2814. {
  2815. "format": "short",
  2816. "logBase": 1,
  2817. "max": null,
  2818. "min": 0,
  2819. "show": true
  2820. }
  2821. ]
  2822. }
  2823. ],
  2824. "repeat": null,
  2825. "repeatIteration": null,
  2826. "repeatRowId": null,
  2827. "showTitle": true,
  2828. "title": "Query Cache",
  2829. "titleSize": "h6"
  2830. },
  2831. {
  2832. "collapse": false,
  2833. "height": "250px",
  2834. "panels": [
  2835. {
  2836. "aliasColors": {},
  2837. "bars": false,
  2838. "dashLength": 10,
  2839. "dashes": false,
  2840. "datasource": "Prometheus",
  2841. "decimals": 2,
  2842. "editable": true,
  2843. "error": false,
  2844. "fill": 2,
  2845. "grid": {},
  2846. "id": 43,
  2847. "legend": {
  2848. "alignAsTable": true,
  2849. "avg": true,
  2850. "current": false,
  2851. "max": true,
  2852. "min": true,
  2853. "rightSide": false,
  2854. "show": true,
  2855. "total": false,
  2856. "values": true
  2857. },
  2858. "lines": true,
  2859. "linewidth": 2,
  2860. "links": [],
  2861. "nullPointMode": "null",
  2862. "percentage": false,
  2863. "pointradius": 5,
  2864. "points": false,
  2865. "renderer": "flot",
  2866. "seriesOverrides": [],
  2867. "spaceLength": 10,
  2868. "span": 6,
  2869. "stack": false,
  2870. "steppedLine": false,
  2871. "targets": [
  2872. {
  2873. "calculatedInterval": "2m",
  2874. "datasourceErrors": {},
  2875. "errors": {},
  2876. "expr": "rate(mysql_global_status_opened_files{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_files{instance=\"$host\"}[5m])",
  2877. "interval": "$interval",
  2878. "intervalFactor": 1,
  2879. "legendFormat": "Openings",
  2880. "metric": "",
  2881. "refId": "A",
  2882. "step": 20
  2883. }
  2884. ],
  2885. "thresholds": [],
  2886. "timeFrom": null,
  2887. "timeShift": null,
  2888. "title": "MySQL File Openings",
  2889. "tooltip": {
  2890. "msResolution": false,
  2891. "shared": true,
  2892. "sort": 0,
  2893. "value_type": "individual"
  2894. },
  2895. "type": "graph",
  2896. "xaxis": {
  2897. "buckets": null,
  2898. "mode": "time",
  2899. "name": null,
  2900. "show": true,
  2901. "values": []
  2902. },
  2903. "yaxes": [
  2904. {
  2905. "format": "short",
  2906. "logBase": 1,
  2907. "max": null,
  2908. "min": 0,
  2909. "show": true
  2910. },
  2911. {
  2912. "format": "short",
  2913. "logBase": 1,
  2914. "max": null,
  2915. "min": 0,
  2916. "show": true
  2917. }
  2918. ]
  2919. },
  2920. {
  2921. "aliasColors": {},
  2922. "bars": false,
  2923. "dashLength": 10,
  2924. "dashes": false,
  2925. "datasource": "Prometheus",
  2926. "decimals": 2,
  2927. "editable": true,
  2928. "error": false,
  2929. "fill": 2,
  2930. "grid": {},
  2931. "id": 41,
  2932. "legend": {
  2933. "alignAsTable": true,
  2934. "avg": true,
  2935. "current": false,
  2936. "max": true,
  2937. "min": true,
  2938. "rightSide": false,
  2939. "show": true,
  2940. "sortDesc": true,
  2941. "total": false,
  2942. "values": true
  2943. },
  2944. "lines": true,
  2945. "linewidth": 2,
  2946. "links": [],
  2947. "nullPointMode": "null",
  2948. "percentage": false,
  2949. "pointradius": 5,
  2950. "points": false,
  2951. "renderer": "flot",
  2952. "seriesOverrides": [],
  2953. "spaceLength": 10,
  2954. "span": 6,
  2955. "stack": false,
  2956. "steppedLine": false,
  2957. "targets": [
  2958. {
  2959. "calculatedInterval": "2m",
  2960. "datasourceErrors": {},
  2961. "errors": {},
  2962. "expr": "mysql_global_status_open_files{instance=\"$host\"}",
  2963. "interval": "$interval",
  2964. "intervalFactor": 1,
  2965. "legendFormat": "Open Files",
  2966. "metric": "",
  2967. "refId": "A",
  2968. "step": 20
  2969. },
  2970. {
  2971. "calculatedInterval": "2m",
  2972. "datasourceErrors": {},
  2973. "errors": {},
  2974. "expr": "mysql_global_variables_open_files_limit{instance=\"$host\"}",
  2975. "interval": "$interval",
  2976. "intervalFactor": 1,
  2977. "legendFormat": "Open Files Limit",
  2978. "metric": "",
  2979. "refId": "D",
  2980. "step": 20
  2981. },
  2982. {
  2983. "expr": "mysql_global_status_innodb_num_open_files{instance=\"$host\"}",
  2984. "interval": "$interval",
  2985. "intervalFactor": 1,
  2986. "legendFormat": "InnoDB Open Files",
  2987. "refId": "B",
  2988. "step": 20
  2989. }
  2990. ],
  2991. "thresholds": [],
  2992. "timeFrom": null,
  2993. "timeShift": null,
  2994. "title": "MySQL Open Files",
  2995. "tooltip": {
  2996. "msResolution": false,
  2997. "shared": true,
  2998. "sort": 0,
  2999. "value_type": "individual"
  3000. },
  3001. "type": "graph",
  3002. "xaxis": {
  3003. "buckets": null,
  3004. "mode": "time",
  3005. "name": null,
  3006. "show": true,
  3007. "values": []
  3008. },
  3009. "yaxes": [
  3010. {
  3011. "format": "short",
  3012. "logBase": 1,
  3013. "max": null,
  3014. "min": 0,
  3015. "show": true
  3016. },
  3017. {
  3018. "format": "short",
  3019. "logBase": 1,
  3020. "max": null,
  3021. "min": 0,
  3022. "show": true
  3023. }
  3024. ]
  3025. }
  3026. ],
  3027. "repeat": null,
  3028. "repeatIteration": null,
  3029. "repeatRowId": null,
  3030. "showTitle": true,
  3031. "title": "Files and Tables",
  3032. "titleSize": "h6"
  3033. },
  3034. {
  3035. "collapse": false,
  3036. "height": "250px",
  3037. "panels": [
  3038. {
  3039. "aliasColors": {},
  3040. "bars": false,
  3041. "dashLength": 10,
  3042. "dashes": false,
  3043. "datasource": "Prometheus",
  3044. "decimals": 2,
  3045. "editable": true,
  3046. "error": false,
  3047. "fill": 2,
  3048. "grid": {},
  3049. "id": 44,
  3050. "legend": {
  3051. "alignAsTable": true,
  3052. "avg": true,
  3053. "current": false,
  3054. "max": true,
  3055. "min": true,
  3056. "rightSide": false,
  3057. "show": true,
  3058. "sort": "avg",
  3059. "sortDesc": true,
  3060. "total": false,
  3061. "values": true
  3062. },
  3063. "lines": true,
  3064. "linewidth": 2,
  3065. "links": [],
  3066. "nullPointMode": "null",
  3067. "percentage": false,
  3068. "pointradius": 5,
  3069. "points": false,
  3070. "renderer": "flot",
  3071. "seriesOverrides": [
  3072. {
  3073. "alias": "Table Open Cache Hit Ratio",
  3074. "yaxis": 2
  3075. }
  3076. ],
  3077. "spaceLength": 10,
  3078. "span": 6,
  3079. "stack": false,
  3080. "steppedLine": false,
  3081. "targets": [
  3082. {
  3083. "calculatedInterval": "2m",
  3084. "datasourceErrors": {},
  3085. "errors": {},
  3086. "expr": "rate(mysql_global_status_opened_tables{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_tables{instance=\"$host\"}[5m])",
  3087. "interval": "$interval",
  3088. "intervalFactor": 1,
  3089. "legendFormat": "Openings",
  3090. "metric": "",
  3091. "refId": "A",
  3092. "step": 20
  3093. },
  3094. {
  3095. "expr": "rate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_hits{instance=\"$host\"}[5m])",
  3096. "interval": "$interval",
  3097. "intervalFactor": 1,
  3098. "legendFormat": "Hits",
  3099. "refId": "B",
  3100. "step": 20
  3101. },
  3102. {
  3103. "expr": "rate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_misses{instance=\"$host\"}[5m])",
  3104. "interval": "$interval",
  3105. "intervalFactor": 1,
  3106. "legendFormat": "Misses",
  3107. "refId": "C",
  3108. "step": 20
  3109. },
  3110. {
  3111. "expr": "rate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_table_open_cache_overflows{instance=\"$host\"}[5m])",
  3112. "interval": "$interval",
  3113. "intervalFactor": 1,
  3114. "legendFormat": "Misses due to Overflows",
  3115. "refId": "D",
  3116. "step": 20
  3117. },
  3118. {
  3119. "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])))",
  3120. "interval": "$interval",
  3121. "intervalFactor": 1,
  3122. "legendFormat": "Table Open Cache Hit Ratio",
  3123. "refId": "E",
  3124. "step": 20
  3125. }
  3126. ],
  3127. "thresholds": [],
  3128. "timeFrom": null,
  3129. "timeShift": null,
  3130. "title": "MySQL Table Open Cache Status",
  3131. "tooltip": {
  3132. "msResolution": false,
  3133. "shared": true,
  3134. "sort": 0,
  3135. "value_type": "individual"
  3136. },
  3137. "type": "graph",
  3138. "xaxis": {
  3139. "buckets": null,
  3140. "mode": "time",
  3141. "name": null,
  3142. "show": true,
  3143. "values": []
  3144. },
  3145. "yaxes": [
  3146. {
  3147. "format": "short",
  3148. "logBase": 1,
  3149. "max": null,
  3150. "min": 0,
  3151. "show": true
  3152. },
  3153. {
  3154. "format": "percentunit",
  3155. "logBase": 1,
  3156. "max": null,
  3157. "min": 0,
  3158. "show": true
  3159. }
  3160. ]
  3161. },
  3162. {
  3163. "aliasColors": {},
  3164. "bars": false,
  3165. "dashLength": 10,
  3166. "dashes": false,
  3167. "datasource": "Prometheus",
  3168. "decimals": 2,
  3169. "editable": true,
  3170. "error": false,
  3171. "fill": 2,
  3172. "grid": {},
  3173. "id": 42,
  3174. "legend": {
  3175. "alignAsTable": true,
  3176. "avg": true,
  3177. "current": false,
  3178. "max": true,
  3179. "min": true,
  3180. "rightSide": false,
  3181. "show": true,
  3182. "sort": "avg",
  3183. "sortDesc": true,
  3184. "total": false,
  3185. "values": true
  3186. },
  3187. "lines": true,
  3188. "linewidth": 2,
  3189. "links": [],
  3190. "nullPointMode": "null",
  3191. "percentage": false,
  3192. "pointradius": 5,
  3193. "points": false,
  3194. "renderer": "flot",
  3195. "seriesOverrides": [],
  3196. "spaceLength": 10,
  3197. "span": 6,
  3198. "stack": false,
  3199. "steppedLine": false,
  3200. "targets": [
  3201. {
  3202. "calculatedInterval": "2m",
  3203. "datasourceErrors": {},
  3204. "errors": {},
  3205. "expr": "mysql_global_status_open_tables{instance=\"$host\"}",
  3206. "interval": "$interval",
  3207. "intervalFactor": 1,
  3208. "legendFormat": "Open Tables",
  3209. "metric": "",
  3210. "refId": "B",
  3211. "step": 20
  3212. },
  3213. {
  3214. "calculatedInterval": "2m",
  3215. "datasourceErrors": {},
  3216. "errors": {},
  3217. "expr": "mysql_global_variables_table_open_cache{instance=\"$host\"}",
  3218. "interval": "$interval",
  3219. "intervalFactor": 1,
  3220. "legendFormat": "Table Open Cache",
  3221. "metric": "",
  3222. "refId": "C",
  3223. "step": 20
  3224. }
  3225. ],
  3226. "thresholds": [],
  3227. "timeFrom": null,
  3228. "timeShift": null,
  3229. "title": "MySQL Open Tables",
  3230. "tooltip": {
  3231. "msResolution": false,
  3232. "shared": true,
  3233. "sort": 0,
  3234. "value_type": "individual"
  3235. },
  3236. "type": "graph",
  3237. "xaxis": {
  3238. "buckets": null,
  3239. "mode": "time",
  3240. "name": null,
  3241. "show": true,
  3242. "values": []
  3243. },
  3244. "yaxes": [
  3245. {
  3246. "format": "short",
  3247. "logBase": 1,
  3248. "max": null,
  3249. "min": 0,
  3250. "show": true
  3251. },
  3252. {
  3253. "format": "short",
  3254. "logBase": 1,
  3255. "max": null,
  3256. "min": 0,
  3257. "show": true
  3258. }
  3259. ]
  3260. }
  3261. ],
  3262. "repeat": null,
  3263. "repeatIteration": null,
  3264. "repeatRowId": null,
  3265. "showTitle": false,
  3266. "title": "Table Openings",
  3267. "titleSize": "h6"
  3268. },
  3269. {
  3270. "collapse": false,
  3271. "height": 250,
  3272. "panels": [
  3273. {
  3274. "aliasColors": {},
  3275. "bars": false,
  3276. "dashLength": 10,
  3277. "dashes": false,
  3278. "datasource": "Prometheus",
  3279. "decimals": 2,
  3280. "editable": true,
  3281. "error": false,
  3282. "fill": 2,
  3283. "grid": {},
  3284. "id": 54,
  3285. "legend": {
  3286. "alignAsTable": true,
  3287. "avg": true,
  3288. "current": false,
  3289. "max": true,
  3290. "min": true,
  3291. "rightSide": false,
  3292. "show": true,
  3293. "sort": "avg",
  3294. "sortDesc": true,
  3295. "total": false,
  3296. "values": true
  3297. },
  3298. "lines": true,
  3299. "linewidth": 2,
  3300. "links": [],
  3301. "nullPointMode": "null",
  3302. "percentage": false,
  3303. "pointradius": 5,
  3304. "points": false,
  3305. "renderer": "flot",
  3306. "seriesOverrides": [
  3307. {
  3308. "alias": "Opened Table Definitions",
  3309. "yaxis": 2
  3310. }
  3311. ],
  3312. "spaceLength": 10,
  3313. "span": 6,
  3314. "stack": false,
  3315. "steppedLine": false,
  3316. "targets": [
  3317. {
  3318. "calculatedInterval": "2m",
  3319. "datasourceErrors": {},
  3320. "errors": {},
  3321. "expr": "mysql_global_status_open_table_definitions{instance=\"$host\"}",
  3322. "interval": "$interval",
  3323. "intervalFactor": 1,
  3324. "legendFormat": "Open Table Definitions",
  3325. "metric": "",
  3326. "refId": "B",
  3327. "step": 20
  3328. },
  3329. {
  3330. "calculatedInterval": "2m",
  3331. "datasourceErrors": {},
  3332. "errors": {},
  3333. "expr": "mysql_global_variables_table_definition_cache{instance=\"$host\"}",
  3334. "interval": "$interval",
  3335. "intervalFactor": 1,
  3336. "legendFormat": "Table Definitions Cache Size",
  3337. "metric": "",
  3338. "refId": "C",
  3339. "step": 20
  3340. },
  3341. {
  3342. "expr": "rate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[$interval]) or irate(mysql_global_status_opened_table_definitions{instance=\"$host\"}[5m])",
  3343. "interval": "$interval",
  3344. "intervalFactor": 1,
  3345. "legendFormat": "Opened Table Definitions",
  3346. "refId": "A",
  3347. "step": 20
  3348. }
  3349. ],
  3350. "thresholds": [],
  3351. "timeFrom": null,
  3352. "timeShift": null,
  3353. "title": "MySQL Table Definition Cache",
  3354. "tooltip": {
  3355. "msResolution": false,
  3356. "shared": true,
  3357. "sort": 0,
  3358. "value_type": "individual"
  3359. },
  3360. "type": "graph",
  3361. "xaxis": {
  3362. "buckets": null,
  3363. "mode": "time",
  3364. "name": null,
  3365. "show": true,
  3366. "values": []
  3367. },
  3368. "yaxes": [
  3369. {
  3370. "format": "short",
  3371. "logBase": 1,
  3372. "max": null,
  3373. "min": 0,
  3374. "show": true
  3375. },
  3376. {
  3377. "format": "short",
  3378. "logBase": 1,
  3379. "max": null,
  3380. "min": 0,
  3381. "show": true
  3382. }
  3383. ]
  3384. }
  3385. ],
  3386. "repeat": null,
  3387. "repeatIteration": null,
  3388. "repeatRowId": null,
  3389. "showTitle": false,
  3390. "title": "Dashboard Row",
  3391. "titleSize": "h6"
  3392. },
  3393. {
  3394. "collapse": true,
  3395. "height": "250px",
  3396. "panels": [
  3397. {
  3398. "aliasColors": {},
  3399. "bars": false,
  3400. "dashLength": 10,
  3401. "dashes": false,
  3402. "datasource": "Prometheus",
  3403. "decimals": null,
  3404. "editable": true,
  3405. "error": false,
  3406. "fill": 2,
  3407. "grid": {},
  3408. "id": 31,
  3409. "legend": {
  3410. "alignAsTable": false,
  3411. "avg": true,
  3412. "current": false,
  3413. "hideEmpty": false,
  3414. "max": false,
  3415. "min": false,
  3416. "rightSide": false,
  3417. "show": true,
  3418. "sort": "avg",
  3419. "sortDesc": true,
  3420. "total": false,
  3421. "values": true
  3422. },
  3423. "lines": true,
  3424. "linewidth": 2,
  3425. "links": [],
  3426. "nullPointMode": "null",
  3427. "percentage": false,
  3428. "pointradius": 5,
  3429. "points": false,
  3430. "renderer": "flot",
  3431. "seriesOverrides": [],
  3432. "spaceLength": 10,
  3433. "span": 4,
  3434. "stack": false,
  3435. "steppedLine": false,
  3436. "targets": [
  3437. {
  3438. "calculatedInterval": "2s",
  3439. "datasourceErrors": {},
  3440. "errors": {},
  3441. "expr": "rate(node_vmstat_pgpgin{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=\"$host\"}[5m]) * 1024",
  3442. "interval": "$interval",
  3443. "intervalFactor": 1,
  3444. "legendFormat": "Page In",
  3445. "metric": "",
  3446. "refId": "A",
  3447. "step": 20,
  3448. "target": ""
  3449. },
  3450. {
  3451. "calculatedInterval": "2s",
  3452. "datasourceErrors": {},
  3453. "errors": {},
  3454. "expr": "rate(node_vmstat_pgpgout{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{instance=\"$host\"}[5m]) * 1024",
  3455. "interval": "$interval",
  3456. "intervalFactor": 1,
  3457. "legendFormat": "Page Out",
  3458. "metric": "",
  3459. "refId": "B",
  3460. "step": 20,
  3461. "target": ""
  3462. }
  3463. ],
  3464. "thresholds": [],
  3465. "timeFrom": null,
  3466. "timeShift": null,
  3467. "title": "I/O Activity",
  3468. "tooltip": {
  3469. "msResolution": false,
  3470. "shared": true,
  3471. "sort": 0,
  3472. "value_type": "individual"
  3473. },
  3474. "transparent": false,
  3475. "type": "graph",
  3476. "xaxis": {
  3477. "buckets": null,
  3478. "mode": "time",
  3479. "name": null,
  3480. "show": true,
  3481. "values": []
  3482. },
  3483. "yaxes": [
  3484. {
  3485. "format": "Bps",
  3486. "label": "",
  3487. "logBase": 1,
  3488. "max": null,
  3489. "min": 0,
  3490. "show": true
  3491. },
  3492. {
  3493. "format": "bytes",
  3494. "logBase": 1,
  3495. "max": null,
  3496. "min": 0,
  3497. "show": true
  3498. }
  3499. ]
  3500. },
  3501. {
  3502. "aliasColors": {},
  3503. "bars": false,
  3504. "dashLength": 10,
  3505. "dashes": false,
  3506. "datasource": "Prometheus",
  3507. "decimals": null,
  3508. "editable": true,
  3509. "error": false,
  3510. "fill": 6,
  3511. "grid": {},
  3512. "height": "250px",
  3513. "id": 37,
  3514. "legend": {
  3515. "alignAsTable": false,
  3516. "avg": true,
  3517. "current": false,
  3518. "hideEmpty": false,
  3519. "max": false,
  3520. "min": false,
  3521. "rightSide": false,
  3522. "show": true,
  3523. "sort": "avg",
  3524. "sortDesc": true,
  3525. "total": false,
  3526. "values": true
  3527. },
  3528. "lines": true,
  3529. "linewidth": 2,
  3530. "links": [],
  3531. "nullPointMode": "null",
  3532. "percentage": false,
  3533. "pointradius": 5,
  3534. "points": false,
  3535. "renderer": "flot",
  3536. "seriesOverrides": [],
  3537. "spaceLength": 10,
  3538. "span": 4,
  3539. "stack": true,
  3540. "steppedLine": false,
  3541. "targets": [
  3542. {
  3543. "calculatedInterval": "2s",
  3544. "datasourceErrors": {},
  3545. "errors": {},
  3546. "expr": "node_memory_MemTotal{instance=\"$host\"} - (node_memory_MemFree{instance=\"$host\"} + node_memory_Buffers{instance=\"$host\"} + node_memory_Cached{instance=\"$host\"})",
  3547. "interval": "$interval",
  3548. "intervalFactor": 1,
  3549. "legendFormat": "Used",
  3550. "metric": "",
  3551. "refId": "A",
  3552. "step": 20,
  3553. "target": ""
  3554. },
  3555. {
  3556. "calculatedInterval": "2s",
  3557. "datasourceErrors": {},
  3558. "errors": {},
  3559. "expr": "node_memory_MemFree{instance=\"$host\"}",
  3560. "interval": "$interval",
  3561. "intervalFactor": 1,
  3562. "legendFormat": "Free",
  3563. "metric": "",
  3564. "refId": "B",
  3565. "step": 20,
  3566. "target": ""
  3567. },
  3568. {
  3569. "calculatedInterval": "2s",
  3570. "datasourceErrors": {},
  3571. "errors": {},
  3572. "expr": "node_memory_Buffers{instance=\"$host\"}",
  3573. "interval": "$interval",
  3574. "intervalFactor": 1,
  3575. "legendFormat": "Buffers",
  3576. "metric": "",
  3577. "refId": "D",
  3578. "step": 20,
  3579. "target": ""
  3580. },
  3581. {
  3582. "calculatedInterval": "2s",
  3583. "datasourceErrors": {},
  3584. "errors": {},
  3585. "expr": "node_memory_Cached{instance=\"$host\"}",
  3586. "interval": "$interval",
  3587. "intervalFactor": 1,
  3588. "legendFormat": "Cached",
  3589. "metric": "",
  3590. "refId": "E",
  3591. "step": 20,
  3592. "target": ""
  3593. }
  3594. ],
  3595. "thresholds": [],
  3596. "timeFrom": null,
  3597. "timeShift": null,
  3598. "title": "Memory Distribution",
  3599. "tooltip": {
  3600. "msResolution": false,
  3601. "shared": true,
  3602. "sort": 0,
  3603. "value_type": "individual"
  3604. },
  3605. "transparent": false,
  3606. "type": "graph",
  3607. "xaxis": {
  3608. "buckets": null,
  3609. "mode": "time",
  3610. "name": null,
  3611. "show": true,
  3612. "values": []
  3613. },
  3614. "yaxes": [
  3615. {
  3616. "format": "bytes",
  3617. "label": "",
  3618. "logBase": 1,
  3619. "max": null,
  3620. "min": 0,
  3621. "show": true
  3622. },
  3623. {
  3624. "format": "bytes",
  3625. "logBase": 1,
  3626. "max": null,
  3627. "min": 0,
  3628. "show": true
  3629. }
  3630. ]
  3631. },
  3632. {
  3633. "aliasColors": {
  3634. "Load 1m": "#58140C"
  3635. },
  3636. "bars": false,
  3637. "dashLength": 10,
  3638. "dashes": false,
  3639. "datasource": "Prometheus",
  3640. "decimals": null,
  3641. "editable": true,
  3642. "error": false,
  3643. "fill": 6,
  3644. "grid": {},
  3645. "height": "",
  3646. "id": 2,
  3647. "legend": {
  3648. "alignAsTable": false,
  3649. "avg": true,
  3650. "current": false,
  3651. "hideEmpty": true,
  3652. "hideZero": true,
  3653. "max": false,
  3654. "min": false,
  3655. "rightSide": false,
  3656. "show": true,
  3657. "sort": "avg",
  3658. "sortDesc": true,
  3659. "total": false,
  3660. "values": true
  3661. },
  3662. "lines": true,
  3663. "linewidth": 2,
  3664. "links": [],
  3665. "nullPointMode": "null",
  3666. "percentage": false,
  3667. "pointradius": 5,
  3668. "points": false,
  3669. "renderer": "flot",
  3670. "seriesOverrides": [
  3671. {
  3672. "alias": "Load 1m",
  3673. "color": "#58140C",
  3674. "fill": 2,
  3675. "stack": false,
  3676. "yaxis": 2
  3677. }
  3678. ],
  3679. "spaceLength": 10,
  3680. "span": 4,
  3681. "stack": true,
  3682. "steppedLine": false,
  3683. "targets": [
  3684. {
  3685. "calculatedInterval": "2s",
  3686. "datasourceErrors": {},
  3687. "errors": {},
  3688. "expr": "sum(rate(node_cpu{instance=\"$host\"}[$interval])) by (mode) * 100 / count_scalar(node_cpu{mode=\"user\", instance=\"$host\"}) or sum(irate(node_cpu{instance=\"$host\"}[5m])) by (mode) * 100 / count_scalar(node_cpu{mode=\"user\", instance=\"$host\"})",
  3689. "interval": "$interval",
  3690. "intervalFactor": 1,
  3691. "legendFormat": "{{ mode }}",
  3692. "metric": "",
  3693. "refId": "A",
  3694. "step": 20
  3695. },
  3696. {
  3697. "expr": "node_load1{instance=\"$host\"}",
  3698. "interval": "$interval",
  3699. "intervalFactor": 1,
  3700. "legendFormat": "Load 1m",
  3701. "refId": "B",
  3702. "step": 20
  3703. }
  3704. ],
  3705. "thresholds": [],
  3706. "timeFrom": null,
  3707. "timeShift": null,
  3708. "title": "CPU Usage / Load",
  3709. "tooltip": {
  3710. "msResolution": false,
  3711. "shared": true,
  3712. "sort": 0,
  3713. "value_type": "individual"
  3714. },
  3715. "type": "graph",
  3716. "xaxis": {
  3717. "buckets": null,
  3718. "mode": "time",
  3719. "name": null,
  3720. "show": true,
  3721. "values": []
  3722. },
  3723. "yaxes": [
  3724. {
  3725. "format": "percent",
  3726. "label": "",
  3727. "logBase": 1,
  3728. "max": 100,
  3729. "min": 0,
  3730. "show": true
  3731. },
  3732. {
  3733. "format": "none",
  3734. "logBase": 1,
  3735. "max": null,
  3736. "min": 0,
  3737. "show": true
  3738. }
  3739. ]
  3740. },
  3741. {
  3742. "aliasColors": {},
  3743. "bars": false,
  3744. "dashLength": 10,
  3745. "dashes": false,
  3746. "datasource": "Prometheus",
  3747. "decimals": 2,
  3748. "editable": true,
  3749. "error": false,
  3750. "fill": 2,
  3751. "grid": {},
  3752. "height": "250px",
  3753. "id": 36,
  3754. "legend": {
  3755. "alignAsTable": false,
  3756. "avg": true,
  3757. "current": false,
  3758. "hideEmpty": true,
  3759. "hideZero": true,
  3760. "max": false,
  3761. "min": false,
  3762. "rightSide": false,
  3763. "show": true,
  3764. "total": false,
  3765. "values": true
  3766. },
  3767. "lines": false,
  3768. "linewidth": 2,
  3769. "links": [],
  3770. "nullPointMode": "null",
  3771. "percentage": false,
  3772. "pointradius": 1,
  3773. "points": true,
  3774. "renderer": "flot",
  3775. "seriesOverrides": [],
  3776. "spaceLength": 10,
  3777. "span": 4,
  3778. "stack": false,
  3779. "steppedLine": false,
  3780. "targets": [
  3781. {
  3782. "calculatedInterval": "2m",
  3783. "datasourceErrors": {},
  3784. "errors": {},
  3785. "expr": "sum((rate(node_disk_read_time_ms{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_reads_completed{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_read_time_ms{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_reads_completed{device!~\"dm-.+\", instance=\"$host\"}[5m])))",
  3786. "interval": "$interval",
  3787. "intervalFactor": 1,
  3788. "legendFormat": "Read",
  3789. "metric": "",
  3790. "refId": "A",
  3791. "step": 20,
  3792. "target": ""
  3793. },
  3794. {
  3795. "calculatedInterval": "2m",
  3796. "datasourceErrors": {},
  3797. "errors": {},
  3798. "expr": "sum((rate(node_disk_write_time_ms{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_writes_completed{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_write_time_ms{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_writes_completed{device!~\"dm-.+\", instance=\"$host\"}[5m])))",
  3799. "interval": "$interval",
  3800. "intervalFactor": 1,
  3801. "legendFormat": "Write",
  3802. "metric": "",
  3803. "refId": "B",
  3804. "step": 20,
  3805. "target": ""
  3806. }
  3807. ],
  3808. "thresholds": [],
  3809. "timeFrom": null,
  3810. "timeShift": null,
  3811. "title": "Disk Latency",
  3812. "tooltip": {
  3813. "msResolution": false,
  3814. "shared": true,
  3815. "sort": 0,
  3816. "value_type": "individual"
  3817. },
  3818. "transparent": false,
  3819. "type": "graph",
  3820. "xaxis": {
  3821. "buckets": null,
  3822. "mode": "time",
  3823. "name": null,
  3824. "show": true,
  3825. "values": []
  3826. },
  3827. "yaxes": [
  3828. {
  3829. "format": "ms",
  3830. "label": "",
  3831. "logBase": 2,
  3832. "max": null,
  3833. "min": 0,
  3834. "show": true
  3835. },
  3836. {
  3837. "format": "ms",
  3838. "label": "",
  3839. "logBase": 1,
  3840. "max": null,
  3841. "min": 0,
  3842. "show": true
  3843. }
  3844. ]
  3845. },
  3846. {
  3847. "aliasColors": {},
  3848. "bars": false,
  3849. "dashLength": 10,
  3850. "dashes": false,
  3851. "datasource": "Prometheus",
  3852. "decimals": null,
  3853. "editable": true,
  3854. "error": false,
  3855. "fill": 2,
  3856. "grid": {},
  3857. "height": "250px",
  3858. "id": 21,
  3859. "legend": {
  3860. "alignAsTable": false,
  3861. "avg": true,
  3862. "current": false,
  3863. "hideEmpty": false,
  3864. "max": false,
  3865. "min": false,
  3866. "rightSide": false,
  3867. "show": true,
  3868. "sort": "avg",
  3869. "sortDesc": true,
  3870. "total": false,
  3871. "values": true
  3872. },
  3873. "lines": true,
  3874. "linewidth": 2,
  3875. "links": [],
  3876. "nullPointMode": "null",
  3877. "percentage": false,
  3878. "pointradius": 5,
  3879. "points": false,
  3880. "renderer": "flot",
  3881. "seriesOverrides": [
  3882. {
  3883. "alias": "Outbound",
  3884. "transform": "negative-Y"
  3885. }
  3886. ],
  3887. "spaceLength": 10,
  3888. "span": 4,
  3889. "stack": false,
  3890. "steppedLine": false,
  3891. "targets": [
  3892. {
  3893. "calculatedInterval": "2s",
  3894. "datasourceErrors": {},
  3895. "errors": {},
  3896. "expr": "sum(rate(node_network_receive_bytes{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_receive_bytes{instance=\"$host\", device!=\"lo\"}[5m]))",
  3897. "interval": "$interval",
  3898. "intervalFactor": 1,
  3899. "legendFormat": "Inbound",
  3900. "metric": "",
  3901. "refId": "B",
  3902. "step": 20,
  3903. "target": ""
  3904. },
  3905. {
  3906. "calculatedInterval": "2s",
  3907. "datasourceErrors": {},
  3908. "errors": {},
  3909. "expr": "sum(rate(node_network_transmit_bytes{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_transmit_bytes{instance=\"$host\", device!=\"lo\"}[5m]))",
  3910. "interval": "$interval",
  3911. "intervalFactor": 1,
  3912. "legendFormat": "Outbound",
  3913. "metric": "",
  3914. "refId": "A",
  3915. "step": 20,
  3916. "target": ""
  3917. }
  3918. ],
  3919. "thresholds": [],
  3920. "timeFrom": null,
  3921. "timeShift": null,
  3922. "title": "Network Traffic",
  3923. "tooltip": {
  3924. "msResolution": false,
  3925. "shared": true,
  3926. "sort": 0,
  3927. "value_type": "individual"
  3928. },
  3929. "transparent": false,
  3930. "type": "graph",
  3931. "xaxis": {
  3932. "buckets": null,
  3933. "mode": "time",
  3934. "name": null,
  3935. "show": true,
  3936. "values": []
  3937. },
  3938. "yaxes": [
  3939. {
  3940. "format": "Bps",
  3941. "label": "",
  3942. "logBase": 1,
  3943. "max": null,
  3944. "min": null,
  3945. "show": true
  3946. },
  3947. {
  3948. "format": "bytes",
  3949. "logBase": 1,
  3950. "max": null,
  3951. "min": 0,
  3952. "show": true
  3953. }
  3954. ]
  3955. },
  3956. {
  3957. "aliasColors": {},
  3958. "bars": false,
  3959. "dashLength": 10,
  3960. "dashes": false,
  3961. "datasource": "Prometheus",
  3962. "decimals": null,
  3963. "editable": true,
  3964. "error": false,
  3965. "fill": 2,
  3966. "grid": {},
  3967. "id": 38,
  3968. "legend": {
  3969. "alignAsTable": false,
  3970. "avg": true,
  3971. "current": false,
  3972. "hideEmpty": false,
  3973. "max": false,
  3974. "min": false,
  3975. "rightSide": false,
  3976. "show": true,
  3977. "sort": "avg",
  3978. "sortDesc": true,
  3979. "total": false,
  3980. "values": true
  3981. },
  3982. "lines": true,
  3983. "linewidth": 2,
  3984. "links": [],
  3985. "nullPointMode": "null",
  3986. "percentage": false,
  3987. "pointradius": 5,
  3988. "points": false,
  3989. "renderer": "flot",
  3990. "seriesOverrides": [],
  3991. "spaceLength": 10,
  3992. "span": 4,
  3993. "stack": false,
  3994. "steppedLine": false,
  3995. "targets": [
  3996. {
  3997. "calculatedInterval": "2s",
  3998. "datasourceErrors": {},
  3999. "errors": {},
  4000. "expr": "rate(node_vmstat_pswpin{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpin{instance=\"$host\"}[5m]) * 4096",
  4001. "interval": "$interval",
  4002. "intervalFactor": 1,
  4003. "legendFormat": "Swap In",
  4004. "metric": "",
  4005. "refId": "A",
  4006. "step": 20,
  4007. "target": ""
  4008. },
  4009. {
  4010. "calculatedInterval": "2s",
  4011. "datasourceErrors": {},
  4012. "errors": {},
  4013. "expr": "rate(node_vmstat_pswpout{instance=\"$host\"}[$interval]) * 4096 or irate(node_vmstat_pswpout{instance=\"$host\"}[5m]) * 4096",
  4014. "interval": "$interval",
  4015. "intervalFactor": 1,
  4016. "legendFormat": "Swap Out",
  4017. "metric": "",
  4018. "refId": "B",
  4019. "step": 20,
  4020. "target": ""
  4021. }
  4022. ],
  4023. "thresholds": [],
  4024. "timeFrom": null,
  4025. "timeShift": null,
  4026. "title": "Swap Activity",
  4027. "tooltip": {
  4028. "msResolution": false,
  4029. "shared": true,
  4030. "sort": 0,
  4031. "value_type": "individual"
  4032. },
  4033. "transparent": false,
  4034. "type": "graph",
  4035. "xaxis": {
  4036. "buckets": null,
  4037. "mode": "time",
  4038. "name": null,
  4039. "show": true,
  4040. "values": []
  4041. },
  4042. "yaxes": [
  4043. {
  4044. "format": "Bps",
  4045. "label": "",
  4046. "logBase": 1,
  4047. "max": null,
  4048. "min": 0,
  4049. "show": true
  4050. },
  4051. {
  4052. "format": "bytes",
  4053. "logBase": 1,
  4054. "max": null,
  4055. "min": 0,
  4056. "show": true
  4057. }
  4058. ]
  4059. }
  4060. ],
  4061. "repeat": null,
  4062. "repeatIteration": null,
  4063. "repeatRowId": null,
  4064. "showTitle": true,
  4065. "title": "System Charts",
  4066. "titleSize": "h6"
  4067. }
  4068. ],
  4069. "schemaVersion": 14,
  4070. "style": "dark",
  4071. "tags": [
  4072. "Percona",
  4073. "MySQL"
  4074. ],
  4075. "templating": {
  4076. "list": [
  4077. {
  4078. "allFormat": "glob",
  4079. "auto": true,
  4080. "auto_count": 200,
  4081. "auto_min": "1s",
  4082. "current": {
  4083. "text": "auto",
  4084. "value": "$__auto_interval"
  4085. },
  4086. "datasource": "Prometheus",
  4087. "hide": 0,
  4088. "includeAll": false,
  4089. "label": "Interval",
  4090. "multi": false,
  4091. "multiFormat": "glob",
  4092. "name": "interval",
  4093. "options": [
  4094. {
  4095. "selected": true,
  4096. "text": "auto",
  4097. "value": "$__auto_interval"
  4098. },
  4099. {
  4100. "selected": false,
  4101. "text": "1s",
  4102. "value": "1s"
  4103. },
  4104. {
  4105. "selected": false,
  4106. "text": "5s",
  4107. "value": "5s"
  4108. },
  4109. {
  4110. "selected": false,
  4111. "text": "1m",
  4112. "value": "1m"
  4113. },
  4114. {
  4115. "selected": false,
  4116. "text": "5m",
  4117. "value": "5m"
  4118. },
  4119. {
  4120. "selected": false,
  4121. "text": "1h",
  4122. "value": "1h"
  4123. },
  4124. {
  4125. "selected": false,
  4126. "text": "6h",
  4127. "value": "6h"
  4128. },
  4129. {
  4130. "selected": false,
  4131. "text": "1d",
  4132. "value": "1d"
  4133. }
  4134. ],
  4135. "query": "1s,5s,1m,5m,1h,6h,1d",
  4136. "refresh": 2,
  4137. "type": "interval"
  4138. },
  4139. {
  4140. "allFormat": "glob",
  4141. "allValue": null,
  4142. "datasource": "Prometheus",
  4143. "hide": 0,
  4144. "includeAll": false,
  4145. "label": "Host",
  4146. "multi": false,
  4147. "multiFormat": "regex values",
  4148. "name": "host",
  4149. "query": "label_values(mysql_up, instance)",
  4150. "refresh": 1,
  4151. "refresh_on_load": false,
  4152. "regex": "",
  4153. "sort": 1,
  4154. "tagValuesQuery": null,
  4155. "tags": [],
  4156. "tagsQuery": null,
  4157. "type": "query",
  4158. "useTags": false
  4159. }
  4160. ]
  4161. },
  4162. "time": {
  4163. "from": "now-12h",
  4164. "to": "now"
  4165. },
  4166. "timepicker": {
  4167. "collapse": false,
  4168. "enable": true,
  4169. "notice": false,
  4170. "now": true,
  4171. "refresh_intervals": [
  4172. "5s",
  4173. "10s",
  4174. "30s",
  4175. "1m",
  4176. "5m",
  4177. "15m",
  4178. "30m",
  4179. "1h",
  4180. "2h",
  4181. "1d"
  4182. ],
  4183. "status": "Stable",
  4184. "time_options": [
  4185. "5m",
  4186. "15m",
  4187. "1h",
  4188. "6h",
  4189. "12h",
  4190. "24h",
  4191. "2d",
  4192. "7d",
  4193. "30d"
  4194. ],
  4195. "type": "timepicker"
  4196. },
  4197. "timezone": "browser",
  4198. "title": "MySQL Overview",
  4199. "version": 0
  4200. }