MySQL_InnoDB_Metrics_Advanced.json 101 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editMode": false,
  6. "editable": true,
  7. "gnetId": null,
  8. "graphTooltip": 1,
  9. "hideControls": true,
  10. "id": null,
  11. "links": [
  12. {
  13. "asDropdown": true,
  14. "icon": "external link",
  15. "includeVars": true,
  16. "keepTime": true,
  17. "tags": [
  18. "OS"
  19. ],
  20. "targetBlank": true,
  21. "title": "OS",
  22. "type": "dashboards"
  23. },
  24. {
  25. "asDropdown": true,
  26. "icon": "external link",
  27. "includeVars": true,
  28. "keepTime": true,
  29. "tags": [
  30. "MySQL"
  31. ],
  32. "targetBlank": true,
  33. "title": "MySQL",
  34. "type": "dashboards"
  35. },
  36. {
  37. "asDropdown": true,
  38. "icon": "external link",
  39. "includeVars": true,
  40. "keepTime": true,
  41. "tags": [
  42. "HA"
  43. ],
  44. "targetBlank": true,
  45. "title": "HA",
  46. "type": "dashboards"
  47. }
  48. ],
  49. "rows": [
  50. {
  51. "collapse": false,
  52. "height": "250px",
  53. "panels": [
  54. {
  55. "aliasColors": {},
  56. "bars": false,
  57. "dashLength": 10,
  58. "dashes": false,
  59. "datasource": "Prometheus",
  60. "decimals": 2,
  61. "editable": true,
  62. "error": false,
  63. "fill": 6,
  64. "grid": {
  65. "leftLogBase": 1,
  66. "leftMax": null,
  67. "leftMin": 0,
  68. "rightLogBase": 1,
  69. "rightMax": null,
  70. "rightMin": 0
  71. },
  72. "id": 43,
  73. "legend": {
  74. "alignAsTable": true,
  75. "avg": true,
  76. "current": false,
  77. "max": true,
  78. "min": true,
  79. "rightSide": false,
  80. "show": true,
  81. "sort": "avg",
  82. "sortDesc": true,
  83. "total": false,
  84. "values": true
  85. },
  86. "lines": false,
  87. "linewidth": 1,
  88. "links": [],
  89. "nullPointMode": "null",
  90. "percentage": false,
  91. "pointradius": 1,
  92. "points": true,
  93. "renderer": "flot",
  94. "seriesOverrides": [
  95. {
  96. "alias": "Ibuf Merge Ratio",
  97. "yaxis": 2
  98. }
  99. ],
  100. "spaceLength": 10,
  101. "span": 6,
  102. "stack": false,
  103. "steppedLine": false,
  104. "targets": [
  105. {
  106. "calculatedInterval": "2m",
  107. "datasourceErrors": {},
  108. "errors": {},
  109. "expr": "rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_insert_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_insert_total{instance=\"$host\"}[5m])",
  110. "interval": "$interval",
  111. "intervalFactor": 1,
  112. "legendFormat": "Ibuf Insert",
  113. "metric": "",
  114. "refId": "B",
  115. "step": 300
  116. },
  117. {
  118. "expr": "rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_total{instance=\"$host\"}[5m])",
  119. "interval": "$interval",
  120. "intervalFactor": 1,
  121. "legendFormat": "Ibuf Delete",
  122. "metric": "",
  123. "refId": "A",
  124. "step": 300
  125. },
  126. {
  127. "expr": "rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_mark_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_mark_total{instance=\"$host\"}[5m])",
  128. "interval": "$interval",
  129. "intervalFactor": 1,
  130. "legendFormat": "Ibuf Delete Mark",
  131. "refId": "C",
  132. "step": 300
  133. },
  134. {
  135. "expr": "rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_total{instance=\"$host\"}[5m])",
  136. "interval": "$interval",
  137. "intervalFactor": 1,
  138. "legendFormat": "Ibuf Merges",
  139. "refId": "D",
  140. "step": 300
  141. },
  142. {
  143. "expr": "(rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_insert_total{instance=\"$host\"}[$interval])+rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_total{instance=\"$host\"}[$interval])+rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_mark_total{instance=\"$host\"}[$interval]))/rate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_total{instance=\"$host\"}[$interval]) or (irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_insert_total{instance=\"$host\"}[5m])+irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_total{instance=\"$host\"}[5m])+irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_delete_mark_total{instance=\"$host\"}[5m]))/irate(mysql_info_schema_innodb_metrics_change_buffer_ibuf_merges_total{instance=\"$host\"}[5m])",
  144. "interval": "$interval",
  145. "intervalFactor": 1,
  146. "legendFormat": "Ibuf Merge Ratio",
  147. "refId": "E",
  148. "step": 300
  149. }
  150. ],
  151. "thresholds": [],
  152. "timeFrom": null,
  153. "timeShift": null,
  154. "title": "Change Buffer Performance",
  155. "tooltip": {
  156. "msResolution": false,
  157. "shared": true,
  158. "sort": 0,
  159. "value_type": "individual"
  160. },
  161. "type": "graph",
  162. "x-axis": true,
  163. "xaxis": {
  164. "buckets": null,
  165. "mode": "time",
  166. "name": null,
  167. "show": true,
  168. "values": []
  169. },
  170. "y-axis": true,
  171. "y_formats": [
  172. "short",
  173. "short"
  174. ],
  175. "yaxes": [
  176. {
  177. "format": "short",
  178. "label": null,
  179. "logBase": 1,
  180. "max": null,
  181. "min": 0,
  182. "show": true
  183. },
  184. {
  185. "format": "short",
  186. "label": null,
  187. "logBase": 1,
  188. "max": null,
  189. "min": 0,
  190. "show": true
  191. }
  192. ]
  193. },
  194. {
  195. "aliasColors": {},
  196. "bars": false,
  197. "dashLength": 10,
  198. "dashes": false,
  199. "datasource": "Prometheus",
  200. "decimals": 2,
  201. "editable": true,
  202. "error": false,
  203. "fill": 2,
  204. "grid": {
  205. "leftLogBase": 1,
  206. "leftMax": null,
  207. "leftMin": 0,
  208. "rightLogBase": 1,
  209. "rightMax": null,
  210. "rightMin": 0
  211. },
  212. "id": 44,
  213. "legend": {
  214. "alignAsTable": true,
  215. "avg": true,
  216. "current": false,
  217. "max": true,
  218. "min": true,
  219. "rightSide": false,
  220. "show": true,
  221. "sort": "avg",
  222. "sortDesc": true,
  223. "total": false,
  224. "values": true
  225. },
  226. "lines": true,
  227. "linewidth": 2,
  228. "links": [],
  229. "nullPointMode": "null",
  230. "percentage": false,
  231. "pointradius": 1,
  232. "points": false,
  233. "renderer": "flot",
  234. "seriesOverrides": [],
  235. "spaceLength": 10,
  236. "span": 6,
  237. "stack": false,
  238. "steppedLine": false,
  239. "targets": [
  240. {
  241. "calculatedInterval": "2m",
  242. "datasourceErrors": {},
  243. "errors": {},
  244. "expr": "mysql_info_schema_innodb_metrics_recovery_log_lsn_current{instance=\"$host\"}*0 + on (instance) mysql_global_variables_innodb_log_buffer_size{instance=\"$host\"}",
  245. "interval": "$interval",
  246. "intervalFactor": 1,
  247. "legendFormat": "Size",
  248. "metric": "",
  249. "refId": "B",
  250. "step": 300
  251. },
  252. {
  253. "expr": "mysql_info_schema_innodb_metrics_recovery_log_lsn_current{instance=\"$host\"} - mysql_info_schema_innodb_metrics_recovery_log_lsn_last_flush{instance=\"$host\"}",
  254. "interval": "$interval",
  255. "intervalFactor": 1,
  256. "legendFormat": "Used",
  257. "metric": "",
  258. "refId": "A",
  259. "step": 300
  260. }
  261. ],
  262. "thresholds": [],
  263. "timeFrom": null,
  264. "timeShift": null,
  265. "title": "InnoDB Log Buffer Performance",
  266. "tooltip": {
  267. "msResolution": false,
  268. "shared": true,
  269. "sort": 0,
  270. "value_type": "individual"
  271. },
  272. "type": "graph",
  273. "x-axis": true,
  274. "xaxis": {
  275. "buckets": null,
  276. "mode": "time",
  277. "name": null,
  278. "show": true,
  279. "values": []
  280. },
  281. "y-axis": true,
  282. "y_formats": [
  283. "bytes",
  284. "short"
  285. ],
  286. "yaxes": [
  287. {
  288. "format": "bytes",
  289. "label": null,
  290. "logBase": 1,
  291. "max": null,
  292. "min": 0,
  293. "show": true
  294. },
  295. {
  296. "format": "short",
  297. "label": null,
  298. "logBase": 1,
  299. "max": null,
  300. "min": null,
  301. "show": true
  302. }
  303. ]
  304. },
  305. {
  306. "aliasColors": {},
  307. "bars": false,
  308. "dashLength": 10,
  309. "dashes": false,
  310. "datasource": "Prometheus",
  311. "decimals": 0,
  312. "description": "The ratio of Successes over Attempts",
  313. "editable": true,
  314. "error": false,
  315. "fill": 2,
  316. "grid": {
  317. "leftLogBase": 1,
  318. "leftMax": null,
  319. "leftMin": 0,
  320. "rightLogBase": 1,
  321. "rightMax": null,
  322. "rightMin": 0
  323. },
  324. "id": 58,
  325. "legend": {
  326. "alignAsTable": true,
  327. "avg": true,
  328. "current": true,
  329. "hideEmpty": true,
  330. "hideZero": true,
  331. "max": true,
  332. "min": true,
  333. "rightSide": false,
  334. "show": true,
  335. "sort": "avg",
  336. "sortDesc": true,
  337. "total": false,
  338. "values": true
  339. },
  340. "lines": true,
  341. "linewidth": 2,
  342. "links": [],
  343. "nullPointMode": "null",
  344. "percentage": false,
  345. "pointradius": 1,
  346. "points": false,
  347. "renderer": "flot",
  348. "seriesOverrides": [
  349. {
  350. "alias": "Page Merge Successes / Page Merge Attempts",
  351. "yaxis": 2
  352. }
  353. ],
  354. "spaceLength": 10,
  355. "span": 6,
  356. "stack": false,
  357. "steppedLine": true,
  358. "targets": [
  359. {
  360. "calculatedInterval": "2m",
  361. "datasourceErrors": {},
  362. "errors": {},
  363. "expr": "rate(mysql_info_schema_innodb_metrics_index_index_page_merge_attempts_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_merge_attempts_total{instance=\"$host\"}[5m])",
  364. "interval": "$interval",
  365. "intervalFactor": 1,
  366. "legendFormat": "Index Page Merge Attempts",
  367. "metric": "",
  368. "refId": "B",
  369. "step": 300
  370. },
  371. {
  372. "expr": "rate(mysql_info_schema_innodb_metrics_index_index_page_merge_successful_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_merge_successful_total{instance=\"$host\"}[5m])",
  373. "hide": false,
  374. "interval": "$interval",
  375. "intervalFactor": 1,
  376. "legendFormat": "Index Page Merge Successful",
  377. "refId": "A",
  378. "step": 300
  379. },
  380. {
  381. "expr": "rate(mysql_info_schema_innodb_metrics_index_index_page_splits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_splits_total{instance=\"$host\"}[5m])",
  382. "hide": false,
  383. "interval": "$interval",
  384. "intervalFactor": 1,
  385. "legendFormat": "Index Page Splits",
  386. "refId": "C",
  387. "step": 300
  388. },
  389. {
  390. "expr": "(rate(mysql_info_schema_innodb_metrics_index_index_page_merge_successful_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_merge_successful_total{instance=\"$host\"}[5m])) / (rate(mysql_info_schema_innodb_metrics_index_index_page_merge_attempts_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_merge_attempts_total{instance=\"$host\"}[5m])) * 100",
  391. "hide": false,
  392. "interval": "$interval",
  393. "intervalFactor": 1,
  394. "legendFormat": "Page Merge Successes / Page Merge Attempts",
  395. "refId": "D",
  396. "step": 300
  397. }
  398. ],
  399. "thresholds": [],
  400. "timeFrom": null,
  401. "timeShift": null,
  402. "title": "InnoDB Page Splits",
  403. "tooltip": {
  404. "msResolution": false,
  405. "shared": true,
  406. "sort": 1,
  407. "value_type": "individual"
  408. },
  409. "type": "graph",
  410. "x-axis": true,
  411. "xaxis": {
  412. "buckets": null,
  413. "mode": "time",
  414. "name": null,
  415. "show": true,
  416. "values": []
  417. },
  418. "y-axis": true,
  419. "y_formats": [
  420. "short",
  421. "percentunit"
  422. ],
  423. "yaxes": [
  424. {
  425. "format": "short",
  426. "label": "Pages",
  427. "logBase": 1,
  428. "max": null,
  429. "min": 0,
  430. "show": true
  431. },
  432. {
  433. "format": "percent",
  434. "label": " Successes / Attempts",
  435. "logBase": 1,
  436. "max": null,
  437. "min": 0,
  438. "show": true
  439. }
  440. ]
  441. },
  442. {
  443. "aliasColors": {},
  444. "bars": false,
  445. "dashLength": 10,
  446. "dashes": false,
  447. "datasource": "Prometheus",
  448. "decimals": 0,
  449. "description": "The ratio of Page Reorgs Successful / Attempts",
  450. "editable": true,
  451. "error": false,
  452. "fill": 2,
  453. "grid": {
  454. "leftLogBase": 1,
  455. "leftMax": null,
  456. "leftMin": 0,
  457. "rightLogBase": 1,
  458. "rightMax": null,
  459. "rightMin": 0
  460. },
  461. "id": 59,
  462. "legend": {
  463. "alignAsTable": true,
  464. "avg": true,
  465. "current": true,
  466. "hideEmpty": true,
  467. "hideZero": true,
  468. "max": true,
  469. "min": true,
  470. "rightSide": false,
  471. "show": true,
  472. "sort": "avg",
  473. "sortDesc": true,
  474. "total": false,
  475. "values": true
  476. },
  477. "lines": true,
  478. "linewidth": 2,
  479. "links": [],
  480. "nullPointMode": "null",
  481. "percentage": false,
  482. "pointradius": 1,
  483. "points": false,
  484. "renderer": "flot",
  485. "seriesOverrides": [
  486. {
  487. "alias": "Reorg Successes / Reorg Attempts",
  488. "yaxis": 2
  489. },
  490. {
  491. "alias": "Reorg Attempts / Reorg Successes",
  492. "yaxis": 2
  493. }
  494. ],
  495. "spaceLength": 10,
  496. "span": 6,
  497. "stack": false,
  498. "steppedLine": true,
  499. "targets": [
  500. {
  501. "expr": "rate(mysql_info_schema_innodb_metrics_index_index_page_reorg_attempts_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_reorg_attempts_total{instance=\"$host\"}[5m])",
  502. "interval": "$interval",
  503. "intervalFactor": 1,
  504. "legendFormat": "Index Page Reorg Attempts",
  505. "refId": "E",
  506. "step": 300
  507. },
  508. {
  509. "expr": "rate(mysql_info_schema_innodb_metrics_index_index_page_reorg_successful_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_reorg_successful_total{instance=\"$host\"}[5m])",
  510. "interval": "$interval",
  511. "intervalFactor": 1,
  512. "legendFormat": "Index Page Reorg Successful",
  513. "refId": "F",
  514. "step": 300
  515. },
  516. {
  517. "expr": "(rate(mysql_info_schema_innodb_metrics_index_index_page_reorg_successful_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_reorg_successful_total{instance=\"$host\"}[5m])) / (rate(mysql_info_schema_innodb_metrics_index_index_page_reorg_attempts_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_index_index_page_reorg_attempts_total{instance=\"$host\"}[5m])) * 100",
  518. "interval": "$interval",
  519. "intervalFactor": 1,
  520. "legendFormat": "Reorg Successes / Reorg Attempts",
  521. "refId": "G",
  522. "step": 300
  523. }
  524. ],
  525. "thresholds": [],
  526. "timeFrom": null,
  527. "timeShift": null,
  528. "title": "InnoDB Page Reorgs",
  529. "tooltip": {
  530. "msResolution": false,
  531. "shared": true,
  532. "sort": 1,
  533. "value_type": "individual"
  534. },
  535. "type": "graph",
  536. "x-axis": true,
  537. "xaxis": {
  538. "buckets": null,
  539. "mode": "time",
  540. "name": null,
  541. "show": true,
  542. "values": []
  543. },
  544. "y-axis": true,
  545. "y_formats": [
  546. "short",
  547. "percentunit"
  548. ],
  549. "yaxes": [
  550. {
  551. "format": "short",
  552. "label": null,
  553. "logBase": 1,
  554. "max": null,
  555. "min": 0,
  556. "show": true
  557. },
  558. {
  559. "format": "percent",
  560. "label": "",
  561. "logBase": 1,
  562. "max": "100",
  563. "min": 0,
  564. "show": true
  565. }
  566. ]
  567. }
  568. ],
  569. "repeat": null,
  570. "repeatIteration": null,
  571. "repeatRowId": null,
  572. "showTitle": false,
  573. "title": "Change",
  574. "titleSize": "h6"
  575. },
  576. {
  577. "collapse": false,
  578. "height": "250px",
  579. "panels": [
  580. {
  581. "aliasColors": {},
  582. "bars": false,
  583. "dashLength": 10,
  584. "dashes": false,
  585. "datasource": "Prometheus",
  586. "decimals": 2,
  587. "editable": true,
  588. "error": false,
  589. "fill": 2,
  590. "grid": {
  591. "leftLogBase": 1,
  592. "leftMax": null,
  593. "leftMin": 0,
  594. "rightLogBase": 1,
  595. "rightMax": null,
  596. "rightMin": 0
  597. },
  598. "id": 45,
  599. "legend": {
  600. "alignAsTable": true,
  601. "avg": true,
  602. "current": false,
  603. "max": true,
  604. "min": true,
  605. "rightSide": false,
  606. "show": true,
  607. "sort": "avg",
  608. "sortDesc": true,
  609. "total": false,
  610. "values": true
  611. },
  612. "lines": true,
  613. "linewidth": 2,
  614. "links": [],
  615. "nullPointMode": "null",
  616. "percentage": false,
  617. "pointradius": 1,
  618. "points": false,
  619. "renderer": "flot",
  620. "seriesOverrides": [],
  621. "spaceLength": 10,
  622. "span": 6,
  623. "stack": false,
  624. "steppedLine": true,
  625. "targets": [
  626. {
  627. "calculatedInterval": "2m",
  628. "datasourceErrors": {},
  629. "errors": {},
  630. "expr": "rate(mysql_info_schema_innodb_metrics_purge_purge_upd_exist_or_extern_records_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_purge_purge_upd_exist_or_extern_records_total{instance=\"$host\"}[5m])",
  631. "interval": "$interval",
  632. "intervalFactor": 1,
  633. "legendFormat": "Updates Purged",
  634. "metric": "",
  635. "refId": "B",
  636. "step": 300
  637. },
  638. {
  639. "expr": "rate(mysql_info_schema_innodb_metrics_purge_purge_del_mark_records_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_purge_purge_del_mark_records_total{instance=\"$host\"}[5m])",
  640. "interval": "$interval",
  641. "intervalFactor": 1,
  642. "legendFormat": "Deletes Purged",
  643. "metric": "",
  644. "refId": "A",
  645. "step": 300
  646. },
  647. {
  648. "expr": "rate(mysql_info_schema_innodb_metrics_purge_purge_undo_log_pages_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_purge_purge_undo_log_pages_total{instance=\"$host\"}[5m])",
  649. "interval": "$interval",
  650. "intervalFactor": 1,
  651. "legendFormat": "Pages Purged",
  652. "refId": "C",
  653. "step": 300
  654. }
  655. ],
  656. "thresholds": [],
  657. "timeFrom": null,
  658. "timeShift": null,
  659. "title": "InnoDB Purge Performance",
  660. "tooltip": {
  661. "msResolution": false,
  662. "shared": true,
  663. "sort": 0,
  664. "value_type": "individual"
  665. },
  666. "type": "graph",
  667. "x-axis": true,
  668. "xaxis": {
  669. "buckets": null,
  670. "mode": "time",
  671. "name": null,
  672. "show": true,
  673. "values": []
  674. },
  675. "y-axis": true,
  676. "y_formats": [
  677. "short",
  678. "short"
  679. ],
  680. "yaxes": [
  681. {
  682. "format": "short",
  683. "label": null,
  684. "logBase": 1,
  685. "max": null,
  686. "min": 0,
  687. "show": true
  688. },
  689. {
  690. "format": "short",
  691. "label": null,
  692. "logBase": 1,
  693. "max": null,
  694. "min": null,
  695. "show": true
  696. }
  697. ]
  698. },
  699. {
  700. "aliasColors": {},
  701. "bars": false,
  702. "dashLength": 10,
  703. "dashes": false,
  704. "datasource": "Prometheus",
  705. "decimals": 2,
  706. "editable": true,
  707. "error": false,
  708. "fill": 2,
  709. "grid": {
  710. "leftLogBase": 1,
  711. "leftMax": null,
  712. "leftMin": 0,
  713. "rightLogBase": 1,
  714. "rightMax": null,
  715. "rightMin": 0
  716. },
  717. "id": 48,
  718. "legend": {
  719. "alignAsTable": true,
  720. "avg": true,
  721. "current": false,
  722. "max": true,
  723. "min": true,
  724. "rightSide": false,
  725. "show": true,
  726. "sort": "avg",
  727. "sortDesc": true,
  728. "total": false,
  729. "values": true
  730. },
  731. "lines": true,
  732. "linewidth": 2,
  733. "links": [],
  734. "nullPointMode": "null",
  735. "percentage": false,
  736. "pointradius": 1,
  737. "points": false,
  738. "renderer": "flot",
  739. "seriesOverrides": [],
  740. "spaceLength": 10,
  741. "span": 6,
  742. "stack": false,
  743. "steppedLine": true,
  744. "targets": [
  745. {
  746. "calculatedInterval": "2m",
  747. "datasourceErrors": {},
  748. "errors": {},
  749. "expr": "rate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_created_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_created_total{instance=\"$host\"}[5m])",
  750. "interval": "$interval",
  751. "intervalFactor": 1,
  752. "legendFormat": "Locks Created",
  753. "metric": "",
  754. "refId": "B",
  755. "step": 300
  756. },
  757. {
  758. "expr": "rate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_removed_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_removed_total{instance=\"$host\"}[5m])",
  759. "interval": "$interval",
  760. "intervalFactor": 1,
  761. "legendFormat": "Locks Removed",
  762. "metric": "",
  763. "refId": "A",
  764. "step": 300
  765. },
  766. {
  767. "expr": "rate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_requests_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_lock_lock_rec_lock_requests_total{instance=\"$host\"}[5m])",
  768. "interval": "$interval",
  769. "intervalFactor": 1,
  770. "legendFormat": "Locks Requested",
  771. "refId": "C",
  772. "step": 300
  773. }
  774. ],
  775. "thresholds": [],
  776. "timeFrom": null,
  777. "timeShift": null,
  778. "title": "InnoDB Locking",
  779. "tooltip": {
  780. "msResolution": false,
  781. "shared": true,
  782. "sort": 0,
  783. "value_type": "individual"
  784. },
  785. "type": "graph",
  786. "x-axis": true,
  787. "xaxis": {
  788. "buckets": null,
  789. "mode": "time",
  790. "name": null,
  791. "show": true,
  792. "values": []
  793. },
  794. "y-axis": true,
  795. "y_formats": [
  796. "short",
  797. "short"
  798. ],
  799. "yaxes": [
  800. {
  801. "format": "short",
  802. "label": null,
  803. "logBase": 1,
  804. "max": null,
  805. "min": 0,
  806. "show": true
  807. },
  808. {
  809. "format": "short",
  810. "label": null,
  811. "logBase": 1,
  812. "max": null,
  813. "min": null,
  814. "show": true
  815. }
  816. ]
  817. }
  818. ],
  819. "repeat": null,
  820. "repeatIteration": null,
  821. "repeatRowId": null,
  822. "showTitle": false,
  823. "title": "Purge",
  824. "titleSize": "h6"
  825. },
  826. {
  827. "collapse": false,
  828. "height": "250px",
  829. "panels": [
  830. {
  831. "aliasColors": {},
  832. "bars": false,
  833. "dashLength": 10,
  834. "dashes": false,
  835. "datasource": "Prometheus",
  836. "decimals": 2,
  837. "editable": true,
  838. "error": false,
  839. "fill": 2,
  840. "grid": {
  841. "leftLogBase": 1,
  842. "leftMax": null,
  843. "leftMin": 0,
  844. "rightLogBase": 1,
  845. "rightMax": null,
  846. "rightMin": 0
  847. },
  848. "id": 51,
  849. "legend": {
  850. "alignAsTable": true,
  851. "avg": true,
  852. "current": false,
  853. "max": true,
  854. "min": true,
  855. "rightSide": false,
  856. "show": true,
  857. "sort": "avg",
  858. "sortDesc": true,
  859. "total": false,
  860. "values": true
  861. },
  862. "lines": true,
  863. "linewidth": 2,
  864. "links": [],
  865. "nullPointMode": "null",
  866. "percentage": false,
  867. "pointradius": 1,
  868. "points": false,
  869. "renderer": "flot",
  870. "seriesOverrides": [],
  871. "spaceLength": 10,
  872. "span": 6,
  873. "stack": false,
  874. "steppedLine": true,
  875. "targets": [
  876. {
  877. "calculatedInterval": "2m",
  878. "datasourceErrors": {},
  879. "errors": {},
  880. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_log_flush_usec_total{instance=\"$host\"}[$interval])/1000000 or irate(mysql_info_schema_innodb_metrics_server_innodb_log_flush_usec_total{instance=\"$host\"}[5m])/1000000",
  881. "interval": "$interval",
  882. "intervalFactor": 1,
  883. "legendFormat": "Log Flushing",
  884. "metric": "",
  885. "refId": "B",
  886. "step": 300
  887. },
  888. {
  889. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_ibuf_merge_usec_total{instance=\"$host\"}[$interval])/1000000 or irate(mysql_info_schema_innodb_metrics_server_innodb_ibuf_merge_usec_total{instance=\"$host\"}[5m])/1000000",
  890. "interval": "$interval",
  891. "intervalFactor": 1,
  892. "legendFormat": "Insert Buffer Merging",
  893. "refId": "A",
  894. "step": 300
  895. },
  896. {
  897. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_checkpoint_usec_total{instance=\"$host\"}[$interval])/1000000 or irate(mysql_info_schema_innodb_metrics_server_innodb_checkpoint_usec_total{instance=\"$host\"}[5m])/1000000",
  898. "interval": "$interval",
  899. "intervalFactor": 1,
  900. "legendFormat": "Checkpointing",
  901. "refId": "C",
  902. "step": 300
  903. }
  904. ],
  905. "thresholds": [],
  906. "timeFrom": null,
  907. "timeShift": null,
  908. "title": "InnoDB Main Thread Utilization",
  909. "tooltip": {
  910. "msResolution": false,
  911. "shared": true,
  912. "sort": 0,
  913. "value_type": "individual"
  914. },
  915. "type": "graph",
  916. "x-axis": true,
  917. "xaxis": {
  918. "buckets": null,
  919. "mode": "time",
  920. "name": null,
  921. "show": true,
  922. "values": []
  923. },
  924. "y-axis": true,
  925. "y_formats": [
  926. "percentunit",
  927. "short"
  928. ],
  929. "yaxes": [
  930. {
  931. "format": "percentunit",
  932. "label": null,
  933. "logBase": 1,
  934. "max": null,
  935. "min": 0,
  936. "show": true
  937. },
  938. {
  939. "format": "short",
  940. "label": null,
  941. "logBase": 1,
  942. "max": null,
  943. "min": null,
  944. "show": true
  945. }
  946. ]
  947. },
  948. {
  949. "aliasColors": {},
  950. "bars": false,
  951. "dashLength": 10,
  952. "dashes": false,
  953. "datasource": "Prometheus",
  954. "decimals": 2,
  955. "editable": true,
  956. "error": false,
  957. "fill": 2,
  958. "grid": {
  959. "leftLogBase": 1,
  960. "leftMax": null,
  961. "leftMin": 0,
  962. "rightLogBase": 1,
  963. "rightMax": null,
  964. "rightMin": 0
  965. },
  966. "id": 50,
  967. "legend": {
  968. "alignAsTable": true,
  969. "avg": true,
  970. "current": false,
  971. "max": true,
  972. "min": true,
  973. "rightSide": false,
  974. "show": true,
  975. "sort": "avg",
  976. "sortDesc": true,
  977. "total": false,
  978. "values": true
  979. },
  980. "lines": true,
  981. "linewidth": 2,
  982. "links": [],
  983. "nullPointMode": "null",
  984. "percentage": false,
  985. "pointradius": 1,
  986. "points": false,
  987. "renderer": "flot",
  988. "seriesOverrides": [],
  989. "spaceLength": 10,
  990. "span": 6,
  991. "stack": false,
  992. "steppedLine": true,
  993. "targets": [
  994. {
  995. "calculatedInterval": "2m",
  996. "datasourceErrors": {},
  997. "errors": {},
  998. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{instance=\"$host\"}[5m])",
  999. "interval": "$interval",
  1000. "intervalFactor": 1,
  1001. "legendFormat": "RW Transacton Commits ",
  1002. "metric": "",
  1003. "refId": "B",
  1004. "step": 300
  1005. },
  1006. {
  1007. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_rollbacks_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rollbacks_total{instance=\"$host\"}[5m])",
  1008. "interval": "$interval",
  1009. "intervalFactor": 1,
  1010. "legendFormat": "Transaction Rollbacks",
  1011. "refId": "A",
  1012. "step": 300
  1013. },
  1014. {
  1015. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_ro_commits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_ro_commits_total{instance=\"$host\"}[5m])",
  1016. "interval": "$interval",
  1017. "intervalFactor": 1,
  1018. "legendFormat": "RO Transaction Commits",
  1019. "refId": "C",
  1020. "step": 300
  1021. },
  1022. {
  1023. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_nl_ro_commits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_nl_ro_commits_total{instance=\"$host\"}[5m])",
  1024. "interval": "$interval",
  1025. "intervalFactor": 1,
  1026. "legendFormat": "Non Locking RO Transaction Commits",
  1027. "refId": "D",
  1028. "step": 300
  1029. },
  1030. {
  1031. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_commits_insert_update_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_commits_insert_update_total{instance=\"$host\"}[5m])",
  1032. "interval": "$interval",
  1033. "intervalFactor": 1,
  1034. "legendFormat": "Insert-Update Transaction Commits",
  1035. "refId": "E",
  1036. "step": 300
  1037. },
  1038. {
  1039. "expr": "rate(mysql_global_status_innodb_max_trx_id{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_max_trx_id{instance=\"$host\"}[5m])",
  1040. "interval": "$interval",
  1041. "intervalFactor": 1,
  1042. "legendFormat": "Transaction IDs Assigned",
  1043. "refId": "F",
  1044. "step": 300
  1045. }
  1046. ],
  1047. "thresholds": [],
  1048. "timeFrom": null,
  1049. "timeShift": null,
  1050. "title": "InnoDB Transactions Information",
  1051. "tooltip": {
  1052. "msResolution": false,
  1053. "shared": true,
  1054. "sort": 0,
  1055. "value_type": "individual"
  1056. },
  1057. "type": "graph",
  1058. "x-axis": true,
  1059. "xaxis": {
  1060. "buckets": null,
  1061. "mode": "time",
  1062. "name": null,
  1063. "show": true,
  1064. "values": []
  1065. },
  1066. "y-axis": true,
  1067. "y_formats": [
  1068. "short",
  1069. "short"
  1070. ],
  1071. "yaxes": [
  1072. {
  1073. "format": "short",
  1074. "label": null,
  1075. "logBase": 1,
  1076. "max": null,
  1077. "min": 0,
  1078. "show": true
  1079. },
  1080. {
  1081. "format": "short",
  1082. "label": null,
  1083. "logBase": 1,
  1084. "max": null,
  1085. "min": null,
  1086. "show": true
  1087. }
  1088. ]
  1089. }
  1090. ],
  1091. "repeat": null,
  1092. "repeatIteration": null,
  1093. "repeatRowId": null,
  1094. "showTitle": false,
  1095. "title": "Main Thread",
  1096. "titleSize": "h6"
  1097. },
  1098. {
  1099. "collapse": false,
  1100. "height": "250px",
  1101. "panels": [
  1102. {
  1103. "aliasColors": {},
  1104. "bars": false,
  1105. "dashLength": 10,
  1106. "dashes": false,
  1107. "datasource": "Prometheus",
  1108. "decimals": 2,
  1109. "editable": true,
  1110. "error": false,
  1111. "fill": 2,
  1112. "grid": {
  1113. "leftLogBase": 1,
  1114. "leftMax": null,
  1115. "leftMin": 0,
  1116. "rightLogBase": 1,
  1117. "rightMax": null,
  1118. "rightMin": 0
  1119. },
  1120. "id": 49,
  1121. "legend": {
  1122. "alignAsTable": true,
  1123. "avg": true,
  1124. "current": false,
  1125. "max": true,
  1126. "min": true,
  1127. "rightSide": false,
  1128. "show": true,
  1129. "sort": "avg",
  1130. "sortDesc": true,
  1131. "total": false,
  1132. "values": true
  1133. },
  1134. "lines": true,
  1135. "linewidth": 2,
  1136. "links": [],
  1137. "nullPointMode": "null",
  1138. "percentage": false,
  1139. "pointradius": 1,
  1140. "points": false,
  1141. "renderer": "flot",
  1142. "seriesOverrides": [],
  1143. "spaceLength": 10,
  1144. "span": 6,
  1145. "stack": false,
  1146. "steppedLine": true,
  1147. "targets": [
  1148. {
  1149. "calculatedInterval": "2m",
  1150. "datasourceErrors": {},
  1151. "errors": {},
  1152. "expr": "mysql_info_schema_innodb_metrics_transaction_trx_rseg_current_size{instance=\"$host\"}*mysql_global_status_innodb_page_size{instance=\"$host\"}",
  1153. "interval": "$interval",
  1154. "intervalFactor": 1,
  1155. "legendFormat": "Innodb Undo Space Used ",
  1156. "metric": "",
  1157. "refId": "B",
  1158. "step": 300
  1159. }
  1160. ],
  1161. "thresholds": [],
  1162. "timeFrom": null,
  1163. "timeShift": null,
  1164. "title": "InnoDB Undo Space Usage",
  1165. "tooltip": {
  1166. "msResolution": false,
  1167. "shared": true,
  1168. "sort": 0,
  1169. "value_type": "individual"
  1170. },
  1171. "type": "graph",
  1172. "x-axis": true,
  1173. "xaxis": {
  1174. "buckets": null,
  1175. "mode": "time",
  1176. "name": null,
  1177. "show": true,
  1178. "values": []
  1179. },
  1180. "y-axis": true,
  1181. "y_formats": [
  1182. "bytes",
  1183. "short"
  1184. ],
  1185. "yaxes": [
  1186. {
  1187. "format": "bytes",
  1188. "label": null,
  1189. "logBase": 1,
  1190. "max": null,
  1191. "min": 0,
  1192. "show": true
  1193. },
  1194. {
  1195. "format": "short",
  1196. "label": null,
  1197. "logBase": 1,
  1198. "max": null,
  1199. "min": null,
  1200. "show": true
  1201. }
  1202. ]
  1203. },
  1204. {
  1205. "aliasColors": {
  1206. "Innodb Activity": "#BA43A9"
  1207. },
  1208. "bars": false,
  1209. "dashLength": 10,
  1210. "dashes": false,
  1211. "datasource": "Prometheus",
  1212. "decimals": 2,
  1213. "editable": true,
  1214. "error": false,
  1215. "fill": 2,
  1216. "grid": {
  1217. "leftLogBase": 1,
  1218. "leftMax": null,
  1219. "leftMin": 0,
  1220. "rightLogBase": 1,
  1221. "rightMax": null,
  1222. "rightMin": 0
  1223. },
  1224. "id": 53,
  1225. "legend": {
  1226. "alignAsTable": true,
  1227. "avg": true,
  1228. "current": false,
  1229. "max": true,
  1230. "min": true,
  1231. "rightSide": false,
  1232. "show": true,
  1233. "sort": "avg",
  1234. "sortDesc": true,
  1235. "total": false,
  1236. "values": true
  1237. },
  1238. "lines": true,
  1239. "linewidth": 2,
  1240. "links": [],
  1241. "nullPointMode": "null",
  1242. "percentage": false,
  1243. "pointradius": 1,
  1244. "points": false,
  1245. "renderer": "flot",
  1246. "seriesOverrides": [],
  1247. "spaceLength": 10,
  1248. "span": 6,
  1249. "stack": false,
  1250. "steppedLine": true,
  1251. "targets": [
  1252. {
  1253. "calculatedInterval": "2m",
  1254. "datasourceErrors": {},
  1255. "errors": {},
  1256. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_activity_count_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_activity_count_total{instance=\"$host\"}[5m])",
  1257. "interval": "$interval",
  1258. "intervalFactor": 1,
  1259. "legendFormat": "InnoDB Activity",
  1260. "metric": "",
  1261. "refId": "B",
  1262. "step": 300
  1263. }
  1264. ],
  1265. "thresholds": [],
  1266. "timeFrom": null,
  1267. "timeShift": null,
  1268. "title": "InnoDB Activity",
  1269. "tooltip": {
  1270. "msResolution": false,
  1271. "shared": true,
  1272. "sort": 0,
  1273. "value_type": "individual"
  1274. },
  1275. "type": "graph",
  1276. "x-axis": true,
  1277. "xaxis": {
  1278. "buckets": null,
  1279. "mode": "time",
  1280. "name": null,
  1281. "show": true,
  1282. "values": []
  1283. },
  1284. "y-axis": true,
  1285. "y_formats": [
  1286. "short",
  1287. "short"
  1288. ],
  1289. "yaxes": [
  1290. {
  1291. "format": "short",
  1292. "label": null,
  1293. "logBase": 1,
  1294. "max": null,
  1295. "min": 0,
  1296. "show": true
  1297. },
  1298. {
  1299. "format": "short",
  1300. "label": null,
  1301. "logBase": 1,
  1302. "max": null,
  1303. "min": null,
  1304. "show": true
  1305. }
  1306. ]
  1307. }
  1308. ],
  1309. "repeat": null,
  1310. "repeatIteration": null,
  1311. "repeatRowId": null,
  1312. "showTitle": false,
  1313. "title": "Undo",
  1314. "titleSize": "h6"
  1315. },
  1316. {
  1317. "collapse": false,
  1318. "height": "250px",
  1319. "panels": [
  1320. {
  1321. "aliasColors": {},
  1322. "bars": false,
  1323. "dashLength": 10,
  1324. "dashes": false,
  1325. "datasource": "Prometheus",
  1326. "decimals": 2,
  1327. "editable": true,
  1328. "error": false,
  1329. "fill": 2,
  1330. "grid": {
  1331. "leftLogBase": 1,
  1332. "leftMax": null,
  1333. "leftMin": 0,
  1334. "rightLogBase": 1,
  1335. "rightMax": null,
  1336. "rightMin": 0
  1337. },
  1338. "id": 55,
  1339. "legend": {
  1340. "alignAsTable": true,
  1341. "avg": true,
  1342. "current": false,
  1343. "hideEmpty": false,
  1344. "hideZero": false,
  1345. "max": true,
  1346. "min": true,
  1347. "rightSide": false,
  1348. "show": true,
  1349. "sort": "avg",
  1350. "sortDesc": true,
  1351. "total": false,
  1352. "values": true
  1353. },
  1354. "lines": true,
  1355. "linewidth": 2,
  1356. "links": [],
  1357. "nullPointMode": "null",
  1358. "percentage": false,
  1359. "pointradius": 1,
  1360. "points": false,
  1361. "renderer": "flot",
  1362. "seriesOverrides": [],
  1363. "spaceLength": 10,
  1364. "span": 6,
  1365. "stack": false,
  1366. "steppedLine": true,
  1367. "targets": [
  1368. {
  1369. "calculatedInterval": "2m",
  1370. "datasourceErrors": {},
  1371. "errors": {},
  1372. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_s_os_waits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_s_os_waits_total{instance=\"$host\"}[5m])",
  1373. "interval": "$interval",
  1374. "intervalFactor": 1,
  1375. "legendFormat": "RW Locks S OS Waits",
  1376. "metric": "",
  1377. "refId": "B",
  1378. "step": 300
  1379. },
  1380. {
  1381. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_sx_os_waits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_sx_os_waits_total{instance=\"$host\"}[5m])",
  1382. "interval": "$interval",
  1383. "intervalFactor": 1,
  1384. "legendFormat": "RW Locks SX OS Waits",
  1385. "refId": "A",
  1386. "step": 300
  1387. },
  1388. {
  1389. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_x_os_waits_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_x_os_waits_total{instance=\"$host\"}[5m])",
  1390. "interval": "$interval",
  1391. "intervalFactor": 1,
  1392. "legendFormat": "RW Locks X OS Waits",
  1393. "refId": "C",
  1394. "step": 300
  1395. }
  1396. ],
  1397. "thresholds": [],
  1398. "timeFrom": null,
  1399. "timeShift": null,
  1400. "title": "InnoDB Contention - OS Waits",
  1401. "tooltip": {
  1402. "msResolution": false,
  1403. "shared": true,
  1404. "sort": 0,
  1405. "value_type": "individual"
  1406. },
  1407. "type": "graph",
  1408. "x-axis": true,
  1409. "xaxis": {
  1410. "buckets": null,
  1411. "mode": "time",
  1412. "name": null,
  1413. "show": true,
  1414. "values": []
  1415. },
  1416. "y-axis": true,
  1417. "y_formats": [
  1418. "short",
  1419. "short"
  1420. ],
  1421. "yaxes": [
  1422. {
  1423. "format": "short",
  1424. "label": null,
  1425. "logBase": 1,
  1426. "max": null,
  1427. "min": 0,
  1428. "show": true
  1429. },
  1430. {
  1431. "format": "short",
  1432. "label": null,
  1433. "logBase": 1,
  1434. "max": null,
  1435. "min": null,
  1436. "show": true
  1437. }
  1438. ]
  1439. },
  1440. {
  1441. "aliasColors": {},
  1442. "bars": false,
  1443. "dashLength": 10,
  1444. "dashes": false,
  1445. "datasource": "Prometheus",
  1446. "decimals": 2,
  1447. "editable": true,
  1448. "error": false,
  1449. "fill": 2,
  1450. "grid": {
  1451. "leftLogBase": 1,
  1452. "leftMax": null,
  1453. "leftMin": 0,
  1454. "rightLogBase": 1,
  1455. "rightMax": null,
  1456. "rightMin": 0
  1457. },
  1458. "id": 54,
  1459. "legend": {
  1460. "alignAsTable": true,
  1461. "avg": true,
  1462. "current": false,
  1463. "hideEmpty": false,
  1464. "hideZero": false,
  1465. "max": true,
  1466. "min": true,
  1467. "rightSide": false,
  1468. "show": true,
  1469. "sort": "avg",
  1470. "sortDesc": true,
  1471. "total": false,
  1472. "values": true
  1473. },
  1474. "lines": true,
  1475. "linewidth": 2,
  1476. "links": [],
  1477. "nullPointMode": "null",
  1478. "percentage": false,
  1479. "pointradius": 1,
  1480. "points": false,
  1481. "renderer": "flot",
  1482. "seriesOverrides": [],
  1483. "spaceLength": 10,
  1484. "span": 6,
  1485. "stack": false,
  1486. "steppedLine": true,
  1487. "targets": [
  1488. {
  1489. "calculatedInterval": "2m",
  1490. "datasourceErrors": {},
  1491. "errors": {},
  1492. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_s_spin_rounds_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_s_spin_rounds_total{instance=\"$host\"}[5m])",
  1493. "interval": "$interval",
  1494. "intervalFactor": 1,
  1495. "legendFormat": "RW Locks S Spin Rounds",
  1496. "metric": "",
  1497. "refId": "B",
  1498. "step": 300
  1499. },
  1500. {
  1501. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_sx_spin_rounds_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_sx_spin_rounds_total{instance=\"$host\"}[5m])",
  1502. "interval": "$interval",
  1503. "intervalFactor": 1,
  1504. "legendFormat": "RW Locks SX Spin Rounds",
  1505. "refId": "A",
  1506. "step": 300
  1507. },
  1508. {
  1509. "expr": "rate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_x_spin_rounds_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_server_innodb_rwlock_x_spin_rounds_total{instance=\"$host\"}[5m])",
  1510. "interval": "$interval",
  1511. "intervalFactor": 1,
  1512. "legendFormat": "RW Locks X Spin Rounds",
  1513. "refId": "C",
  1514. "step": 300
  1515. }
  1516. ],
  1517. "thresholds": [],
  1518. "timeFrom": null,
  1519. "timeShift": null,
  1520. "title": "InnoDB Contention - Spin Rounds",
  1521. "tooltip": {
  1522. "msResolution": false,
  1523. "shared": true,
  1524. "sort": 0,
  1525. "value_type": "individual"
  1526. },
  1527. "type": "graph",
  1528. "x-axis": true,
  1529. "xaxis": {
  1530. "buckets": null,
  1531. "mode": "time",
  1532. "name": null,
  1533. "show": true,
  1534. "values": []
  1535. },
  1536. "y-axis": true,
  1537. "y_formats": [
  1538. "short",
  1539. "short"
  1540. ],
  1541. "yaxes": [
  1542. {
  1543. "format": "short",
  1544. "label": null,
  1545. "logBase": 1,
  1546. "max": null,
  1547. "min": 0,
  1548. "show": true
  1549. },
  1550. {
  1551. "format": "short",
  1552. "label": null,
  1553. "logBase": 1,
  1554. "max": null,
  1555. "min": null,
  1556. "show": true
  1557. }
  1558. ]
  1559. }
  1560. ],
  1561. "repeat": null,
  1562. "repeatIteration": null,
  1563. "repeatRowId": null,
  1564. "showTitle": false,
  1565. "title": "Contention",
  1566. "titleSize": "h6"
  1567. },
  1568. {
  1569. "collapse": false,
  1570. "height": "250px",
  1571. "panels": [
  1572. {
  1573. "aliasColors": {
  1574. "Avg Row Lock Wait Time": "#BF1B00"
  1575. },
  1576. "bars": false,
  1577. "dashLength": 10,
  1578. "dashes": false,
  1579. "datasource": "Prometheus",
  1580. "decimals": 2,
  1581. "editable": true,
  1582. "error": false,
  1583. "fill": 1,
  1584. "grid": {
  1585. "leftLogBase": 1,
  1586. "leftMax": null,
  1587. "leftMin": 0,
  1588. "rightLogBase": 1,
  1589. "rightMax": null,
  1590. "rightMin": 0
  1591. },
  1592. "id": 47,
  1593. "legend": {
  1594. "alignAsTable": true,
  1595. "avg": true,
  1596. "current": false,
  1597. "max": true,
  1598. "min": true,
  1599. "rightSide": false,
  1600. "show": true,
  1601. "sort": "avg",
  1602. "sortDesc": true,
  1603. "total": false,
  1604. "values": true
  1605. },
  1606. "lines": false,
  1607. "linewidth": 2,
  1608. "links": [],
  1609. "nullPointMode": "null",
  1610. "percentage": false,
  1611. "pointradius": 1,
  1612. "points": true,
  1613. "renderer": "flot",
  1614. "seriesOverrides": [],
  1615. "spaceLength": 10,
  1616. "span": 6,
  1617. "stack": false,
  1618. "steppedLine": true,
  1619. "targets": [
  1620. {
  1621. "calculatedInterval": "2m",
  1622. "datasourceErrors": {},
  1623. "errors": {},
  1624. "expr": "rate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{instance=\"$host\"}[$interval])/rate(mysql_global_status_innodb_log_writes{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_transaction_trx_rw_commits_total{instance=\"$host\"}[5m])/irate(mysql_global_status_innodb_log_writes{instance=\"$host\"}[5m])",
  1625. "interval": "$interval",
  1626. "intervalFactor": 1,
  1627. "legendFormat": "Group Commit Batch Size",
  1628. "metric": "",
  1629. "refId": "B",
  1630. "step": 300
  1631. }
  1632. ],
  1633. "thresholds": [],
  1634. "timeFrom": null,
  1635. "timeShift": null,
  1636. "title": "InnoDB Group Commit Batch Size",
  1637. "tooltip": {
  1638. "msResolution": false,
  1639. "shared": true,
  1640. "sort": 0,
  1641. "value_type": "individual"
  1642. },
  1643. "type": "graph",
  1644. "x-axis": true,
  1645. "xaxis": {
  1646. "buckets": null,
  1647. "mode": "time",
  1648. "name": null,
  1649. "show": true,
  1650. "values": []
  1651. },
  1652. "y-axis": true,
  1653. "y_formats": [
  1654. "short",
  1655. "ms"
  1656. ],
  1657. "yaxes": [
  1658. {
  1659. "format": "short",
  1660. "label": null,
  1661. "logBase": 1,
  1662. "max": null,
  1663. "min": 0,
  1664. "show": true
  1665. },
  1666. {
  1667. "format": "short",
  1668. "label": null,
  1669. "logBase": 1,
  1670. "max": null,
  1671. "min": null,
  1672. "show": true
  1673. }
  1674. ]
  1675. },
  1676. {
  1677. "aliasColors": {},
  1678. "bars": false,
  1679. "dashLength": 10,
  1680. "dashes": false,
  1681. "datasource": "Prometheus",
  1682. "decimals": 2,
  1683. "editable": true,
  1684. "error": false,
  1685. "fill": 2,
  1686. "grid": {
  1687. "leftLogBase": 1,
  1688. "leftMax": null,
  1689. "leftMin": 0,
  1690. "rightLogBase": 1,
  1691. "rightMax": null,
  1692. "rightMin": 0
  1693. },
  1694. "id": 52,
  1695. "legend": {
  1696. "alignAsTable": true,
  1697. "avg": true,
  1698. "current": false,
  1699. "max": true,
  1700. "min": true,
  1701. "rightSide": false,
  1702. "show": true,
  1703. "sort": "avg",
  1704. "sortDesc": true,
  1705. "total": false,
  1706. "values": true
  1707. },
  1708. "lines": true,
  1709. "linewidth": 2,
  1710. "links": [],
  1711. "nullPointMode": "null",
  1712. "percentage": false,
  1713. "pointradius": 1,
  1714. "points": false,
  1715. "renderer": "flot",
  1716. "seriesOverrides": [],
  1717. "spaceLength": 10,
  1718. "span": 6,
  1719. "stack": false,
  1720. "steppedLine": true,
  1721. "targets": [
  1722. {
  1723. "calculatedInterval": "2m",
  1724. "datasourceErrors": {},
  1725. "errors": {},
  1726. "expr": "mysql_info_schema_innodb_metrics_purge_purge_dml_delay_usec{instance=\"$host\"}",
  1727. "interval": "$interval",
  1728. "intervalFactor": 1,
  1729. "legendFormat": "Current Purge Delay",
  1730. "metric": "",
  1731. "refId": "B",
  1732. "step": 300
  1733. },
  1734. {
  1735. "expr": "mysql_global_variables_innodb_max_purge_lag_delay{instance=\"$host\"}",
  1736. "interval": "$interval",
  1737. "intervalFactor": 1,
  1738. "legendFormat": "Max Purge Delay",
  1739. "refId": "A",
  1740. "step": 300
  1741. }
  1742. ],
  1743. "thresholds": [],
  1744. "timeFrom": null,
  1745. "timeShift": null,
  1746. "title": "InnoDB Purge Throttling",
  1747. "tooltip": {
  1748. "msResolution": false,
  1749. "shared": true,
  1750. "sort": 0,
  1751. "value_type": "individual"
  1752. },
  1753. "type": "graph",
  1754. "x-axis": true,
  1755. "xaxis": {
  1756. "buckets": null,
  1757. "mode": "time",
  1758. "name": null,
  1759. "show": true,
  1760. "values": []
  1761. },
  1762. "y-axis": true,
  1763. "y_formats": [
  1764. "\u00b5s",
  1765. "short"
  1766. ],
  1767. "yaxes": [
  1768. {
  1769. "format": "\u00b5s",
  1770. "label": null,
  1771. "logBase": 1,
  1772. "max": null,
  1773. "min": 0,
  1774. "show": true
  1775. },
  1776. {
  1777. "format": "short",
  1778. "label": null,
  1779. "logBase": 1,
  1780. "max": null,
  1781. "min": null,
  1782. "show": true
  1783. }
  1784. ]
  1785. }
  1786. ],
  1787. "repeat": null,
  1788. "repeatIteration": null,
  1789. "repeatRowId": null,
  1790. "showTitle": false,
  1791. "title": "Group",
  1792. "titleSize": "h6"
  1793. },
  1794. {
  1795. "collapse": false,
  1796. "height": "250px",
  1797. "panels": [
  1798. {
  1799. "aliasColors": {},
  1800. "bars": false,
  1801. "dashLength": 10,
  1802. "dashes": false,
  1803. "datasource": "Prometheus",
  1804. "decimals": 2,
  1805. "editable": true,
  1806. "error": false,
  1807. "fill": 2,
  1808. "grid": {
  1809. "leftLogBase": 1,
  1810. "leftMax": null,
  1811. "leftMin": 0,
  1812. "rightLogBase": 1,
  1813. "rightMax": null,
  1814. "rightMin": 0
  1815. },
  1816. "id": 57,
  1817. "legend": {
  1818. "alignAsTable": true,
  1819. "avg": true,
  1820. "current": false,
  1821. "hideEmpty": false,
  1822. "hideZero": false,
  1823. "max": true,
  1824. "min": true,
  1825. "rightSide": false,
  1826. "show": true,
  1827. "sort": "avg",
  1828. "sortDesc": true,
  1829. "total": false,
  1830. "values": true
  1831. },
  1832. "lines": true,
  1833. "linewidth": 2,
  1834. "links": [],
  1835. "nullPointMode": "null",
  1836. "percentage": false,
  1837. "pointradius": 1,
  1838. "points": false,
  1839. "renderer": "flot",
  1840. "seriesOverrides": [
  1841. {
  1842. "alias": "AHI - Hit Ratio",
  1843. "yaxis": 2
  1844. }
  1845. ],
  1846. "spaceLength": 10,
  1847. "span": 6,
  1848. "stack": false,
  1849. "steppedLine": true,
  1850. "targets": [
  1851. {
  1852. "calculatedInterval": "2m",
  1853. "datasourceErrors": {},
  1854. "errors": {},
  1855. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_btree_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_btree_total{instance=\"$host\"}[5m])",
  1856. "format": "time_series",
  1857. "interval": "$interval",
  1858. "intervalFactor": 1,
  1859. "legendFormat": "AHI - Total Searches",
  1860. "metric": "",
  1861. "refId": "B",
  1862. "step": 300
  1863. },
  1864. {
  1865. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[5m])",
  1866. "format": "time_series",
  1867. "interval": "$interval",
  1868. "intervalFactor": 1,
  1869. "legendFormat": "AHI - Misses",
  1870. "refId": "A",
  1871. "step": 300
  1872. },
  1873. {
  1874. "expr": "(rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[$interval]))/(rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[$interval])+rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_btree_total{instance=\"$host\"}[$interval])) or (irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[5m]))/(irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_total{instance=\"$host\"}[5m])+irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_searches_btree_total{instance=\"$host\"}[5m]))",
  1875. "format": "time_series",
  1876. "interval": "$interval",
  1877. "intervalFactor": 1,
  1878. "legendFormat": "AHI - Hit Ratio",
  1879. "refId": "C",
  1880. "step": 300
  1881. }
  1882. ],
  1883. "thresholds": [],
  1884. "timeFrom": null,
  1885. "timeShift": null,
  1886. "title": "InnoDB AHI Usage",
  1887. "tooltip": {
  1888. "msResolution": false,
  1889. "shared": true,
  1890. "sort": 0,
  1891. "value_type": "individual"
  1892. },
  1893. "type": "graph",
  1894. "x-axis": true,
  1895. "xaxis": {
  1896. "buckets": null,
  1897. "mode": "time",
  1898. "name": null,
  1899. "show": true,
  1900. "values": []
  1901. },
  1902. "y-axis": true,
  1903. "y_formats": [
  1904. "short",
  1905. "percentunit"
  1906. ],
  1907. "yaxes": [
  1908. {
  1909. "format": "short",
  1910. "label": null,
  1911. "logBase": 1,
  1912. "max": null,
  1913. "min": 0,
  1914. "show": true
  1915. },
  1916. {
  1917. "format": "percentunit",
  1918. "label": "",
  1919. "logBase": 1,
  1920. "max": null,
  1921. "min": 0,
  1922. "show": true
  1923. }
  1924. ]
  1925. },
  1926. {
  1927. "aliasColors": {},
  1928. "bars": false,
  1929. "dashLength": 10,
  1930. "dashes": false,
  1931. "datasource": "Prometheus",
  1932. "decimals": 2,
  1933. "editable": true,
  1934. "error": false,
  1935. "fill": 2,
  1936. "grid": {
  1937. "leftLogBase": 1,
  1938. "leftMax": null,
  1939. "leftMin": 0,
  1940. "rightLogBase": 1,
  1941. "rightMax": null,
  1942. "rightMin": 0
  1943. },
  1944. "id": 56,
  1945. "legend": {
  1946. "alignAsTable": true,
  1947. "avg": true,
  1948. "current": false,
  1949. "hideEmpty": false,
  1950. "hideZero": false,
  1951. "max": true,
  1952. "min": true,
  1953. "rightSide": false,
  1954. "show": true,
  1955. "sort": "avg",
  1956. "sortDesc": true,
  1957. "total": false,
  1958. "values": true
  1959. },
  1960. "lines": true,
  1961. "linewidth": 2,
  1962. "links": [],
  1963. "nullPointMode": "null",
  1964. "percentage": false,
  1965. "pointradius": 1,
  1966. "points": false,
  1967. "renderer": "flot",
  1968. "seriesOverrides": [],
  1969. "spaceLength": 10,
  1970. "span": 6,
  1971. "stack": false,
  1972. "steppedLine": true,
  1973. "targets": [
  1974. {
  1975. "calculatedInterval": "2m",
  1976. "datasourceErrors": {},
  1977. "errors": {},
  1978. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_pages_added_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_pages_added_total{instance=\"$host\"}[5m])",
  1979. "interval": "$interval",
  1980. "intervalFactor": 1,
  1981. "legendFormat": "AHI - Pages Added",
  1982. "metric": "",
  1983. "refId": "B",
  1984. "step": 300
  1985. },
  1986. {
  1987. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_pages_removed_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_pages_removed_total{instance=\"$host\"}[5m])",
  1988. "interval": "$interval",
  1989. "intervalFactor": 1,
  1990. "legendFormat": "AHI - Pages Removed",
  1991. "refId": "A",
  1992. "step": 300
  1993. },
  1994. {
  1995. "expr": "rate( mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_added_total{instance=\"$host\"}[$interval]) or irate( mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_added_total{instance=\"$host\"}[5m])",
  1996. "interval": "$interval",
  1997. "intervalFactor": 1,
  1998. "legendFormat": "AHI - Rows Added",
  1999. "refId": "C",
  2000. "step": 300
  2001. },
  2002. {
  2003. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_removed_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_removed_total{instance=\"$host\"}[5m])",
  2004. "interval": "$interval",
  2005. "intervalFactor": 1,
  2006. "legendFormat": "AHI - Rows Removed",
  2007. "refId": "D",
  2008. "step": 300
  2009. },
  2010. {
  2011. "expr": "rate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_updated_total{instance=\"$host\"}[$interval]) or irate(mysql_info_schema_innodb_metrics_adaptive_hash_index_adaptive_hash_rows_updated_total{instance=\"$host\"}[5m])",
  2012. "interval": "$interval",
  2013. "intervalFactor": 1,
  2014. "legendFormat": "AHI - Rows Updated",
  2015. "refId": "E",
  2016. "step": 300
  2017. }
  2018. ],
  2019. "thresholds": [],
  2020. "timeFrom": null,
  2021. "timeShift": null,
  2022. "title": "InnoDB AHI Maintenance",
  2023. "tooltip": {
  2024. "msResolution": false,
  2025. "shared": true,
  2026. "sort": 0,
  2027. "value_type": "individual"
  2028. },
  2029. "type": "graph",
  2030. "x-axis": true,
  2031. "xaxis": {
  2032. "buckets": null,
  2033. "mode": "time",
  2034. "name": null,
  2035. "show": true,
  2036. "values": []
  2037. },
  2038. "y-axis": true,
  2039. "y_formats": [
  2040. "short",
  2041. "short"
  2042. ],
  2043. "yaxes": [
  2044. {
  2045. "format": "short",
  2046. "label": null,
  2047. "logBase": 1,
  2048. "max": null,
  2049. "min": 0,
  2050. "show": true
  2051. },
  2052. {
  2053. "format": "short",
  2054. "label": null,
  2055. "logBase": 1,
  2056. "max": null,
  2057. "min": null,
  2058. "show": true
  2059. }
  2060. ]
  2061. }
  2062. ],
  2063. "repeat": null,
  2064. "repeatIteration": null,
  2065. "repeatRowId": null,
  2066. "showTitle": false,
  2067. "title": "AHI",
  2068. "titleSize": "h6"
  2069. },
  2070. {
  2071. "collapse": false,
  2072. "height": 250,
  2073. "panels": [
  2074. {
  2075. "aliasColors": {},
  2076. "bars": false,
  2077. "dashLength": 10,
  2078. "dashes": false,
  2079. "datasource": "Prometheus",
  2080. "decimals": 0,
  2081. "editable": true,
  2082. "error": false,
  2083. "fill": 2,
  2084. "grid": {},
  2085. "id": 60,
  2086. "legend": {
  2087. "alignAsTable": true,
  2088. "avg": false,
  2089. "current": true,
  2090. "max": false,
  2091. "min": false,
  2092. "rightSide": false,
  2093. "show": true,
  2094. "sort": "avg",
  2095. "sortDesc": true,
  2096. "total": false,
  2097. "values": true
  2098. },
  2099. "lines": true,
  2100. "linewidth": 2,
  2101. "links": [],
  2102. "nullPointMode": "null",
  2103. "percentage": false,
  2104. "pointradius": 5,
  2105. "points": false,
  2106. "renderer": "flot",
  2107. "seriesOverrides": [
  2108. {
  2109. "alias": "% Progress",
  2110. "yaxis": 2
  2111. }
  2112. ],
  2113. "spaceLength": 10,
  2114. "span": 6,
  2115. "stack": false,
  2116. "steppedLine": false,
  2117. "targets": [
  2118. {
  2119. "calculatedInterval": "2m",
  2120. "datasourceErrors": {},
  2121. "errors": {},
  2122. "expr": "mysql_global_status_innodb_onlineddl_pct_progress{instance=\"$host\"}/100",
  2123. "format": "time_series",
  2124. "hide": false,
  2125. "interval": "",
  2126. "intervalFactor": 1,
  2127. "legendFormat": "% Progress",
  2128. "metric": "",
  2129. "refId": "D",
  2130. "step": 5
  2131. },
  2132. {
  2133. "calculatedInterval": "2m",
  2134. "datasourceErrors": {},
  2135. "errors": {},
  2136. "expr": "rate(mysql_global_status_innodb_onlineddl_rowlog_pct_used{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_onlineddl_rowlog_pct_used{instance=\"$host\"}[5m])",
  2137. "format": "time_series",
  2138. "interval": "$interval",
  2139. "intervalFactor": 1,
  2140. "legendFormat": "Row Log % Used",
  2141. "metric": "",
  2142. "refId": "C",
  2143. "step": 20
  2144. },
  2145. {
  2146. "calculatedInterval": "2m",
  2147. "datasourceErrors": {},
  2148. "errors": {},
  2149. "expr": "rate(mysql_global_status_innodb_onlineddl_rowlog_rows{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_onlineddl_rowlog_rows{instance=\"$host\"}[5m])",
  2150. "format": "time_series",
  2151. "interval": "$interval",
  2152. "intervalFactor": 1,
  2153. "legendFormat": "Row Log Rows",
  2154. "metric": "",
  2155. "refId": "A",
  2156. "step": 20
  2157. }
  2158. ],
  2159. "thresholds": [],
  2160. "timeFrom": null,
  2161. "timeShift": null,
  2162. "title": "InnoDB Online DDL",
  2163. "tooltip": {
  2164. "msResolution": false,
  2165. "shared": true,
  2166. "sort": 0,
  2167. "value_type": "individual"
  2168. },
  2169. "transparent": false,
  2170. "type": "graph",
  2171. "xaxis": {
  2172. "buckets": null,
  2173. "mode": "time",
  2174. "name": null,
  2175. "show": true,
  2176. "values": []
  2177. },
  2178. "yaxes": [
  2179. {
  2180. "format": "short",
  2181. "logBase": 1,
  2182. "max": null,
  2183. "min": 0,
  2184. "show": true
  2185. },
  2186. {
  2187. "format": "percent",
  2188. "label": "",
  2189. "logBase": 1,
  2190. "max": "100",
  2191. "min": 0,
  2192. "show": true
  2193. }
  2194. ]
  2195. },
  2196. {
  2197. "aliasColors": {},
  2198. "bars": false,
  2199. "dashLength": 10,
  2200. "dashes": false,
  2201. "datasource": "Prometheus",
  2202. "decimals": 2,
  2203. "editable": true,
  2204. "error": false,
  2205. "fill": 2,
  2206. "grid": {},
  2207. "id": 61,
  2208. "legend": {
  2209. "alignAsTable": true,
  2210. "avg": true,
  2211. "current": false,
  2212. "max": true,
  2213. "min": true,
  2214. "rightSide": false,
  2215. "show": true,
  2216. "sort": "avg",
  2217. "sortDesc": true,
  2218. "total": false,
  2219. "values": true
  2220. },
  2221. "lines": true,
  2222. "linewidth": 2,
  2223. "links": [],
  2224. "nullPointMode": "null",
  2225. "percentage": false,
  2226. "pointradius": 5,
  2227. "points": false,
  2228. "renderer": "flot",
  2229. "seriesOverrides": [],
  2230. "spaceLength": 10,
  2231. "span": 6,
  2232. "stack": false,
  2233. "steppedLine": false,
  2234. "targets": [
  2235. {
  2236. "calculatedInterval": "2m",
  2237. "datasourceErrors": {},
  2238. "errors": {},
  2239. "expr": "rate(mysql_global_status_innodb_defragment_count{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_defragment_count{instance=\"$host\"}[5m])",
  2240. "format": "time_series",
  2241. "interval": "$interval",
  2242. "intervalFactor": 1,
  2243. "legendFormat": "Count",
  2244. "metric": "",
  2245. "refId": "D",
  2246. "step": 20
  2247. },
  2248. {
  2249. "calculatedInterval": "2m",
  2250. "datasourceErrors": {},
  2251. "errors": {},
  2252. "expr": "rate(mysql_global_status_innodb_defragment_compression_failures{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_defragment_compression_failures{instance=\"$host\"}[5m])",
  2253. "format": "time_series",
  2254. "interval": "$interval",
  2255. "intervalFactor": 1,
  2256. "legendFormat": "Re-Compression Failures",
  2257. "metric": "",
  2258. "refId": "C",
  2259. "step": 20
  2260. },
  2261. {
  2262. "calculatedInterval": "2m",
  2263. "datasourceErrors": {},
  2264. "errors": {},
  2265. "expr": "rate(mysql_global_status_innodb_defragment_failures{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_defragment_failures{instance=\"$host\"}[5m])",
  2266. "format": "time_series",
  2267. "interval": "$interval",
  2268. "intervalFactor": 1,
  2269. "legendFormat": "Failures",
  2270. "metric": "",
  2271. "refId": "A",
  2272. "step": 20
  2273. }
  2274. ],
  2275. "thresholds": [],
  2276. "timeFrom": null,
  2277. "timeShift": null,
  2278. "title": "InnoDB Defragmentation",
  2279. "tooltip": {
  2280. "msResolution": false,
  2281. "shared": true,
  2282. "sort": 0,
  2283. "value_type": "individual"
  2284. },
  2285. "type": "graph",
  2286. "xaxis": {
  2287. "buckets": null,
  2288. "mode": "time",
  2289. "name": null,
  2290. "show": true,
  2291. "values": []
  2292. },
  2293. "yaxes": [
  2294. {
  2295. "format": "short",
  2296. "logBase": 1,
  2297. "max": null,
  2298. "min": 0,
  2299. "show": true
  2300. },
  2301. {
  2302. "format": "short",
  2303. "logBase": 1,
  2304. "max": null,
  2305. "min": 0,
  2306. "show": true
  2307. }
  2308. ]
  2309. }
  2310. ],
  2311. "repeat": null,
  2312. "repeatIteration": null,
  2313. "repeatRowId": null,
  2314. "showTitle": false,
  2315. "title": "MariaDB metrics",
  2316. "titleSize": "h6"
  2317. }
  2318. ],
  2319. "schemaVersion": 14,
  2320. "style": "dark",
  2321. "tags": [
  2322. "MySQL",
  2323. "Percona"
  2324. ],
  2325. "templating": {
  2326. "list": [
  2327. {
  2328. "allFormat": "glob",
  2329. "auto": true,
  2330. "auto_count": 200,
  2331. "auto_min": "1s",
  2332. "current": {
  2333. "text": "auto",
  2334. "value": "$__auto_interval"
  2335. },
  2336. "datasource": "Prometheus",
  2337. "hide": 0,
  2338. "includeAll": false,
  2339. "label": "Interval",
  2340. "multi": false,
  2341. "multiFormat": "glob",
  2342. "name": "interval",
  2343. "options": [
  2344. {
  2345. "selected": true,
  2346. "text": "auto",
  2347. "value": "$__auto_interval"
  2348. },
  2349. {
  2350. "selected": false,
  2351. "text": "1s",
  2352. "value": "1s"
  2353. },
  2354. {
  2355. "selected": false,
  2356. "text": "5s",
  2357. "value": "5s"
  2358. },
  2359. {
  2360. "selected": false,
  2361. "text": "1m",
  2362. "value": "1m"
  2363. },
  2364. {
  2365. "selected": false,
  2366. "text": "5m",
  2367. "value": "5m"
  2368. },
  2369. {
  2370. "selected": false,
  2371. "text": "1h",
  2372. "value": "1h"
  2373. },
  2374. {
  2375. "selected": false,
  2376. "text": "6h",
  2377. "value": "6h"
  2378. },
  2379. {
  2380. "selected": false,
  2381. "text": "1d",
  2382. "value": "1d"
  2383. }
  2384. ],
  2385. "query": "1s,5s,1m,5m,1h,6h,1d",
  2386. "refresh": 2,
  2387. "type": "interval"
  2388. },
  2389. {
  2390. "allFormat": "glob",
  2391. "allValue": null,
  2392. "datasource": "Prometheus",
  2393. "hide": 0,
  2394. "includeAll": false,
  2395. "label": "Host",
  2396. "multi": false,
  2397. "multiFormat": "regex values",
  2398. "name": "host",
  2399. "query": "label_values(mysql_up, instance)",
  2400. "refresh": 1,
  2401. "refresh_on_load": false,
  2402. "regex": "",
  2403. "sort": 1,
  2404. "tagValuesQuery": null,
  2405. "tags": [],
  2406. "tagsQuery": null,
  2407. "type": "query",
  2408. "useTags": false
  2409. }
  2410. ]
  2411. },
  2412. "time": {
  2413. "from": "now-12h",
  2414. "to": "now"
  2415. },
  2416. "timepicker": {
  2417. "collapse": false,
  2418. "enable": true,
  2419. "notice": false,
  2420. "now": true,
  2421. "refresh_intervals": [
  2422. "5s",
  2423. "10s",
  2424. "30s",
  2425. "1m",
  2426. "5m",
  2427. "15m",
  2428. "30m",
  2429. "1h",
  2430. "2h",
  2431. "1d"
  2432. ],
  2433. "status": "Stable",
  2434. "time_options": [
  2435. "5m",
  2436. "15m",
  2437. "1h",
  2438. "6h",
  2439. "12h",
  2440. "24h",
  2441. "2d",
  2442. "7d",
  2443. "30d"
  2444. ],
  2445. "type": "timepicker"
  2446. },
  2447. "timezone": "browser",
  2448. "title": "MySQL InnoDB Metrics Advanced",
  2449. "version": 0
  2450. }