MySQL_Performance_Schema.json 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": false,
  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. "bars": false,
  56. "datasource": "Prometheus",
  57. "decimals": 2,
  58. "editable": true,
  59. "error": false,
  60. "fill": 2,
  61. "grid": {},
  62. "id": 47,
  63. "legend": {
  64. "alignAsTable": true,
  65. "avg": true,
  66. "current": false,
  67. "hideEmpty": true,
  68. "hideZero": true,
  69. "max": true,
  70. "min": false,
  71. "rightSide": true,
  72. "show": true,
  73. "sort": "avg",
  74. "sortDesc": true,
  75. "total": false,
  76. "values": true
  77. },
  78. "lines": true,
  79. "linewidth": 2,
  80. "links": [],
  81. "nullPointMode": "null as zero",
  82. "percentage": false,
  83. "pointradius": 5,
  84. "points": false,
  85. "renderer": "flot",
  86. "seriesOverrides": [],
  87. "span": 12,
  88. "stack": true,
  89. "steppedLine": false,
  90. "targets": [
  91. {
  92. "expr": "topk(10, rate(mysql_perf_schema_file_events_total{instance=\"$host\"}[$interval])>0) or topk(10, irate(mysql_perf_schema_file_events_total{instance=\"$host\"}[5m])>0)",
  93. "interval": "$interval",
  94. "intervalFactor": 1,
  95. "legendFormat": "{{event_name}} {{mode}}",
  96. "refId": "A",
  97. "step": 300
  98. }
  99. ],
  100. "thresholds": [],
  101. "timeFrom": null,
  102. "timeShift": null,
  103. "title": "Performance Schema File IO (Events)",
  104. "tooltip": {
  105. "msResolution": false,
  106. "shared": true,
  107. "sort": 0,
  108. "value_type": "cumulative"
  109. },
  110. "type": "graph",
  111. "xaxis": {
  112. "mode": "time",
  113. "name": null,
  114. "show": true,
  115. "values": []
  116. },
  117. "yaxes": [
  118. {
  119. "format": "short",
  120. "logBase": 1,
  121. "max": null,
  122. "min": 0,
  123. "show": true
  124. },
  125. {
  126. "format": "short",
  127. "logBase": 1,
  128. "max": null,
  129. "min": 0,
  130. "show": true
  131. }
  132. ]
  133. },
  134. {
  135. "aliasColors": {},
  136. "bars": false,
  137. "datasource": "Prometheus",
  138. "decimals": 2,
  139. "editable": true,
  140. "error": false,
  141. "fill": 2,
  142. "grid": {},
  143. "id": 48,
  144. "legend": {
  145. "alignAsTable": true,
  146. "avg": true,
  147. "current": false,
  148. "hideEmpty": true,
  149. "hideZero": true,
  150. "max": true,
  151. "min": false,
  152. "rightSide": true,
  153. "show": true,
  154. "sort": "avg",
  155. "sortDesc": true,
  156. "total": false,
  157. "values": true
  158. },
  159. "lines": true,
  160. "linewidth": 2,
  161. "links": [],
  162. "nullPointMode": "null as zero",
  163. "percentage": false,
  164. "pointradius": 5,
  165. "points": false,
  166. "renderer": "flot",
  167. "seriesOverrides": [],
  168. "span": 12,
  169. "stack": true,
  170. "steppedLine": false,
  171. "targets": [
  172. {
  173. "expr": "topk(10, rate(mysql_perf_schema_file_events_seconds_total{instance=\"$host\"}[$interval])>0) or topk(10, irate(mysql_perf_schema_file_events_seconds_total{instance=\"$host\"}[5m])>0)",
  174. "interval": "$interval",
  175. "intervalFactor": 1,
  176. "legendFormat": "{{event_name}} {{mode}}",
  177. "refId": "A",
  178. "step": 300
  179. }
  180. ],
  181. "thresholds": [],
  182. "timeFrom": null,
  183. "timeShift": null,
  184. "title": "Performance Schema File IO (Load)",
  185. "tooltip": {
  186. "msResolution": false,
  187. "shared": true,
  188. "sort": 0,
  189. "value_type": "individual"
  190. },
  191. "type": "graph",
  192. "xaxis": {
  193. "mode": "time",
  194. "name": null,
  195. "show": true,
  196. "values": []
  197. },
  198. "yaxes": [
  199. {
  200. "format": "short",
  201. "logBase": 1,
  202. "max": null,
  203. "min": 0,
  204. "show": true
  205. },
  206. {
  207. "format": "short",
  208. "logBase": 1,
  209. "max": null,
  210. "min": 0,
  211. "show": true
  212. }
  213. ]
  214. },
  215. {
  216. "aliasColors": {},
  217. "bars": false,
  218. "datasource": "Prometheus",
  219. "decimals": 2,
  220. "editable": true,
  221. "error": false,
  222. "fill": 2,
  223. "grid": {},
  224. "id": 49,
  225. "legend": {
  226. "alignAsTable": true,
  227. "avg": true,
  228. "current": false,
  229. "hideEmpty": true,
  230. "hideZero": true,
  231. "max": true,
  232. "min": false,
  233. "rightSide": true,
  234. "show": true,
  235. "sort": "avg",
  236. "sortDesc": true,
  237. "total": false,
  238. "values": true
  239. },
  240. "lines": true,
  241. "linewidth": 2,
  242. "links": [],
  243. "nullPointMode": "null as zero",
  244. "percentage": false,
  245. "pointradius": 5,
  246. "points": false,
  247. "renderer": "flot",
  248. "seriesOverrides": [],
  249. "span": 12,
  250. "stack": true,
  251. "steppedLine": false,
  252. "targets": [
  253. {
  254. "expr": "topk(10, rate(mysql_perf_schema_file_events_bytes_total{instance=\"$host\"}[$interval])>0) or topk(10, irate(mysql_perf_schema_file_events_bytes_total{instance=\"$host\"}[5m])>0)",
  255. "interval": "$interval",
  256. "intervalFactor": 1,
  257. "legendFormat": "{{event_name}} {{mode}}",
  258. "refId": "A",
  259. "step": 300
  260. }
  261. ],
  262. "thresholds": [],
  263. "timeFrom": null,
  264. "timeShift": null,
  265. "title": "Performance Schema File IO (Bytes)",
  266. "tooltip": {
  267. "msResolution": false,
  268. "shared": true,
  269. "sort": 0,
  270. "value_type": "cumulative"
  271. },
  272. "type": "graph",
  273. "xaxis": {
  274. "mode": "time",
  275. "name": null,
  276. "show": true,
  277. "values": []
  278. },
  279. "yaxes": [
  280. {
  281. "format": "Bps",
  282. "logBase": 1,
  283. "max": null,
  284. "min": 0,
  285. "show": true
  286. },
  287. {
  288. "format": "short",
  289. "logBase": 1,
  290. "max": null,
  291. "min": 0,
  292. "show": true
  293. }
  294. ]
  295. },
  296. {
  297. "aliasColors": {},
  298. "bars": false,
  299. "datasource": "Prometheus",
  300. "decimals": 2,
  301. "editable": true,
  302. "error": false,
  303. "fill": 2,
  304. "grid": {},
  305. "id": 51,
  306. "legend": {
  307. "alignAsTable": true,
  308. "avg": true,
  309. "current": false,
  310. "hideEmpty": true,
  311. "hideZero": true,
  312. "max": true,
  313. "min": false,
  314. "rightSide": true,
  315. "show": true,
  316. "sort": "avg",
  317. "sortDesc": true,
  318. "total": false,
  319. "values": true
  320. },
  321. "lines": true,
  322. "linewidth": 2,
  323. "links": [],
  324. "nullPointMode": "null as zero",
  325. "percentage": false,
  326. "pointradius": 5,
  327. "points": false,
  328. "renderer": "flot",
  329. "seriesOverrides": [],
  330. "span": 12,
  331. "stack": true,
  332. "steppedLine": false,
  333. "targets": [
  334. {
  335. "expr": "topk(5, rate(mysql_perf_schema_events_waits_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_perf_schema_events_waits_total{instance=\"$host\"}[5m])>0)",
  336. "interval": "$interval",
  337. "intervalFactor": 1,
  338. "legendFormat": "{{event_name}} ",
  339. "refId": "A",
  340. "step": 300
  341. }
  342. ],
  343. "thresholds": [],
  344. "timeFrom": null,
  345. "timeShift": null,
  346. "title": "Performance Schema Waits (Events)",
  347. "tooltip": {
  348. "msResolution": false,
  349. "shared": true,
  350. "sort": 0,
  351. "value_type": "cumulative"
  352. },
  353. "type": "graph",
  354. "xaxis": {
  355. "mode": "time",
  356. "name": null,
  357. "show": true,
  358. "values": []
  359. },
  360. "yaxes": [
  361. {
  362. "format": "short",
  363. "logBase": 1,
  364. "max": null,
  365. "min": 0,
  366. "show": true
  367. },
  368. {
  369. "format": "short",
  370. "logBase": 1,
  371. "max": null,
  372. "min": 0,
  373. "show": true
  374. }
  375. ]
  376. },
  377. {
  378. "aliasColors": {},
  379. "bars": false,
  380. "datasource": "Prometheus",
  381. "decimals": 2,
  382. "editable": true,
  383. "error": false,
  384. "fill": 1,
  385. "grid": {},
  386. "id": 52,
  387. "legend": {
  388. "alignAsTable": true,
  389. "avg": true,
  390. "current": false,
  391. "hideEmpty": true,
  392. "hideZero": true,
  393. "max": true,
  394. "min": false,
  395. "rightSide": true,
  396. "show": true,
  397. "sort": "avg",
  398. "sortDesc": true,
  399. "total": false,
  400. "values": true
  401. },
  402. "lines": true,
  403. "linewidth": 2,
  404. "links": [],
  405. "nullPointMode": "null as zero",
  406. "percentage": false,
  407. "pointradius": 5,
  408. "points": false,
  409. "renderer": "flot",
  410. "seriesOverrides": [],
  411. "span": 12,
  412. "stack": true,
  413. "steppedLine": true,
  414. "targets": [
  415. {
  416. "expr": "topk(5, rate(mysql_perf_schema_events_waits_seconds_total{instance=\"$host\",event_name!='idle',event_name!='wait/io/table/sql/handler'}[$interval])>0) or topk(5, irate(mysql_perf_schema_events_waits_seconds_total{instance=\"$host\",event_name!='idle',event_name!='wait/io/table/sql/handler'}[5m])>0)",
  417. "hide": false,
  418. "interval": "$interval",
  419. "intervalFactor": 1,
  420. "legendFormat": "{{event_name}} ",
  421. "refId": "A",
  422. "step": 300
  423. }
  424. ],
  425. "thresholds": [],
  426. "timeFrom": null,
  427. "timeShift": null,
  428. "title": "Performance Schema Waits (Load)",
  429. "tooltip": {
  430. "msResolution": false,
  431. "shared": true,
  432. "sort": 0,
  433. "value_type": "individual"
  434. },
  435. "type": "graph",
  436. "xaxis": {
  437. "mode": "time",
  438. "name": null,
  439. "show": true,
  440. "values": []
  441. },
  442. "yaxes": [
  443. {
  444. "format": "short",
  445. "logBase": 1,
  446. "max": null,
  447. "min": 0,
  448. "show": true
  449. },
  450. {
  451. "format": "short",
  452. "logBase": 1,
  453. "max": null,
  454. "min": 0,
  455. "show": true
  456. }
  457. ]
  458. },
  459. {
  460. "aliasColors": {},
  461. "bars": false,
  462. "datasource": "Prometheus",
  463. "decimals": 2,
  464. "editable": true,
  465. "error": false,
  466. "fill": 1,
  467. "grid": {},
  468. "id": 77,
  469. "legend": {
  470. "alignAsTable": true,
  471. "avg": true,
  472. "current": false,
  473. "hideEmpty": true,
  474. "hideZero": true,
  475. "max": true,
  476. "min": false,
  477. "rightSide": true,
  478. "show": true,
  479. "sort": "avg",
  480. "sortDesc": true,
  481. "total": false,
  482. "values": true
  483. },
  484. "lines": true,
  485. "linewidth": 2,
  486. "links": [],
  487. "nullPointMode": "null as zero",
  488. "percentage": false,
  489. "pointradius": 5,
  490. "points": false,
  491. "renderer": "flot",
  492. "seriesOverrides": [],
  493. "span": 12,
  494. "stack": true,
  495. "steppedLine": true,
  496. "targets": [
  497. {
  498. "expr": "topk(5, rate(mysql_perf_schema_index_io_waits_seconds_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_perf_schema_index_io_waits_seconds_total{instance=\"$host\"}[5m])>0)",
  499. "hide": false,
  500. "interval": "$interval",
  501. "intervalFactor": 1,
  502. "legendFormat": "{{operation}} {{index}} {{schema}}.{{name}}",
  503. "refId": "A",
  504. "step": 300
  505. }
  506. ],
  507. "thresholds": [],
  508. "timeFrom": null,
  509. "timeShift": null,
  510. "title": "Index Access Operations (Load)",
  511. "tooltip": {
  512. "msResolution": false,
  513. "shared": true,
  514. "sort": 0,
  515. "value_type": "individual"
  516. },
  517. "type": "graph",
  518. "xaxis": {
  519. "mode": "time",
  520. "name": null,
  521. "show": true,
  522. "values": []
  523. },
  524. "yaxes": [
  525. {
  526. "format": "short",
  527. "logBase": 1,
  528. "max": null,
  529. "min": 0,
  530. "show": true
  531. },
  532. {
  533. "format": "short",
  534. "logBase": 1,
  535. "max": null,
  536. "min": 0,
  537. "show": true
  538. }
  539. ]
  540. },
  541. {
  542. "aliasColors": {},
  543. "bars": false,
  544. "datasource": "Prometheus",
  545. "decimals": 2,
  546. "editable": true,
  547. "error": false,
  548. "fill": 1,
  549. "grid": {},
  550. "id": 78,
  551. "legend": {
  552. "alignAsTable": true,
  553. "avg": true,
  554. "current": false,
  555. "hideEmpty": true,
  556. "hideZero": true,
  557. "max": true,
  558. "min": false,
  559. "rightSide": true,
  560. "show": true,
  561. "sort": "avg",
  562. "sortDesc": true,
  563. "total": false,
  564. "values": true
  565. },
  566. "lines": true,
  567. "linewidth": 2,
  568. "links": [],
  569. "nullPointMode": "null as zero",
  570. "percentage": false,
  571. "pointradius": 5,
  572. "points": false,
  573. "renderer": "flot",
  574. "seriesOverrides": [],
  575. "span": 12,
  576. "stack": true,
  577. "steppedLine": true,
  578. "targets": [
  579. {
  580. "expr": "topk(5, rate(mysql_perf_schema_table_io_waits_seconds_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_perf_schema_table_io_waits_seconds_total{instance=\"$host\"}[5m])>0)",
  581. "hide": false,
  582. "interval": "$interval",
  583. "intervalFactor": 1,
  584. "legendFormat": "{{operation}} {{schema}}.{{name}}",
  585. "refId": "A",
  586. "step": 300
  587. }
  588. ],
  589. "thresholds": [],
  590. "timeFrom": null,
  591. "timeShift": null,
  592. "title": "Table Access Operations (Load)",
  593. "tooltip": {
  594. "msResolution": false,
  595. "shared": true,
  596. "sort": 0,
  597. "value_type": "individual"
  598. },
  599. "type": "graph",
  600. "xaxis": {
  601. "mode": "time",
  602. "name": null,
  603. "show": true,
  604. "values": []
  605. },
  606. "yaxes": [
  607. {
  608. "format": "short",
  609. "logBase": 1,
  610. "max": null,
  611. "min": 0,
  612. "show": true
  613. },
  614. {
  615. "format": "short",
  616. "logBase": 1,
  617. "max": null,
  618. "min": 0,
  619. "show": true
  620. }
  621. ]
  622. }
  623. ],
  624. "repeat": null,
  625. "repeatIteration": null,
  626. "repeatRowId": null,
  627. "showTitle": false,
  628. "title": "New row",
  629. "titleSize": "h6"
  630. }
  631. ],
  632. "schemaVersion": 14,
  633. "style": "dark",
  634. "tags": [
  635. "MySQL",
  636. "Percona"
  637. ],
  638. "templating": {
  639. "list": [
  640. {
  641. "allFormat": "glob",
  642. "auto": true,
  643. "auto_count": 200,
  644. "auto_min": "1s",
  645. "current": {
  646. "text": "auto",
  647. "value": "$__auto_interval"
  648. },
  649. "datasource": "Prometheus",
  650. "hide": 0,
  651. "includeAll": false,
  652. "label": "Interval",
  653. "multi": false,
  654. "multiFormat": "glob",
  655. "name": "interval",
  656. "options": [
  657. {
  658. "selected": true,
  659. "text": "auto",
  660. "value": "$__auto_interval"
  661. },
  662. {
  663. "selected": false,
  664. "text": "1s",
  665. "value": "1s"
  666. },
  667. {
  668. "selected": false,
  669. "text": "5s",
  670. "value": "5s"
  671. },
  672. {
  673. "selected": false,
  674. "text": "1m",
  675. "value": "1m"
  676. },
  677. {
  678. "selected": false,
  679. "text": "5m",
  680. "value": "5m"
  681. },
  682. {
  683. "selected": false,
  684. "text": "1h",
  685. "value": "1h"
  686. },
  687. {
  688. "selected": false,
  689. "text": "6h",
  690. "value": "6h"
  691. },
  692. {
  693. "selected": false,
  694. "text": "1d",
  695. "value": "1d"
  696. }
  697. ],
  698. "query": "1s,5s,1m,5m,1h,6h,1d",
  699. "refresh": 2,
  700. "type": "interval"
  701. },
  702. {
  703. "allFormat": "glob",
  704. "allValue": null,
  705. "datasource": "Prometheus",
  706. "hide": 0,
  707. "includeAll": false,
  708. "label": "Host",
  709. "multi": false,
  710. "multiFormat": "regex values",
  711. "name": "host",
  712. "query": "label_values(mysql_up, instance)",
  713. "refresh": 1,
  714. "refresh_on_load": false,
  715. "regex": "",
  716. "sort": 1,
  717. "tagValuesQuery": null,
  718. "tags": [],
  719. "tagsQuery": null,
  720. "type": "query",
  721. "useTags": false
  722. }
  723. ]
  724. },
  725. "time": {
  726. "from": "now-12h",
  727. "to": "now"
  728. },
  729. "timepicker": {
  730. "collapse": false,
  731. "enable": true,
  732. "notice": false,
  733. "now": true,
  734. "refresh_intervals": [
  735. "5s",
  736. "10s",
  737. "30s",
  738. "1m",
  739. "5m",
  740. "15m",
  741. "30m",
  742. "1h",
  743. "2h",
  744. "1d"
  745. ],
  746. "status": "Stable",
  747. "time_options": [
  748. "5m",
  749. "15m",
  750. "1h",
  751. "6h",
  752. "12h",
  753. "24h",
  754. "2d",
  755. "7d",
  756. "30d"
  757. ],
  758. "type": "timepicker"
  759. },
  760. "timezone": "browser",
  761. "title": "MySQL Performance Schema",
  762. "version": 0
  763. }