MySQL_InnoDB_Metrics.json 83 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "graphTooltip": 1,
  8. "hideControls": true,
  9. "id": null,
  10. "links": [
  11. {
  12. "asDropdown": true,
  13. "icon": "external link",
  14. "includeVars": true,
  15. "keepTime": true,
  16. "tags": [
  17. "OS"
  18. ],
  19. "targetBlank": true,
  20. "title": "OS",
  21. "type": "dashboards"
  22. },
  23. {
  24. "asDropdown": true,
  25. "icon": "external link",
  26. "includeVars": true,
  27. "keepTime": true,
  28. "tags": [
  29. "MySQL"
  30. ],
  31. "targetBlank": true,
  32. "title": "MySQL",
  33. "type": "dashboards"
  34. },
  35. {
  36. "asDropdown": true,
  37. "icon": "external link",
  38. "includeVars": true,
  39. "keepTime": true,
  40. "tags": [
  41. "HA"
  42. ],
  43. "targetBlank": true,
  44. "title": "HA",
  45. "type": "dashboards"
  46. }
  47. ],
  48. "rows": [
  49. {
  50. "collapse": false,
  51. "height": "250px",
  52. "panels": [
  53. {
  54. "aliasColors": {
  55. "Max Checkpoint Age": "#BF1B00",
  56. "Uncheckpointed Bytes": "#E0752D"
  57. },
  58. "bars": false,
  59. "dashLength": 10,
  60. "dashes": false,
  61. "datasource": "Prometheus",
  62. "decimals": 2,
  63. "editable": true,
  64. "error": false,
  65. "fill": 2,
  66. "grid": {},
  67. "id": 19,
  68. "legend": {
  69. "alignAsTable": true,
  70. "avg": true,
  71. "current": false,
  72. "max": true,
  73. "min": true,
  74. "rightSide": false,
  75. "show": true,
  76. "sort": "avg",
  77. "sortDesc": true,
  78. "total": false,
  79. "values": true
  80. },
  81. "lines": true,
  82. "linewidth": 2,
  83. "links": [],
  84. "nullPointMode": "null",
  85. "percentage": false,
  86. "pointradius": 5,
  87. "points": false,
  88. "renderer": "flot",
  89. "seriesOverrides": [
  90. {
  91. "alias": "Max Checkpoint Age",
  92. "color": "#BF1B00",
  93. "fill": 0
  94. }
  95. ],
  96. "spaceLength": 10,
  97. "span": 6,
  98. "stack": false,
  99. "steppedLine": false,
  100. "targets": [
  101. {
  102. "calculatedInterval": "2m",
  103. "datasourceErrors": {},
  104. "errors": {},
  105. "expr": "mysql_global_status_innodb_checkpoint_age{instance=\"$host\"}",
  106. "interval": "$interval",
  107. "intervalFactor": 1,
  108. "legendFormat": "Uncheckpointed Bytes",
  109. "metric": "",
  110. "refId": "A",
  111. "step": 300
  112. },
  113. {
  114. "calculatedInterval": "2m",
  115. "datasourceErrors": {},
  116. "errors": {},
  117. "expr": "mysql_global_status_innodb_checkpoint_max_age{instance=\"$host\"}",
  118. "interval": "$interval",
  119. "intervalFactor": 1,
  120. "legendFormat": "Max Checkpoint Age",
  121. "metric": "",
  122. "refId": "B",
  123. "step": 300
  124. }
  125. ],
  126. "thresholds": [],
  127. "timeFrom": null,
  128. "timeShift": null,
  129. "title": "InnoDB Checkpoint Age",
  130. "tooltip": {
  131. "msResolution": false,
  132. "shared": true,
  133. "sort": 0,
  134. "value_type": "individual"
  135. },
  136. "type": "graph",
  137. "xaxis": {
  138. "buckets": null,
  139. "mode": "time",
  140. "name": null,
  141. "show": true,
  142. "values": []
  143. },
  144. "yaxes": [
  145. {
  146. "format": "bytes",
  147. "logBase": 1,
  148. "max": null,
  149. "min": 0,
  150. "show": true
  151. },
  152. {
  153. "format": "bytes",
  154. "logBase": 1,
  155. "max": null,
  156. "min": 0,
  157. "show": true
  158. }
  159. ]
  160. },
  161. {
  162. "aliasColors": {},
  163. "bars": false,
  164. "dashLength": 10,
  165. "dashes": false,
  166. "datasource": "Prometheus",
  167. "decimals": 2,
  168. "description": "**Innodb Transactions** is number of Innodb transactions system is handling per second used to understand the load\n\n**History Length** is number of Innodb transactions which has not been purged yet. Large number of unpurged transactions can cause significant performance regression",
  169. "editable": true,
  170. "error": false,
  171. "fill": 2,
  172. "grid": {},
  173. "id": 20,
  174. "legend": {
  175. "alignAsTable": true,
  176. "avg": true,
  177. "current": false,
  178. "hideZero": true,
  179. "max": true,
  180. "min": true,
  181. "rightSide": false,
  182. "show": true,
  183. "sort": "avg",
  184. "sortDesc": true,
  185. "total": false,
  186. "values": true
  187. },
  188. "lines": true,
  189. "linewidth": 2,
  190. "links": [],
  191. "nullPointMode": "null",
  192. "percentage": false,
  193. "pointradius": 5,
  194. "points": false,
  195. "renderer": "flot",
  196. "seriesOverrides": [
  197. {
  198. "alias": "InnoDB Transactions",
  199. "yaxis": 2
  200. }
  201. ],
  202. "spaceLength": 10,
  203. "span": 6,
  204. "stack": false,
  205. "steppedLine": false,
  206. "targets": [
  207. {
  208. "calculatedInterval": "2m",
  209. "datasourceErrors": {},
  210. "errors": {},
  211. "expr": "rate(mysql_global_status_innodb_max_trx_id{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_max_trx_id{instance=\"$host\"}[5m])",
  212. "format": "time_series",
  213. "interval": "$interval",
  214. "intervalFactor": 1,
  215. "legendFormat": "InnoDB Transactions",
  216. "metric": "",
  217. "refId": "A",
  218. "step": 300
  219. },
  220. {
  221. "calculatedInterval": "2m",
  222. "datasourceErrors": {},
  223. "errors": {},
  224. "expr": "max_over_time(mysql_global_status_innodb_history_list_length{instance=\"$host\"}[$interval]) or max_over_time(mysql_info_schema_innodb_metrics_transaction_trx_rseg_history_len{instance=\"$host\"}[$interval])",
  225. "format": "time_series",
  226. "interval": "$interval",
  227. "intervalFactor": 1,
  228. "legendFormat": "History Length",
  229. "metric": "",
  230. "refId": "B",
  231. "step": 300
  232. }
  233. ],
  234. "thresholds": [],
  235. "timeFrom": null,
  236. "timeShift": null,
  237. "title": "InnoDB Transactions",
  238. "tooltip": {
  239. "msResolution": false,
  240. "shared": true,
  241. "sort": 0,
  242. "value_type": "individual"
  243. },
  244. "type": "graph",
  245. "xaxis": {
  246. "buckets": null,
  247. "mode": "time",
  248. "name": null,
  249. "show": true,
  250. "values": []
  251. },
  252. "yaxes": [
  253. {
  254. "format": "short",
  255. "logBase": 1,
  256. "max": null,
  257. "min": 0,
  258. "show": true
  259. },
  260. {
  261. "format": "short",
  262. "logBase": 1,
  263. "max": null,
  264. "min": 0,
  265. "show": true
  266. }
  267. ]
  268. }
  269. ],
  270. "repeat": null,
  271. "repeatIteration": null,
  272. "repeatRowId": null,
  273. "showTitle": false,
  274. "title": "Checkpoint",
  275. "titleSize": "h6"
  276. },
  277. {
  278. "collapse": false,
  279. "height": "250px",
  280. "panels": [
  281. {
  282. "aliasColors": {},
  283. "bars": false,
  284. "dashLength": 10,
  285. "dashes": false,
  286. "datasource": "Prometheus",
  287. "decimals": 2,
  288. "editable": true,
  289. "error": false,
  290. "fill": 2,
  291. "grid": {},
  292. "id": 23,
  293. "legend": {
  294. "alignAsTable": true,
  295. "avg": true,
  296. "current": false,
  297. "max": true,
  298. "min": true,
  299. "rightSide": false,
  300. "show": true,
  301. "sort": "avg",
  302. "sortDesc": true,
  303. "total": false,
  304. "values": true
  305. },
  306. "lines": true,
  307. "linewidth": 2,
  308. "links": [],
  309. "nullPointMode": "null",
  310. "percentage": false,
  311. "pointradius": 5,
  312. "points": false,
  313. "renderer": "flot",
  314. "seriesOverrides": [],
  315. "spaceLength": 10,
  316. "span": 6,
  317. "stack": false,
  318. "steppedLine": false,
  319. "targets": [
  320. {
  321. "calculatedInterval": "2m",
  322. "datasourceErrors": {},
  323. "errors": {},
  324. "expr": "rate(mysql_global_status_innodb_row_ops_total{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_row_ops_total{instance=\"$host\"}[5m])",
  325. "interval": "$interval",
  326. "intervalFactor": 1,
  327. "legendFormat": "Rows {{ operation }}",
  328. "metric": "",
  329. "refId": "A",
  330. "step": 300
  331. }
  332. ],
  333. "thresholds": [],
  334. "timeFrom": null,
  335. "timeShift": null,
  336. "title": "InnoDB Row Operations",
  337. "tooltip": {
  338. "msResolution": false,
  339. "shared": true,
  340. "sort": 0,
  341. "value_type": "individual"
  342. },
  343. "type": "graph",
  344. "xaxis": {
  345. "buckets": null,
  346. "mode": "time",
  347. "name": null,
  348. "show": true,
  349. "values": []
  350. },
  351. "yaxes": [
  352. {
  353. "format": "short",
  354. "logBase": 1,
  355. "max": null,
  356. "min": 0,
  357. "show": true
  358. },
  359. {
  360. "format": "short",
  361. "logBase": 1,
  362. "max": null,
  363. "min": 0,
  364. "show": true
  365. }
  366. ]
  367. },
  368. {
  369. "aliasColors": {
  370. "Avg Row Lock Wait Time": "#BF1B00"
  371. },
  372. "bars": false,
  373. "dashLength": 10,
  374. "dashes": false,
  375. "datasource": "Prometheus",
  376. "decimals": 2,
  377. "editable": true,
  378. "error": false,
  379. "fill": 1,
  380. "grid": {
  381. "leftLogBase": 1,
  382. "leftMax": null,
  383. "leftMin": 0,
  384. "rightLogBase": 1,
  385. "rightMax": null,
  386. "rightMin": 0
  387. },
  388. "id": 46,
  389. "legend": {
  390. "alignAsTable": true,
  391. "avg": true,
  392. "current": false,
  393. "max": true,
  394. "min": true,
  395. "rightSide": false,
  396. "show": true,
  397. "sort": "avg",
  398. "sortDesc": true,
  399. "total": false,
  400. "values": true
  401. },
  402. "lines": false,
  403. "linewidth": 2,
  404. "links": [],
  405. "nullPointMode": "null",
  406. "percentage": false,
  407. "pointradius": 1,
  408. "points": true,
  409. "renderer": "flot",
  410. "seriesOverrides": [
  411. {
  412. "alias": "Avg Row Lock Wait Time",
  413. "yaxis": 2
  414. }
  415. ],
  416. "spaceLength": 10,
  417. "span": 6,
  418. "stack": false,
  419. "steppedLine": true,
  420. "targets": [
  421. {
  422. "calculatedInterval": "2m",
  423. "datasourceErrors": {},
  424. "errors": {},
  425. "expr": "rate(mysql_global_status_innodb_row_lock_waits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_row_lock_waits{instance=\"$host\"}[5m])",
  426. "interval": "$interval",
  427. "intervalFactor": 1,
  428. "legendFormat": "Row Lock Waits",
  429. "metric": "",
  430. "refId": "B",
  431. "step": 300
  432. },
  433. {
  434. "expr": "rate(mysql_global_status_innodb_row_lock_time{instance=\"$host\"}[$interval])/1000 or irate(mysql_global_status_innodb_row_lock_time{instance=\"$host\"}[5m])/1000",
  435. "interval": "$interval",
  436. "intervalFactor": 1,
  437. "legendFormat": "Row Lock Wait Load",
  438. "metric": "",
  439. "refId": "A",
  440. "step": 300
  441. },
  442. {
  443. "expr": "rate(mysql_global_status_innodb_row_lock_time{instance=\"$host\"}[$interval])/rate(mysql_global_status_innodb_row_lock_waits{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_row_lock_time{instance=\"$host\"}[5m])/irate(mysql_global_status_innodb_row_lock_waits{instance=\"$host\"}[5m])",
  444. "interval": "$interval",
  445. "intervalFactor": 1,
  446. "legendFormat": "Avg Row Lock Wait Time",
  447. "refId": "C",
  448. "step": 300
  449. }
  450. ],
  451. "thresholds": [],
  452. "timeFrom": null,
  453. "timeShift": null,
  454. "title": "InnoDB Row Lock Time",
  455. "tooltip": {
  456. "msResolution": false,
  457. "shared": true,
  458. "sort": 0,
  459. "value_type": "individual"
  460. },
  461. "type": "graph",
  462. "x-axis": true,
  463. "xaxis": {
  464. "buckets": null,
  465. "mode": "time",
  466. "name": null,
  467. "show": true,
  468. "values": []
  469. },
  470. "y-axis": true,
  471. "y_formats": [
  472. "short",
  473. "ms"
  474. ],
  475. "yaxes": [
  476. {
  477. "format": "short",
  478. "label": null,
  479. "logBase": 1,
  480. "max": null,
  481. "min": 0,
  482. "show": true
  483. },
  484. {
  485. "format": "ms",
  486. "label": null,
  487. "logBase": 1,
  488. "max": null,
  489. "min": 0,
  490. "show": true
  491. }
  492. ]
  493. }
  494. ],
  495. "repeat": null,
  496. "repeatIteration": null,
  497. "repeatRowId": null,
  498. "showTitle": false,
  499. "title": "Row Ops",
  500. "titleSize": "h6"
  501. },
  502. {
  503. "collapse": false,
  504. "height": "250px",
  505. "panels": [
  506. {
  507. "aliasColors": {},
  508. "bars": false,
  509. "dashLength": 10,
  510. "dashes": false,
  511. "datasource": "Prometheus",
  512. "decimals": 2,
  513. "editable": true,
  514. "error": false,
  515. "fill": 2,
  516. "grid": {},
  517. "id": 38,
  518. "legend": {
  519. "alignAsTable": true,
  520. "avg": true,
  521. "current": false,
  522. "max": true,
  523. "min": true,
  524. "rightSide": false,
  525. "show": true,
  526. "sort": "avg",
  527. "sortDesc": true,
  528. "total": false,
  529. "values": true
  530. },
  531. "lines": true,
  532. "linewidth": 2,
  533. "links": [],
  534. "nullPointMode": "null",
  535. "percentage": false,
  536. "pointradius": 5,
  537. "points": false,
  538. "renderer": "flot",
  539. "seriesOverrides": [],
  540. "spaceLength": 10,
  541. "span": 4,
  542. "stack": false,
  543. "steppedLine": false,
  544. "targets": [
  545. {
  546. "calculatedInterval": "2m",
  547. "datasourceErrors": {},
  548. "errors": {},
  549. "expr": "rate(mysql_global_status_innodb_data_reads{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_data_reads{instance=\"$host\"}[5m])",
  550. "interval": "$interval",
  551. "intervalFactor": 1,
  552. "legendFormat": "Data Reads",
  553. "metric": "",
  554. "refId": "C",
  555. "step": 300
  556. },
  557. {
  558. "calculatedInterval": "2m",
  559. "datasourceErrors": {},
  560. "errors": {},
  561. "expr": "rate(mysql_global_status_innodb_data_writes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_data_writes{instance=\"$host\"}[5m])",
  562. "interval": "$interval",
  563. "intervalFactor": 1,
  564. "legendFormat": "Data Writes",
  565. "metric": "",
  566. "refId": "D",
  567. "step": 300
  568. },
  569. {
  570. "calculatedInterval": "2m",
  571. "datasourceErrors": {},
  572. "errors": {},
  573. "expr": "rate(mysql_global_status_innodb_data_fsyncs{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_data_fsyncs{instance=\"$host\"}[5m])",
  574. "interval": "$interval",
  575. "intervalFactor": 1,
  576. "legendFormat": "Data Fsyncs",
  577. "metric": "",
  578. "refId": "A",
  579. "step": 300
  580. },
  581. {
  582. "calculatedInterval": "2m",
  583. "datasourceErrors": {},
  584. "errors": {},
  585. "expr": "rate(mysql_global_status_innodb_log_writes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_log_writes{instance=\"$host\"}[5m])",
  586. "interval": "$interval",
  587. "intervalFactor": 1,
  588. "legendFormat": "Log Writes",
  589. "metric": "",
  590. "refId": "B",
  591. "step": 300
  592. }
  593. ],
  594. "thresholds": [],
  595. "timeFrom": null,
  596. "timeShift": null,
  597. "title": "InnoDB I/O",
  598. "tooltip": {
  599. "msResolution": false,
  600. "shared": true,
  601. "sort": 0,
  602. "value_type": "individual"
  603. },
  604. "type": "graph",
  605. "xaxis": {
  606. "buckets": null,
  607. "mode": "time",
  608. "name": null,
  609. "show": true,
  610. "values": []
  611. },
  612. "yaxes": [
  613. {
  614. "format": "short",
  615. "logBase": 1,
  616. "max": null,
  617. "min": 0,
  618. "show": true
  619. },
  620. {
  621. "format": "short",
  622. "logBase": 1,
  623. "max": null,
  624. "min": 0,
  625. "show": true
  626. }
  627. ]
  628. },
  629. {
  630. "aliasColors": {},
  631. "bars": true,
  632. "dashLength": 10,
  633. "dashes": false,
  634. "datasource": "Prometheus",
  635. "decimals": 2,
  636. "editable": true,
  637. "error": false,
  638. "fill": 2,
  639. "grid": {},
  640. "id": 37,
  641. "legend": {
  642. "alignAsTable": true,
  643. "avg": true,
  644. "current": false,
  645. "max": true,
  646. "min": true,
  647. "rightSide": false,
  648. "show": true,
  649. "sort": "avg",
  650. "sortDesc": true,
  651. "total": false,
  652. "values": true
  653. },
  654. "lines": false,
  655. "linewidth": 2,
  656. "links": [],
  657. "nullPointMode": "null",
  658. "percentage": false,
  659. "pointradius": 5,
  660. "points": false,
  661. "renderer": "flot",
  662. "seriesOverrides": [
  663. {
  664. "alias": "Total Size of InnoDB Log Files",
  665. "bars": false,
  666. "color": "#E24D42",
  667. "fill": 0,
  668. "lines": true
  669. },
  670. {
  671. "alias": "Data Written",
  672. "color": "#E0752D"
  673. }
  674. ],
  675. "spaceLength": 10,
  676. "span": 4,
  677. "stack": false,
  678. "steppedLine": false,
  679. "targets": [
  680. {
  681. "calculatedInterval": "2m",
  682. "datasourceErrors": {},
  683. "errors": {},
  684. "expr": "increase(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[1h])",
  685. "interval": "1h",
  686. "intervalFactor": 1,
  687. "legendFormat": "Data Written",
  688. "metric": "",
  689. "refId": "A",
  690. "step": 3600
  691. },
  692. {
  693. "calculatedInterval": "2m",
  694. "datasourceErrors": {},
  695. "errors": {},
  696. "expr": "mysql_global_variables_innodb_log_files_in_group{instance=\"$host\"} * mysql_global_variables_innodb_log_file_size{instance=\"$host\"}",
  697. "interval": "$interval",
  698. "intervalFactor": 1,
  699. "legendFormat": "Total Size of InnoDB Log Files",
  700. "metric": "",
  701. "refId": "B",
  702. "step": 300
  703. }
  704. ],
  705. "thresholds": [],
  706. "timeFrom": "24h",
  707. "timeShift": null,
  708. "title": "InnoDB Log File Usage Hourly",
  709. "tooltip": {
  710. "msResolution": false,
  711. "shared": true,
  712. "sort": 0,
  713. "value_type": "individual"
  714. },
  715. "type": "graph",
  716. "xaxis": {
  717. "buckets": null,
  718. "mode": "time",
  719. "name": null,
  720. "show": true,
  721. "values": []
  722. },
  723. "yaxes": [
  724. {
  725. "format": "bytes",
  726. "logBase": 1,
  727. "max": null,
  728. "min": 0,
  729. "show": true
  730. },
  731. {
  732. "format": "short",
  733. "logBase": 1,
  734. "max": null,
  735. "min": 0,
  736. "show": true
  737. }
  738. ]
  739. },
  740. {
  741. "aliasColors": {
  742. "Data Written to Logs": "#E24D42",
  743. "Time to Use Redo Log Space ": "#447EBC"
  744. },
  745. "bars": false,
  746. "dashLength": 10,
  747. "dashes": false,
  748. "datasource": "Prometheus",
  749. "decimals": 2,
  750. "editable": true,
  751. "error": false,
  752. "fill": 2,
  753. "grid": {},
  754. "id": 50,
  755. "legend": {
  756. "alignAsTable": true,
  757. "avg": true,
  758. "current": false,
  759. "max": true,
  760. "min": true,
  761. "rightSide": false,
  762. "show": true,
  763. "sort": null,
  764. "sortDesc": null,
  765. "total": false,
  766. "values": true
  767. },
  768. "lines": false,
  769. "linewidth": 2,
  770. "links": [],
  771. "nullPointMode": "null",
  772. "percentage": false,
  773. "pointradius": 1,
  774. "points": true,
  775. "renderer": "flot",
  776. "seriesOverrides": [
  777. {
  778. "alias": "Time to Use Redo Log Space ",
  779. "yaxis": 2
  780. },
  781. {
  782. "alias": "Time to Use In-Memory Log Buffer",
  783. "yaxis": 2
  784. }
  785. ],
  786. "spaceLength": 10,
  787. "span": 4,
  788. "stack": false,
  789. "steppedLine": false,
  790. "targets": [
  791. {
  792. "calculatedInterval": "2m",
  793. "datasourceErrors": {},
  794. "errors": {},
  795. "expr": "rate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[5m])",
  796. "format": "time_series",
  797. "interval": "$interval",
  798. "intervalFactor": 1,
  799. "legendFormat": "Data Written to Logs",
  800. "metric": "",
  801. "refId": "A",
  802. "step": 300
  803. },
  804. {
  805. "calculatedInterval": "2m",
  806. "datasourceErrors": {},
  807. "errors": {},
  808. "expr": "(mysql_global_variables_innodb_log_files_in_group{instance=\"$host\"} * mysql_global_variables_innodb_log_file_size{instance=\"$host\"})/(rate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[5m]))",
  809. "format": "time_series",
  810. "interval": "$interval",
  811. "intervalFactor": 1,
  812. "legendFormat": "Time to Use Redo Log Space ",
  813. "metric": "",
  814. "refId": "B",
  815. "step": 300
  816. },
  817. {
  818. "expr": "(mysql_global_variables_innodb_log_buffer_size{instance=\"$host\"})/(rate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_os_log_written{instance=\"$host\"}[5m]))",
  819. "format": "time_series",
  820. "interval": "$interval",
  821. "intervalFactor": 1,
  822. "legendFormat": "Time to Use In-Memory Log Buffer",
  823. "refId": "C",
  824. "step": 300
  825. }
  826. ],
  827. "thresholds": [],
  828. "timeFrom": null,
  829. "timeShift": null,
  830. "title": "Innodb Logging Performance",
  831. "tooltip": {
  832. "msResolution": false,
  833. "shared": true,
  834. "sort": 0,
  835. "value_type": "individual"
  836. },
  837. "type": "graph",
  838. "xaxis": {
  839. "buckets": null,
  840. "mode": "time",
  841. "name": null,
  842. "show": true,
  843. "values": []
  844. },
  845. "yaxes": [
  846. {
  847. "format": "Bps",
  848. "logBase": 1,
  849. "max": null,
  850. "min": 0,
  851. "show": true
  852. },
  853. {
  854. "format": "s",
  855. "label": "",
  856. "logBase": 2,
  857. "max": null,
  858. "min": 0,
  859. "show": true
  860. }
  861. ]
  862. }
  863. ],
  864. "repeat": null,
  865. "repeatIteration": null,
  866. "repeatRowId": null,
  867. "showTitle": false,
  868. "title": "I/O",
  869. "titleSize": "h6"
  870. },
  871. {
  872. "collapse": false,
  873. "height": "250px",
  874. "panels": [
  875. {
  876. "aliasColors": {},
  877. "bars": false,
  878. "dashLength": 10,
  879. "dashes": false,
  880. "datasource": "Prometheus",
  881. "decimals": 2,
  882. "editable": true,
  883. "error": false,
  884. "fill": 2,
  885. "grid": {},
  886. "id": 47,
  887. "legend": {
  888. "alignAsTable": true,
  889. "avg": true,
  890. "current": false,
  891. "max": true,
  892. "min": true,
  893. "rightSide": false,
  894. "show": true,
  895. "sort": null,
  896. "sortDesc": null,
  897. "total": false,
  898. "values": true
  899. },
  900. "lines": true,
  901. "linewidth": 2,
  902. "links": [],
  903. "nullPointMode": "null",
  904. "percentage": false,
  905. "pointradius": 5,
  906. "points": false,
  907. "renderer": "flot",
  908. "seriesOverrides": [],
  909. "spaceLength": 10,
  910. "span": 6,
  911. "stack": false,
  912. "steppedLine": false,
  913. "targets": [
  914. {
  915. "calculatedInterval": "2m",
  916. "datasourceErrors": {},
  917. "errors": {},
  918. "expr": "(rate(mysql_global_status_innodb_deadlocks{instance=\"$host\"}[$interval]) or rate(mysql_info_schema_innodb_metrics_lock_lock_deadlocks_total{instance=\"$host\"}[$interval])) or (irate(mysql_global_status_innodb_deadlocks{instance=\"$host\"}[5m]) or irate(mysql_info_schema_innodb_metrics_lock_lock_deadlocks_total{instance=\"$host\"}[5m]))",
  919. "interval": "$interval",
  920. "intervalFactor": 1,
  921. "legendFormat": "Deadlocks",
  922. "metric": "",
  923. "refId": "B",
  924. "step": 300
  925. }
  926. ],
  927. "thresholds": [],
  928. "timeFrom": null,
  929. "timeShift": null,
  930. "title": "InnoDB Deadlocks",
  931. "tooltip": {
  932. "msResolution": false,
  933. "shared": true,
  934. "sort": 0,
  935. "value_type": "individual"
  936. },
  937. "type": "graph",
  938. "xaxis": {
  939. "buckets": null,
  940. "mode": "time",
  941. "name": null,
  942. "show": true,
  943. "values": []
  944. },
  945. "yaxes": [
  946. {
  947. "format": "short",
  948. "logBase": 1,
  949. "max": null,
  950. "min": 0,
  951. "show": true
  952. },
  953. {
  954. "format": "short",
  955. "logBase": 1,
  956. "max": null,
  957. "min": 0,
  958. "show": true
  959. }
  960. ]
  961. },
  962. {
  963. "aliasColors": {},
  964. "bars": false,
  965. "dashLength": 10,
  966. "dashes": false,
  967. "datasource": "Prometheus",
  968. "description": "Index Condition Pushdown (ICP) is an optimization for the case where MySQL retrieves rows from a table using an index. Without ICP, the storage engine traverses the index to locate rows in the base table and returns them to the MySQL server which evaluates the\u00a0WHERE condition for the rows. With ICP enabled, and if parts of the\u00a0WHERE\u00a0condition can be evaluated by using only columns from the index, the MySQL server pushes this part of the\u00a0WHERE\u00a0condition down to the storage engine. The storage engine then evaluates the pushed index condition by using the index entry and only if this is satisfied is the row read from the table. ICP can reduce the number of times the storage engine must access the base table and the number of times the MySQL server must access the storage engine.",
  969. "fill": 1,
  970. "id": 48,
  971. "legend": {
  972. "alignAsTable": true,
  973. "avg": true,
  974. "current": true,
  975. "hideEmpty": false,
  976. "hideZero": true,
  977. "max": true,
  978. "min": true,
  979. "rightSide": false,
  980. "show": true,
  981. "total": false,
  982. "values": true
  983. },
  984. "lines": true,
  985. "linewidth": 1,
  986. "links": [
  987. {
  988. "targetBlank": true,
  989. "title": "Index Condition Pushdown optimisation - MySQL 5.7 Manual",
  990. "type": "absolute",
  991. "url": "https://dev.mysql.com/doc/refman/5.7/en/index-condition-pushdown-optimization.html"
  992. },
  993. {
  994. "targetBlank": true,
  995. "title": "ICP counters and how to interpret them",
  996. "type": "absolute",
  997. "url": "https://www.percona.com/blog/2017/05/09/mariadb-handler_icp_-counters-what-they-are-and-how-to-use-them/"
  998. }
  999. ],
  1000. "nullPointMode": "null",
  1001. "percentage": false,
  1002. "pointradius": 5,
  1003. "points": false,
  1004. "renderer": "flot",
  1005. "seriesOverrides": [],
  1006. "spaceLength": 10,
  1007. "span": 6,
  1008. "stack": false,
  1009. "steppedLine": false,
  1010. "targets": [
  1011. {
  1012. "expr": "rate(mysql_info_schema_innodb_metrics_icp_icp_attempts_total{instance=\"$host\"}[$interval])",
  1013. "interval": "$interval",
  1014. "intervalFactor": 1,
  1015. "legendFormat": "Attempts",
  1016. "refId": "A",
  1017. "step": 300
  1018. },
  1019. {
  1020. "expr": "rate(mysql_info_schema_innodb_metrics_icp_icp_match_total{instance=\"$host\"}[$interval])",
  1021. "interval": "$interval",
  1022. "intervalFactor": 1,
  1023. "legendFormat": "Matches",
  1024. "refId": "B",
  1025. "step": 300
  1026. },
  1027. {
  1028. "expr": "rate(mysql_info_schema_innodb_metrics_icp_icp_no_match_total{instance=\"$host\"}[$interval])",
  1029. "interval": "$interval",
  1030. "intervalFactor": 1,
  1031. "legendFormat": "No Matches",
  1032. "refId": "C",
  1033. "step": 300
  1034. },
  1035. {
  1036. "expr": "rate(mysql_info_schema_innodb_metrics_icp_icp_out_of_range_total{instance=\"$host\"}[$interval])",
  1037. "interval": "$interval",
  1038. "intervalFactor": 1,
  1039. "legendFormat": "Out of Range",
  1040. "refId": "D",
  1041. "step": 300
  1042. }
  1043. ],
  1044. "thresholds": [],
  1045. "timeFrom": null,
  1046. "timeShift": null,
  1047. "title": "Index Condition Pushdown (ICP)",
  1048. "tooltip": {
  1049. "shared": true,
  1050. "sort": 0,
  1051. "value_type": "individual"
  1052. },
  1053. "type": "graph",
  1054. "xaxis": {
  1055. "buckets": null,
  1056. "mode": "time",
  1057. "name": null,
  1058. "show": true,
  1059. "values": []
  1060. },
  1061. "yaxes": [
  1062. {
  1063. "format": "short",
  1064. "label": "",
  1065. "logBase": 1,
  1066. "max": null,
  1067. "min": "0",
  1068. "show": true
  1069. },
  1070. {
  1071. "format": "short",
  1072. "label": null,
  1073. "logBase": 1,
  1074. "max": null,
  1075. "min": null,
  1076. "show": false
  1077. }
  1078. ]
  1079. }
  1080. ],
  1081. "repeat": null,
  1082. "repeatIteration": null,
  1083. "repeatRowId": null,
  1084. "showTitle": false,
  1085. "title": "New row",
  1086. "titleSize": "h6"
  1087. },
  1088. {
  1089. "collapse": false,
  1090. "height": "250px",
  1091. "panels": [
  1092. {
  1093. "aliasColors": {},
  1094. "bars": false,
  1095. "dashLength": 10,
  1096. "dashes": false,
  1097. "datasource": "Prometheus",
  1098. "decimals": 2,
  1099. "editable": true,
  1100. "error": false,
  1101. "fill": 2,
  1102. "grid": {},
  1103. "id": 42,
  1104. "legend": {
  1105. "alignAsTable": true,
  1106. "avg": true,
  1107. "current": false,
  1108. "max": true,
  1109. "min": true,
  1110. "rightSide": false,
  1111. "show": true,
  1112. "sort": "avg",
  1113. "sortDesc": true,
  1114. "total": false,
  1115. "values": true
  1116. },
  1117. "lines": true,
  1118. "linewidth": 2,
  1119. "links": [],
  1120. "nullPointMode": "null",
  1121. "percentage": false,
  1122. "pointradius": 5,
  1123. "points": false,
  1124. "renderer": "flot",
  1125. "seriesOverrides": [],
  1126. "spaceLength": 10,
  1127. "span": 6,
  1128. "stack": false,
  1129. "steppedLine": false,
  1130. "targets": [
  1131. {
  1132. "calculatedInterval": "2m",
  1133. "datasourceErrors": {},
  1134. "errors": {},
  1135. "expr": "mysql_global_status_innodb_buffer_pool_bytes_data{instance=\"$host\"}",
  1136. "interval": "$interval",
  1137. "intervalFactor": 1,
  1138. "legendFormat": "Data Total",
  1139. "metric": "",
  1140. "refId": "B",
  1141. "step": 300
  1142. },
  1143. {
  1144. "calculatedInterval": "2m",
  1145. "datasourceErrors": {},
  1146. "errors": {},
  1147. "expr": "mysql_global_status_innodb_buffer_pool_bytes_dirty{instance=\"$host\"}",
  1148. "interval": "$interval",
  1149. "intervalFactor": 1,
  1150. "legendFormat": "Data Dirty",
  1151. "metric": "",
  1152. "refId": "A",
  1153. "step": 300
  1154. }
  1155. ],
  1156. "thresholds": [],
  1157. "timeFrom": null,
  1158. "timeShift": null,
  1159. "title": "InnoDB Buffer Pool Content",
  1160. "tooltip": {
  1161. "msResolution": false,
  1162. "shared": true,
  1163. "sort": 0,
  1164. "value_type": "individual"
  1165. },
  1166. "type": "graph",
  1167. "xaxis": {
  1168. "buckets": null,
  1169. "mode": "time",
  1170. "name": null,
  1171. "show": true,
  1172. "values": []
  1173. },
  1174. "yaxes": [
  1175. {
  1176. "format": "bytes",
  1177. "logBase": 1,
  1178. "max": null,
  1179. "min": 0,
  1180. "show": true
  1181. },
  1182. {
  1183. "format": "short",
  1184. "logBase": 1,
  1185. "max": null,
  1186. "min": 0,
  1187. "show": true
  1188. }
  1189. ]
  1190. },
  1191. {
  1192. "aliasColors": {},
  1193. "bars": false,
  1194. "dashLength": 10,
  1195. "dashes": false,
  1196. "datasource": "Prometheus",
  1197. "decimals": 2,
  1198. "editable": true,
  1199. "error": false,
  1200. "fill": 6,
  1201. "grid": {},
  1202. "id": 3,
  1203. "legend": {
  1204. "alignAsTable": true,
  1205. "avg": true,
  1206. "current": false,
  1207. "max": true,
  1208. "min": true,
  1209. "rightSide": false,
  1210. "show": true,
  1211. "sort": "avg",
  1212. "sortDesc": true,
  1213. "total": false,
  1214. "values": true
  1215. },
  1216. "lines": true,
  1217. "linewidth": 2,
  1218. "links": [],
  1219. "nullPointMode": "null",
  1220. "percentage": false,
  1221. "pointradius": 5,
  1222. "points": false,
  1223. "renderer": "flot",
  1224. "seriesOverrides": [],
  1225. "spaceLength": 10,
  1226. "span": 6,
  1227. "stack": true,
  1228. "steppedLine": false,
  1229. "targets": [
  1230. {
  1231. "calculatedInterval": "2m",
  1232. "datasourceErrors": {},
  1233. "errors": {},
  1234. "expr": "mysql_global_status_buffer_pool_pages{instance=\"$host\", state!=\"dirty\"}",
  1235. "interval": "$interval",
  1236. "intervalFactor": 1,
  1237. "legendFormat": "{{ state }}",
  1238. "metric": "",
  1239. "refId": "B",
  1240. "step": 300
  1241. }
  1242. ],
  1243. "thresholds": [],
  1244. "timeFrom": null,
  1245. "timeShift": null,
  1246. "title": "InnoDB Buffer Pool Pages",
  1247. "tooltip": {
  1248. "msResolution": false,
  1249. "shared": true,
  1250. "sort": 0,
  1251. "value_type": "individual"
  1252. },
  1253. "type": "graph",
  1254. "xaxis": {
  1255. "buckets": null,
  1256. "mode": "time",
  1257. "name": null,
  1258. "show": true,
  1259. "values": []
  1260. },
  1261. "yaxes": [
  1262. {
  1263. "format": "short",
  1264. "logBase": 1,
  1265. "max": null,
  1266. "min": 0,
  1267. "show": true
  1268. },
  1269. {
  1270. "format": "short",
  1271. "logBase": 1,
  1272. "max": null,
  1273. "min": 0,
  1274. "show": true
  1275. }
  1276. ]
  1277. }
  1278. ],
  1279. "repeat": null,
  1280. "repeatIteration": null,
  1281. "repeatRowId": null,
  1282. "showTitle": true,
  1283. "title": "Buffer Pool",
  1284. "titleSize": "h6"
  1285. },
  1286. {
  1287. "collapse": false,
  1288. "height": "250px",
  1289. "panels": [
  1290. {
  1291. "aliasColors": {},
  1292. "bars": false,
  1293. "dashLength": 10,
  1294. "dashes": false,
  1295. "datasource": "Prometheus",
  1296. "decimals": 2,
  1297. "editable": true,
  1298. "error": false,
  1299. "fill": 2,
  1300. "grid": {},
  1301. "id": 21,
  1302. "legend": {
  1303. "alignAsTable": true,
  1304. "avg": true,
  1305. "current": false,
  1306. "max": true,
  1307. "min": true,
  1308. "rightSide": false,
  1309. "show": true,
  1310. "sort": "avg",
  1311. "sortDesc": true,
  1312. "total": false,
  1313. "values": true
  1314. },
  1315. "lines": true,
  1316. "linewidth": 2,
  1317. "links": [],
  1318. "nullPointMode": "null",
  1319. "percentage": false,
  1320. "pointradius": 5,
  1321. "points": false,
  1322. "renderer": "flot",
  1323. "seriesOverrides": [],
  1324. "spaceLength": 10,
  1325. "span": 4,
  1326. "stack": false,
  1327. "steppedLine": false,
  1328. "targets": [
  1329. {
  1330. "calculatedInterval": "2m",
  1331. "datasourceErrors": {},
  1332. "errors": {},
  1333. "expr": "rate(mysql_global_status_innodb_pages_created{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_pages_created{instance=\"$host\"}[5m])",
  1334. "interval": "$interval",
  1335. "intervalFactor": 1,
  1336. "legendFormat": "Pages Created",
  1337. "metric": "",
  1338. "refId": "A",
  1339. "step": 300
  1340. },
  1341. {
  1342. "calculatedInterval": "2m",
  1343. "datasourceErrors": {},
  1344. "errors": {},
  1345. "expr": "rate(mysql_global_status_innodb_pages_read{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_pages_read{instance=\"$host\"}[5m])",
  1346. "interval": "$interval",
  1347. "intervalFactor": 1,
  1348. "legendFormat": "Pages Read",
  1349. "metric": "",
  1350. "refId": "B",
  1351. "step": 300
  1352. },
  1353. {
  1354. "calculatedInterval": "2m",
  1355. "datasourceErrors": {},
  1356. "errors": {},
  1357. "expr": "rate(mysql_global_status_innodb_pages_written{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_pages_written{instance=\"$host\"}[5m])",
  1358. "interval": "$interval",
  1359. "intervalFactor": 1,
  1360. "legendFormat": "Pages Written",
  1361. "metric": "",
  1362. "refId": "C",
  1363. "step": 300
  1364. }
  1365. ],
  1366. "thresholds": [],
  1367. "timeFrom": null,
  1368. "timeShift": null,
  1369. "title": "InnoDB Buffer Pool I/O",
  1370. "tooltip": {
  1371. "msResolution": false,
  1372. "shared": true,
  1373. "sort": 0,
  1374. "value_type": "individual"
  1375. },
  1376. "type": "graph",
  1377. "xaxis": {
  1378. "buckets": null,
  1379. "mode": "time",
  1380. "name": null,
  1381. "show": true,
  1382. "values": []
  1383. },
  1384. "yaxes": [
  1385. {
  1386. "format": "short",
  1387. "logBase": 1,
  1388. "max": null,
  1389. "min": 0,
  1390. "show": true
  1391. },
  1392. {
  1393. "format": "short",
  1394. "logBase": 1,
  1395. "max": null,
  1396. "min": 0,
  1397. "show": true
  1398. }
  1399. ]
  1400. },
  1401. {
  1402. "aliasColors": {},
  1403. "bars": false,
  1404. "dashLength": 10,
  1405. "dashes": false,
  1406. "datasource": "Prometheus",
  1407. "decimals": 2,
  1408. "editable": true,
  1409. "error": false,
  1410. "fill": 2,
  1411. "grid": {},
  1412. "id": 41,
  1413. "legend": {
  1414. "alignAsTable": true,
  1415. "avg": true,
  1416. "current": false,
  1417. "max": true,
  1418. "min": true,
  1419. "rightSide": false,
  1420. "show": true,
  1421. "sort": "avg",
  1422. "sortDesc": true,
  1423. "total": false,
  1424. "values": true
  1425. },
  1426. "lines": true,
  1427. "linewidth": 2,
  1428. "links": [],
  1429. "nullPointMode": "null",
  1430. "percentage": false,
  1431. "pointradius": 5,
  1432. "points": false,
  1433. "renderer": "flot",
  1434. "seriesOverrides": [
  1435. {
  1436. "alias": "Disk Reads",
  1437. "yaxis": 2
  1438. }
  1439. ],
  1440. "spaceLength": 10,
  1441. "span": 4,
  1442. "stack": false,
  1443. "steppedLine": false,
  1444. "targets": [
  1445. {
  1446. "calculatedInterval": "2m",
  1447. "datasourceErrors": {},
  1448. "errors": {},
  1449. "expr": "rate(mysql_global_status_innodb_buffer_pool_read_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_requests{instance=\"$host\"}[5m])",
  1450. "interval": "$interval",
  1451. "intervalFactor": 1,
  1452. "legendFormat": "Read Requests",
  1453. "metric": "",
  1454. "refId": "A",
  1455. "step": 300
  1456. },
  1457. {
  1458. "calculatedInterval": "2m",
  1459. "datasourceErrors": {},
  1460. "errors": {},
  1461. "expr": "rate(mysql_global_status_innodb_buffer_pool_write_requests{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_write_requests{instance=\"$host\"}[5m])",
  1462. "interval": "$interval",
  1463. "intervalFactor": 1,
  1464. "legendFormat": "Write Requests",
  1465. "metric": "",
  1466. "refId": "B",
  1467. "step": 300
  1468. },
  1469. {
  1470. "calculatedInterval": "2m",
  1471. "datasourceErrors": {},
  1472. "errors": {},
  1473. "expr": "rate(mysql_global_status_innodb_buffer_pool_reads{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_reads{instance=\"$host\"}[5m]) ",
  1474. "interval": "$interval",
  1475. "intervalFactor": 1,
  1476. "legendFormat": "Disk Reads",
  1477. "metric": "",
  1478. "refId": "C",
  1479. "step": 300
  1480. }
  1481. ],
  1482. "thresholds": [],
  1483. "timeFrom": null,
  1484. "timeShift": null,
  1485. "title": "InnoDB Buffer Pool Requests",
  1486. "tooltip": {
  1487. "msResolution": true,
  1488. "shared": true,
  1489. "sort": 0,
  1490. "value_type": "individual"
  1491. },
  1492. "type": "graph",
  1493. "xaxis": {
  1494. "buckets": null,
  1495. "mode": "time",
  1496. "name": null,
  1497. "show": true,
  1498. "values": []
  1499. },
  1500. "yaxes": [
  1501. {
  1502. "format": "short",
  1503. "logBase": 1,
  1504. "max": null,
  1505. "min": 0,
  1506. "show": true
  1507. },
  1508. {
  1509. "format": "short",
  1510. "logBase": 1,
  1511. "max": null,
  1512. "min": 0,
  1513. "show": true
  1514. }
  1515. ]
  1516. },
  1517. {
  1518. "aliasColors": {
  1519. "Paged Fetched by Random Read Ahead": "#6ED0E0",
  1520. "Paged Fetched by Read Ahead but Never Accessed": "#EF843C",
  1521. "Percent of IO Caused by Read Ahead": "#0A437C",
  1522. "Read Ahead Waste Percent": "#BF1B00"
  1523. },
  1524. "bars": false,
  1525. "dashLength": 10,
  1526. "dashes": false,
  1527. "datasource": "Prometheus",
  1528. "decimals": 2,
  1529. "editable": true,
  1530. "error": false,
  1531. "fill": 2,
  1532. "grid": {},
  1533. "id": 49,
  1534. "legend": {
  1535. "alignAsTable": true,
  1536. "avg": true,
  1537. "current": false,
  1538. "max": true,
  1539. "min": true,
  1540. "rightSide": false,
  1541. "show": true,
  1542. "sort": "avg",
  1543. "sortDesc": true,
  1544. "total": false,
  1545. "values": true
  1546. },
  1547. "lines": true,
  1548. "linewidth": 2,
  1549. "links": [],
  1550. "nullPointMode": "null",
  1551. "percentage": false,
  1552. "pointradius": 5,
  1553. "points": false,
  1554. "renderer": "flot",
  1555. "seriesOverrides": [
  1556. {
  1557. "alias": "Read Ahead Waste Percent",
  1558. "yaxis": 2
  1559. },
  1560. {
  1561. "alias": "Percent of IO Caused by Read Ahead",
  1562. "yaxis": 2
  1563. }
  1564. ],
  1565. "spaceLength": 10,
  1566. "span": 4,
  1567. "stack": false,
  1568. "steppedLine": false,
  1569. "targets": [
  1570. {
  1571. "calculatedInterval": "2m",
  1572. "datasourceErrors": {},
  1573. "errors": {},
  1574. "expr": "rate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[5m])",
  1575. "format": "time_series",
  1576. "interval": "$interval",
  1577. "intervalFactor": 1,
  1578. "legendFormat": "Pages Fetched by Linear Read Ahead ",
  1579. "metric": "",
  1580. "refId": "A",
  1581. "step": 300
  1582. },
  1583. {
  1584. "calculatedInterval": "2m",
  1585. "datasourceErrors": {},
  1586. "errors": {},
  1587. "expr": "rate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[5m])",
  1588. "format": "time_series",
  1589. "interval": "$interval",
  1590. "intervalFactor": 1,
  1591. "legendFormat": "Paged Fetched by Random Read Ahead",
  1592. "metric": "",
  1593. "refId": "B",
  1594. "step": 300
  1595. },
  1596. {
  1597. "expr": "rate(mysql_global_status_innodb_buffer_pool_read_ahead_evicted{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead_evicted{instance=\"$host\"}[5m])",
  1598. "format": "time_series",
  1599. "interval": "$interval",
  1600. "intervalFactor": 1,
  1601. "legendFormat": "Paged Fetched by Read Ahead but Never Accessed",
  1602. "metric": "go_gc_duration_seconds_count",
  1603. "refId": "C",
  1604. "step": 300
  1605. },
  1606. {
  1607. "expr": "(rate(mysql_global_status_innodb_buffer_pool_read_ahead_evicted{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead_evicted{instance=\"$host\"}[5m])) / ((rate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[5m])) + (rate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[5m])))",
  1608. "format": "time_series",
  1609. "interval": "$interval",
  1610. "intervalFactor": 1,
  1611. "legendFormat": "Read Ahead Waste Percent",
  1612. "refId": "D",
  1613. "step": 300
  1614. },
  1615. {
  1616. "expr": "((rate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead{instance=\"$host\"}[5m]))+(rate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_buffer_pool_read_ahead_rnd{instance=\"$host\"}[5m])))/(rate(mysql_global_status_innodb_pages_read{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_pages_read{instance=\"$host\"}[5m])\n)",
  1617. "format": "time_series",
  1618. "interval": "$interval",
  1619. "intervalFactor": 1,
  1620. "legendFormat": "Percent of IO Caused by Read Ahead",
  1621. "refId": "E",
  1622. "step": 300
  1623. }
  1624. ],
  1625. "thresholds": [],
  1626. "timeFrom": null,
  1627. "timeShift": null,
  1628. "title": "Innodb Read-Ahead",
  1629. "tooltip": {
  1630. "msResolution": true,
  1631. "shared": true,
  1632. "sort": 0,
  1633. "value_type": "individual"
  1634. },
  1635. "type": "graph",
  1636. "xaxis": {
  1637. "buckets": null,
  1638. "mode": "time",
  1639. "name": null,
  1640. "show": true,
  1641. "values": []
  1642. },
  1643. "yaxes": [
  1644. {
  1645. "format": "short",
  1646. "logBase": 1,
  1647. "max": null,
  1648. "min": 0,
  1649. "show": true
  1650. },
  1651. {
  1652. "format": "percentunit",
  1653. "logBase": 1,
  1654. "max": null,
  1655. "min": 0,
  1656. "show": true
  1657. }
  1658. ]
  1659. }
  1660. ],
  1661. "repeat": null,
  1662. "repeatIteration": null,
  1663. "repeatRowId": null,
  1664. "showTitle": false,
  1665. "title": "Buffer Pool I/O",
  1666. "titleSize": "h6"
  1667. },
  1668. {
  1669. "collapse": false,
  1670. "height": "250px",
  1671. "panels": [
  1672. {
  1673. "aliasColors": {
  1674. "Uncheckpointed Bytes": "#E0752D"
  1675. },
  1676. "bars": false,
  1677. "dashLength": 10,
  1678. "dashes": false,
  1679. "datasource": "Prometheus",
  1680. "decimals": 2,
  1681. "editable": true,
  1682. "error": false,
  1683. "fill": 6,
  1684. "grid": {},
  1685. "id": 39,
  1686. "legend": {
  1687. "alignAsTable": true,
  1688. "avg": true,
  1689. "current": false,
  1690. "max": true,
  1691. "min": true,
  1692. "rightSide": false,
  1693. "show": true,
  1694. "sort": "avg",
  1695. "sortDesc": true,
  1696. "total": false,
  1697. "values": true
  1698. },
  1699. "lines": true,
  1700. "linewidth": 2,
  1701. "links": [],
  1702. "nullPointMode": "null",
  1703. "percentage": false,
  1704. "pointradius": 5,
  1705. "points": false,
  1706. "renderer": "flot",
  1707. "seriesOverrides": [],
  1708. "spaceLength": 10,
  1709. "span": 6,
  1710. "stack": false,
  1711. "steppedLine": false,
  1712. "targets": [
  1713. {
  1714. "calculatedInterval": "2m",
  1715. "datasourceErrors": {},
  1716. "errors": {},
  1717. "expr": "mysql_global_status_innodb_ibuf_segment_size{instance=\"$host\"} * mysql_global_status_innodb_page_size{instance=\"$host\"}",
  1718. "interval": "$interval",
  1719. "intervalFactor": 1,
  1720. "legendFormat": "Allocated",
  1721. "metric": "",
  1722. "refId": "A",
  1723. "step": 300
  1724. },
  1725. {
  1726. "calculatedInterval": "2m",
  1727. "datasourceErrors": {},
  1728. "errors": {},
  1729. "expr": "(mysql_global_status_innodb_ibuf_segment_size{instance=\"$host\"} - mysql_global_status_innodb_ibuf_free_list{instance=\"$host\"})*mysql_global_status_innodb_page_size{instance=\"$host\"}",
  1730. "interval": "$interval",
  1731. "intervalFactor": 1,
  1732. "legendFormat": "Used",
  1733. "metric": "",
  1734. "refId": "B",
  1735. "step": 300
  1736. }
  1737. ],
  1738. "thresholds": [],
  1739. "timeFrom": null,
  1740. "timeShift": null,
  1741. "title": "InnoDB Change Buffer",
  1742. "tooltip": {
  1743. "msResolution": false,
  1744. "shared": true,
  1745. "sort": 0,
  1746. "value_type": "individual"
  1747. },
  1748. "type": "graph",
  1749. "xaxis": {
  1750. "buckets": null,
  1751. "mode": "time",
  1752. "name": null,
  1753. "show": true,
  1754. "values": []
  1755. },
  1756. "yaxes": [
  1757. {
  1758. "format": "bytes",
  1759. "logBase": 1,
  1760. "max": null,
  1761. "min": 0,
  1762. "show": true
  1763. },
  1764. {
  1765. "format": "short",
  1766. "logBase": 1,
  1767. "max": null,
  1768. "min": 0,
  1769. "show": true
  1770. }
  1771. ]
  1772. },
  1773. {
  1774. "aliasColors": {},
  1775. "bars": false,
  1776. "dashLength": 10,
  1777. "dashes": false,
  1778. "datasource": "Prometheus",
  1779. "decimals": 2,
  1780. "editable": true,
  1781. "error": false,
  1782. "fill": 2,
  1783. "grid": {},
  1784. "id": 40,
  1785. "legend": {
  1786. "alignAsTable": true,
  1787. "avg": true,
  1788. "current": false,
  1789. "hideEmpty": false,
  1790. "hideZero": false,
  1791. "max": true,
  1792. "min": true,
  1793. "rightSide": false,
  1794. "show": true,
  1795. "sort": "avg",
  1796. "sortDesc": true,
  1797. "total": false,
  1798. "values": true
  1799. },
  1800. "lines": true,
  1801. "linewidth": 2,
  1802. "links": [],
  1803. "nullPointMode": "null",
  1804. "percentage": false,
  1805. "pointradius": 5,
  1806. "points": false,
  1807. "renderer": "flot",
  1808. "seriesOverrides": [],
  1809. "spaceLength": 10,
  1810. "span": 6,
  1811. "stack": false,
  1812. "steppedLine": false,
  1813. "targets": [
  1814. {
  1815. "calculatedInterval": "2m",
  1816. "datasourceErrors": {},
  1817. "errors": {},
  1818. "expr": "rate(mysql_global_status_innodb_ibuf_merges{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_ibuf_merges{instance=\"$host\"}[5m]) or 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])",
  1819. "interval": "$interval",
  1820. "intervalFactor": 1,
  1821. "legendFormat": "Merges",
  1822. "metric": "",
  1823. "refId": "A",
  1824. "step": 300
  1825. },
  1826. {
  1827. "calculatedInterval": "2m",
  1828. "datasourceErrors": {},
  1829. "errors": {},
  1830. "expr": "rate(mysql_global_status_innodb_ibuf_merged_inserts{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_ibuf_merged_inserts{instance=\"$host\"}[5m]) or 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])",
  1831. "interval": "$interval",
  1832. "intervalFactor": 1,
  1833. "legendFormat": "Merged Inserts",
  1834. "metric": "",
  1835. "refId": "B",
  1836. "step": 300
  1837. },
  1838. {
  1839. "calculatedInterval": "2m",
  1840. "datasourceErrors": {},
  1841. "errors": {},
  1842. "expr": "rate(mysql_global_status_innodb_ibuf_merged_deletes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_ibuf_merged_deletes{instance=\"$host\"}[5m]) or 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])",
  1843. "interval": "$interval",
  1844. "intervalFactor": 1,
  1845. "legendFormat": "Merged Deletes",
  1846. "metric": "",
  1847. "refId": "C",
  1848. "step": 300
  1849. },
  1850. {
  1851. "calculatedInterval": "2m",
  1852. "datasourceErrors": {},
  1853. "errors": {},
  1854. "expr": "rate(mysql_global_status_innodb_ibuf_merged_delete_marks{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_ibuf_merged_delete_marks{instance=\"$host\"}[5m]) or 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])",
  1855. "interval": "$interval",
  1856. "intervalFactor": 1,
  1857. "legendFormat": "Merged Delete Marks",
  1858. "metric": "",
  1859. "refId": "D",
  1860. "step": 300
  1861. }
  1862. ],
  1863. "thresholds": [],
  1864. "timeFrom": null,
  1865. "timeShift": null,
  1866. "title": "InnoDB Change Buffer Activity",
  1867. "tooltip": {
  1868. "msResolution": false,
  1869. "shared": true,
  1870. "sort": 0,
  1871. "value_type": "individual"
  1872. },
  1873. "type": "graph",
  1874. "xaxis": {
  1875. "buckets": null,
  1876. "mode": "time",
  1877. "name": null,
  1878. "show": true,
  1879. "values": []
  1880. },
  1881. "yaxes": [
  1882. {
  1883. "format": "short",
  1884. "logBase": 1,
  1885. "max": null,
  1886. "min": 0,
  1887. "show": true
  1888. },
  1889. {
  1890. "format": "short",
  1891. "logBase": 1,
  1892. "max": null,
  1893. "min": 0,
  1894. "show": true
  1895. }
  1896. ]
  1897. }
  1898. ],
  1899. "repeat": null,
  1900. "repeatIteration": null,
  1901. "repeatRowId": null,
  1902. "showTitle": true,
  1903. "title": "Change/Insert Buffer",
  1904. "titleSize": "h6"
  1905. }
  1906. ],
  1907. "schemaVersion": 14,
  1908. "style": "dark",
  1909. "tags": [
  1910. "MySQL",
  1911. "Percona"
  1912. ],
  1913. "templating": {
  1914. "list": [
  1915. {
  1916. "allFormat": "glob",
  1917. "auto": true,
  1918. "auto_count": 200,
  1919. "auto_min": "1s",
  1920. "current": {
  1921. "selected": true,
  1922. "text": "auto",
  1923. "value": "$__auto_interval"
  1924. },
  1925. "datasource": "Prometheus",
  1926. "hide": 0,
  1927. "includeAll": false,
  1928. "label": "Interval",
  1929. "multi": false,
  1930. "multiFormat": "glob",
  1931. "name": "interval",
  1932. "options": [
  1933. {
  1934. "selected": true,
  1935. "text": "auto",
  1936. "value": "$__auto_interval"
  1937. },
  1938. {
  1939. "selected": false,
  1940. "text": "1s",
  1941. "value": "1s"
  1942. },
  1943. {
  1944. "selected": false,
  1945. "text": "5s",
  1946. "value": "5s"
  1947. },
  1948. {
  1949. "selected": false,
  1950. "text": "1m",
  1951. "value": "1m"
  1952. },
  1953. {
  1954. "selected": false,
  1955. "text": "5m",
  1956. "value": "5m"
  1957. },
  1958. {
  1959. "selected": false,
  1960. "text": "1h",
  1961. "value": "1h"
  1962. },
  1963. {
  1964. "selected": false,
  1965. "text": "6h",
  1966. "value": "6h"
  1967. },
  1968. {
  1969. "selected": false,
  1970. "text": "1d",
  1971. "value": "1d"
  1972. }
  1973. ],
  1974. "query": "1s,5s,1m,5m,1h,6h,1d",
  1975. "refresh": 2,
  1976. "type": "interval"
  1977. },
  1978. {
  1979. "allFormat": "glob",
  1980. "allValue": null,
  1981. "datasource": "Prometheus",
  1982. "hide": 0,
  1983. "includeAll": false,
  1984. "label": "Host",
  1985. "multi": false,
  1986. "multiFormat": "regex values",
  1987. "name": "host",
  1988. "query": "label_values(mysql_up, instance)",
  1989. "refresh": 1,
  1990. "refresh_on_load": false,
  1991. "regex": "",
  1992. "sort": 1,
  1993. "tagValuesQuery": null,
  1994. "tags": [],
  1995. "tagsQuery": null,
  1996. "type": "query",
  1997. "useTags": false
  1998. }
  1999. ]
  2000. },
  2001. "time": {
  2002. "from": "now-12h",
  2003. "to": "now"
  2004. },
  2005. "timepicker": {
  2006. "collapse": false,
  2007. "enable": true,
  2008. "notice": false,
  2009. "now": true,
  2010. "refresh_intervals": [
  2011. "5s",
  2012. "10s",
  2013. "30s",
  2014. "1m",
  2015. "5m",
  2016. "15m",
  2017. "30m",
  2018. "1h",
  2019. "2h",
  2020. "1d"
  2021. ],
  2022. "status": "Stable",
  2023. "time_options": [
  2024. "5m",
  2025. "15m",
  2026. "1h",
  2027. "6h",
  2028. "12h",
  2029. "24h",
  2030. "2d",
  2031. "7d",
  2032. "30d"
  2033. ],
  2034. "type": "timepicker"
  2035. },
  2036. "timezone": "browser",
  2037. "title": "MySQL InnoDB Metrics",
  2038. "version": 0
  2039. }