mysql.json 116 KB

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