MySQL_Query_Response_Time.json 34 KB

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