Summary_Dashboard.json 40 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091
  1. {
  2. "annotations": {
  3. "list": []
  4. },
  5. "editable": true,
  6. "gnetId": null,
  7. "hideControls": true,
  8. "id": null,
  9. "links": [
  10. {
  11. "asDropdown": true,
  12. "icon": "external link",
  13. "includeVars": true,
  14. "keepTime": true,
  15. "tags": [
  16. "OS"
  17. ],
  18. "targetBlank": true,
  19. "title": "OS",
  20. "type": "dashboards"
  21. },
  22. {
  23. "asDropdown": true,
  24. "icon": "external link",
  25. "includeVars": true,
  26. "keepTime": true,
  27. "tags": [
  28. "MySQL"
  29. ],
  30. "targetBlank": true,
  31. "title": "MySQL",
  32. "type": "dashboards"
  33. },
  34. {
  35. "asDropdown": true,
  36. "icon": "external link",
  37. "includeVars": true,
  38. "keepTime": true,
  39. "tags": [
  40. "HA"
  41. ],
  42. "targetBlank": true,
  43. "title": "HA",
  44. "type": "dashboards"
  45. }
  46. ],
  47. "refresh": false,
  48. "rows": [
  49. {
  50. "collapse": false,
  51. "height": "250px",
  52. "panels": [
  53. {
  54. "aliasColors": {
  55. "idle": "#705DA0",
  56. "iowait": "#E24D42",
  57. "nice": "#1F78C1",
  58. "softirq": "#806EB7",
  59. "system": "#EAB839",
  60. "user": "#508642"
  61. },
  62. "bars": false,
  63. "datasource": "Prometheus",
  64. "decimals": null,
  65. "editable": true,
  66. "error": false,
  67. "fill": 6,
  68. "grid": {},
  69. "height": "",
  70. "id": 2,
  71. "legend": {
  72. "alignAsTable": true,
  73. "avg": true,
  74. "current": false,
  75. "hideEmpty": true,
  76. "hideZero": true,
  77. "max": true,
  78. "min": true,
  79. "rightSide": true,
  80. "show": true,
  81. "sort": "avg",
  82. "sortDesc": true,
  83. "total": false,
  84. "values": true
  85. },
  86. "lines": true,
  87. "linewidth": 2,
  88. "links": [],
  89. "nullPointMode": "null",
  90. "percentage": false,
  91. "pointradius": 5,
  92. "points": false,
  93. "renderer": "flot",
  94. "seriesOverrides": [],
  95. "span": 12,
  96. "stack": true,
  97. "steppedLine": false,
  98. "targets": [
  99. {
  100. "calculatedInterval": "2s",
  101. "datasourceErrors": {},
  102. "errors": {},
  103. "expr": "sum(rate(node_cpu{instance=\"$host\", mode!=\"idle\"}[$interval])) by (mode) * 100 / count_scalar(node_cpu{mode=\"user\", instance=\"$host\"}) or sum(irate(node_cpu{instance=\"$host\", mode!=\"idle\"}[5m])) by (mode) * 100 / count_scalar(node_cpu{mode=\"user\", instance=\"$host\"})",
  104. "interval": "$interval",
  105. "intervalFactor": 1,
  106. "legendFormat": "{{ mode }}",
  107. "metric": "",
  108. "refId": "A",
  109. "step": 300
  110. }
  111. ],
  112. "thresholds": [],
  113. "timeFrom": null,
  114. "timeShift": null,
  115. "title": "CPU Usage",
  116. "tooltip": {
  117. "msResolution": false,
  118. "shared": true,
  119. "sort": 0,
  120. "value_type": "individual"
  121. },
  122. "type": "graph",
  123. "xaxis": {
  124. "mode": "time",
  125. "name": null,
  126. "show": true,
  127. "values": []
  128. },
  129. "yaxes": [
  130. {
  131. "format": "percent",
  132. "label": "",
  133. "logBase": 1,
  134. "max": 100,
  135. "min": 0,
  136. "show": true
  137. },
  138. {
  139. "format": "short",
  140. "logBase": 1,
  141. "max": null,
  142. "min": 0,
  143. "show": true
  144. }
  145. ]
  146. }
  147. ],
  148. "repeat": null,
  149. "repeatIteration": null,
  150. "repeatRowId": null,
  151. "showTitle": true,
  152. "title": "System Stats",
  153. "titleSize": "h6"
  154. },
  155. {
  156. "collapse": false,
  157. "height": "250px",
  158. "panels": [
  159. {
  160. "aliasColors": {},
  161. "bars": true,
  162. "datasource": "Prometheus",
  163. "decimals": null,
  164. "editable": true,
  165. "error": false,
  166. "fill": 2,
  167. "grid": {},
  168. "id": 20,
  169. "legend": {
  170. "alignAsTable": true,
  171. "avg": true,
  172. "current": false,
  173. "hideEmpty": false,
  174. "max": true,
  175. "min": true,
  176. "rightSide": false,
  177. "show": true,
  178. "sort": "avg",
  179. "sortDesc": true,
  180. "total": false,
  181. "values": true
  182. },
  183. "lines": false,
  184. "linewidth": 2,
  185. "links": [],
  186. "nullPointMode": "null",
  187. "percentage": false,
  188. "pointradius": 5,
  189. "points": false,
  190. "renderer": "flot",
  191. "seriesOverrides": [
  192. {
  193. "alias": "Processes blocked waiting for I/O to complete",
  194. "color": "#E24D42"
  195. },
  196. {
  197. "alias": "Processes in runnable state",
  198. "color": "#6ED0E0"
  199. }
  200. ],
  201. "span": 6,
  202. "stack": true,
  203. "steppedLine": false,
  204. "targets": [
  205. {
  206. "calculatedInterval": "2m",
  207. "datasourceErrors": {},
  208. "errors": {},
  209. "expr": "node_procs_running{instance=\"$host\"}",
  210. "interval": "$interval",
  211. "intervalFactor": 1,
  212. "legendFormat": "Processes in runnable state",
  213. "metric": "",
  214. "refId": "A",
  215. "step": 300,
  216. "target": ""
  217. },
  218. {
  219. "calculatedInterval": "2m",
  220. "datasourceErrors": {},
  221. "errors": {},
  222. "expr": "node_procs_blocked{instance=\"$host\"}",
  223. "interval": "$interval",
  224. "intervalFactor": 1,
  225. "legendFormat": "Processes blocked waiting for I/O to complete",
  226. "metric": "",
  227. "refId": "B",
  228. "step": 300,
  229. "target": ""
  230. }
  231. ],
  232. "thresholds": [],
  233. "timeFrom": null,
  234. "timeShift": null,
  235. "title": "Processes",
  236. "tooltip": {
  237. "msResolution": false,
  238. "shared": true,
  239. "sort": 0,
  240. "value_type": "individual"
  241. },
  242. "transparent": false,
  243. "type": "graph",
  244. "xaxis": {
  245. "mode": "time",
  246. "name": null,
  247. "show": true,
  248. "values": []
  249. },
  250. "yaxes": [
  251. {
  252. "format": "none",
  253. "label": "",
  254. "logBase": 1,
  255. "max": null,
  256. "min": 0,
  257. "show": true
  258. },
  259. {
  260. "format": "none",
  261. "logBase": 1,
  262. "max": null,
  263. "min": 0,
  264. "show": true
  265. }
  266. ]
  267. },
  268. {
  269. "aliasColors": {},
  270. "bars": false,
  271. "datasource": "Prometheus",
  272. "decimals": null,
  273. "editable": true,
  274. "error": false,
  275. "fill": 6,
  276. "grid": {},
  277. "id": 21,
  278. "legend": {
  279. "alignAsTable": true,
  280. "avg": true,
  281. "current": false,
  282. "hideEmpty": false,
  283. "max": true,
  284. "min": true,
  285. "rightSide": false,
  286. "show": true,
  287. "sort": "avg",
  288. "sortDesc": true,
  289. "total": false,
  290. "values": true
  291. },
  292. "lines": true,
  293. "linewidth": 2,
  294. "links": [],
  295. "nullPointMode": "null",
  296. "percentage": false,
  297. "pointradius": 5,
  298. "points": false,
  299. "renderer": "flot",
  300. "seriesOverrides": [],
  301. "span": 6,
  302. "stack": true,
  303. "steppedLine": false,
  304. "targets": [
  305. {
  306. "calculatedInterval": "2s",
  307. "datasourceErrors": {},
  308. "errors": {},
  309. "expr": "sum(rate(node_network_receive_bytes{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_receive_bytes{instance=\"$host\", device!=\"lo\"}[5m]))",
  310. "interval": "$interval",
  311. "intervalFactor": 1,
  312. "legendFormat": "Inbound",
  313. "metric": "",
  314. "refId": "B",
  315. "step": 300,
  316. "target": ""
  317. },
  318. {
  319. "calculatedInterval": "2s",
  320. "datasourceErrors": {},
  321. "errors": {},
  322. "expr": "sum(rate(node_network_transmit_bytes{instance=\"$host\", device!=\"lo\"}[$interval])) or sum(irate(node_network_transmit_bytes{instance=\"$host\", device!=\"lo\"}[5m]))",
  323. "interval": "$interval",
  324. "intervalFactor": 1,
  325. "legendFormat": "Outbound",
  326. "metric": "",
  327. "refId": "A",
  328. "step": 300,
  329. "target": ""
  330. }
  331. ],
  332. "thresholds": [],
  333. "timeFrom": null,
  334. "timeShift": null,
  335. "title": "Network Traffic",
  336. "tooltip": {
  337. "msResolution": false,
  338. "shared": true,
  339. "sort": 0,
  340. "value_type": "individual"
  341. },
  342. "transparent": false,
  343. "type": "graph",
  344. "xaxis": {
  345. "mode": "time",
  346. "name": null,
  347. "show": true,
  348. "values": []
  349. },
  350. "yaxes": [
  351. {
  352. "format": "Bps",
  353. "label": "",
  354. "logBase": 1,
  355. "max": null,
  356. "min": 0,
  357. "show": true
  358. },
  359. {
  360. "format": "bytes",
  361. "logBase": 1,
  362. "max": null,
  363. "min": 0,
  364. "show": true
  365. }
  366. ]
  367. }
  368. ],
  369. "repeat": null,
  370. "repeatIteration": null,
  371. "repeatRowId": null,
  372. "showTitle": false,
  373. "title": "Processes",
  374. "titleSize": "h6"
  375. },
  376. {
  377. "collapse": false,
  378. "height": "250px",
  379. "panels": [
  380. {
  381. "aliasColors": {},
  382. "bars": false,
  383. "datasource": "Prometheus",
  384. "decimals": null,
  385. "editable": true,
  386. "error": false,
  387. "fill": 2,
  388. "grid": {},
  389. "id": 31,
  390. "legend": {
  391. "alignAsTable": true,
  392. "avg": true,
  393. "current": false,
  394. "hideEmpty": false,
  395. "max": true,
  396. "min": true,
  397. "rightSide": false,
  398. "show": true,
  399. "sort": "avg",
  400. "sortDesc": true,
  401. "total": false,
  402. "values": true
  403. },
  404. "lines": true,
  405. "linewidth": 2,
  406. "links": [],
  407. "nullPointMode": "null",
  408. "percentage": false,
  409. "pointradius": 5,
  410. "points": false,
  411. "renderer": "flot",
  412. "seriesOverrides": [],
  413. "span": 6,
  414. "stack": false,
  415. "steppedLine": false,
  416. "targets": [
  417. {
  418. "calculatedInterval": "2s",
  419. "datasourceErrors": {},
  420. "errors": {},
  421. "expr": "rate(node_vmstat_pgpgin{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgin{instance=\"$host\"}[5m]) * 1024",
  422. "interval": "$interval",
  423. "intervalFactor": 1,
  424. "legendFormat": "Page In",
  425. "metric": "",
  426. "refId": "A",
  427. "step": 300,
  428. "target": ""
  429. },
  430. {
  431. "calculatedInterval": "2s",
  432. "datasourceErrors": {},
  433. "errors": {},
  434. "expr": "rate(node_vmstat_pgpgout{instance=\"$host\"}[$interval]) * 1024 or irate(node_vmstat_pgpgout{instance=\"$host\"}[5m]) * 1024",
  435. "interval": "$interval",
  436. "intervalFactor": 1,
  437. "legendFormat": "Page Out",
  438. "metric": "",
  439. "refId": "B",
  440. "step": 300,
  441. "target": ""
  442. }
  443. ],
  444. "thresholds": [],
  445. "timeFrom": null,
  446. "timeShift": null,
  447. "title": "I/O Activity",
  448. "tooltip": {
  449. "msResolution": false,
  450. "shared": true,
  451. "sort": 0,
  452. "value_type": "individual"
  453. },
  454. "transparent": false,
  455. "type": "graph",
  456. "xaxis": {
  457. "mode": "time",
  458. "name": null,
  459. "show": true,
  460. "values": []
  461. },
  462. "yaxes": [
  463. {
  464. "format": "Bps",
  465. "label": "",
  466. "logBase": 1,
  467. "max": null,
  468. "min": 0,
  469. "show": true
  470. },
  471. {
  472. "format": "bytes",
  473. "logBase": 1,
  474. "max": null,
  475. "min": 0,
  476. "show": true
  477. }
  478. ]
  479. },
  480. {
  481. "aliasColors": {},
  482. "bars": false,
  483. "datasource": "Prometheus",
  484. "decimals": 2,
  485. "editable": true,
  486. "error": false,
  487. "fill": 2,
  488. "grid": {},
  489. "id": 36,
  490. "legend": {
  491. "alignAsTable": true,
  492. "avg": true,
  493. "current": false,
  494. "hideEmpty": true,
  495. "hideZero": true,
  496. "max": true,
  497. "min": true,
  498. "rightSide": false,
  499. "show": true,
  500. "total": false,
  501. "values": true
  502. },
  503. "lines": false,
  504. "linewidth": 2,
  505. "links": [],
  506. "nullPointMode": "null",
  507. "percentage": false,
  508. "pointradius": 1,
  509. "points": true,
  510. "renderer": "flot",
  511. "seriesOverrides": [],
  512. "span": 6,
  513. "stack": false,
  514. "steppedLine": false,
  515. "targets": [
  516. {
  517. "calculatedInterval": "2m",
  518. "datasourceErrors": {},
  519. "errors": {},
  520. "expr": "(rate(node_disk_read_time_ms{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_reads_completed{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_read_time_ms{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_reads_completed{device!~\"dm-.+\", instance=\"$host\"}[5m]))",
  521. "interval": "$interval",
  522. "intervalFactor": 1,
  523. "legendFormat": "Read: {{ device }}",
  524. "metric": "",
  525. "refId": "A",
  526. "step": 300,
  527. "target": ""
  528. },
  529. {
  530. "calculatedInterval": "2m",
  531. "datasourceErrors": {},
  532. "errors": {},
  533. "expr": "(rate(node_disk_write_time_ms{device!~\"dm-.+\", instance=\"$host\"}[$interval]) / rate(node_disk_writes_completed{device!~\"dm-.+\", instance=\"$host\"}[$interval])) or (irate(node_disk_write_time_ms{device!~\"dm-.+\", instance=\"$host\"}[5m]) / irate(node_disk_writes_completed{device!~\"dm-.+\", instance=\"$host\"}[5m]))",
  534. "interval": "$interval",
  535. "intervalFactor": 1,
  536. "legendFormat": "Write: {{ device }}",
  537. "metric": "",
  538. "refId": "B",
  539. "step": 300,
  540. "target": ""
  541. }
  542. ],
  543. "thresholds": [],
  544. "timeFrom": null,
  545. "timeShift": null,
  546. "title": "Disk Latency",
  547. "tooltip": {
  548. "msResolution": false,
  549. "shared": true,
  550. "sort": 0,
  551. "value_type": "individual"
  552. },
  553. "transparent": false,
  554. "type": "graph",
  555. "xaxis": {
  556. "mode": "time",
  557. "name": null,
  558. "show": true,
  559. "values": []
  560. },
  561. "yaxes": [
  562. {
  563. "format": "ms",
  564. "label": "",
  565. "logBase": 2,
  566. "max": null,
  567. "min": 0,
  568. "show": true
  569. },
  570. {
  571. "format": "ms",
  572. "label": "",
  573. "logBase": 1,
  574. "max": null,
  575. "min": 0,
  576. "show": true
  577. }
  578. ]
  579. }
  580. ],
  581. "repeat": null,
  582. "repeatIteration": null,
  583. "repeatRowId": null,
  584. "showTitle": false,
  585. "title": "I/O",
  586. "titleSize": "h6"
  587. },
  588. {
  589. "collapse": false,
  590. "height": "250px",
  591. "panels": [
  592. {
  593. "aliasColors": {},
  594. "bars": false,
  595. "datasource": "Prometheus",
  596. "decimals": null,
  597. "editable": true,
  598. "error": false,
  599. "fill": 2,
  600. "grid": {},
  601. "id": 35,
  602. "legend": {
  603. "alignAsTable": true,
  604. "avg": true,
  605. "current": false,
  606. "max": true,
  607. "min": true,
  608. "rightSide": false,
  609. "show": true,
  610. "total": false,
  611. "values": true
  612. },
  613. "lines": true,
  614. "linewidth": 2,
  615. "links": [],
  616. "nullPointMode": "null",
  617. "percentage": false,
  618. "pointradius": 5,
  619. "points": false,
  620. "renderer": "flot",
  621. "seriesOverrides": [],
  622. "span": 6,
  623. "stack": false,
  624. "steppedLine": false,
  625. "targets": [
  626. {
  627. "calculatedInterval": "2m",
  628. "datasourceErrors": {},
  629. "errors": {},
  630. "expr": "rate(mysql_global_status_queries{instance=\"$host\"}[$interval]) or irate(mysql_global_status_queries{instance=\"$host\"}[5m])",
  631. "interval": "$interval",
  632. "intervalFactor": 1,
  633. "legendFormat": "Queries",
  634. "metric": "",
  635. "refId": "A",
  636. "step": 300
  637. }
  638. ],
  639. "thresholds": [],
  640. "timeFrom": null,
  641. "timeShift": null,
  642. "title": "MySQL Queries",
  643. "tooltip": {
  644. "msResolution": false,
  645. "shared": true,
  646. "sort": 0,
  647. "value_type": "individual"
  648. },
  649. "type": "graph",
  650. "xaxis": {
  651. "mode": "time",
  652. "name": null,
  653. "show": true,
  654. "values": []
  655. },
  656. "yaxes": [
  657. {
  658. "format": "short",
  659. "logBase": 1,
  660. "max": null,
  661. "min": 0,
  662. "show": true
  663. },
  664. {
  665. "format": "short",
  666. "logBase": 1,
  667. "max": null,
  668. "min": 0,
  669. "show": true
  670. }
  671. ]
  672. },
  673. {
  674. "aliasColors": {},
  675. "bars": false,
  676. "datasource": "Prometheus",
  677. "decimals": null,
  678. "editable": true,
  679. "error": false,
  680. "fill": 2,
  681. "grid": {},
  682. "height": "270px",
  683. "id": 34,
  684. "legend": {
  685. "alignAsTable": true,
  686. "avg": true,
  687. "current": false,
  688. "max": true,
  689. "min": true,
  690. "rightSide": false,
  691. "show": true,
  692. "sort": "avg",
  693. "sortDesc": true,
  694. "total": false,
  695. "values": true
  696. },
  697. "lines": true,
  698. "linewidth": 2,
  699. "links": [],
  700. "nullPointMode": "null",
  701. "percentage": false,
  702. "pointradius": 5,
  703. "points": false,
  704. "renderer": "flot",
  705. "seriesOverrides": [],
  706. "span": 6,
  707. "stack": false,
  708. "steppedLine": false,
  709. "targets": [
  710. {
  711. "calculatedInterval": "2m",
  712. "datasourceErrors": {},
  713. "errors": {},
  714. "expr": "rate(mysql_global_status_innodb_row_ops_total{instance=\"$host\"}[$interval]) or irate(mysql_global_status_innodb_row_ops_total{instance=\"$host\"}[5m])",
  715. "interval": "$interval",
  716. "intervalFactor": 1,
  717. "legendFormat": "Rows {{ operation }}",
  718. "metric": "",
  719. "refId": "A",
  720. "step": 300
  721. }
  722. ],
  723. "thresholds": [],
  724. "timeFrom": null,
  725. "timeShift": null,
  726. "title": "InnoDB Row Operations",
  727. "tooltip": {
  728. "msResolution": false,
  729. "shared": true,
  730. "sort": 0,
  731. "value_type": "individual"
  732. },
  733. "type": "graph",
  734. "xaxis": {
  735. "mode": "time",
  736. "name": null,
  737. "show": true,
  738. "values": []
  739. },
  740. "yaxes": [
  741. {
  742. "format": "short",
  743. "logBase": 1,
  744. "max": null,
  745. "min": 0,
  746. "show": true
  747. },
  748. {
  749. "format": "short",
  750. "logBase": 1,
  751. "max": null,
  752. "min": 0,
  753. "show": true
  754. }
  755. ]
  756. }
  757. ],
  758. "repeat": null,
  759. "repeatIteration": null,
  760. "repeatRowId": null,
  761. "showTitle": true,
  762. "title": "MySQL Stats",
  763. "titleSize": "h6"
  764. },
  765. {
  766. "collapse": false,
  767. "height": "250px",
  768. "panels": [
  769. {
  770. "aliasColors": {},
  771. "bars": false,
  772. "datasource": "Prometheus",
  773. "decimals": null,
  774. "editable": true,
  775. "error": false,
  776. "fill": 2,
  777. "grid": {},
  778. "id": 32,
  779. "legend": {
  780. "alignAsTable": true,
  781. "avg": true,
  782. "current": false,
  783. "hideEmpty": false,
  784. "hideZero": false,
  785. "max": true,
  786. "min": true,
  787. "rightSide": true,
  788. "show": true,
  789. "sort": "avg",
  790. "sortDesc": true,
  791. "total": false,
  792. "values": true
  793. },
  794. "lines": true,
  795. "linewidth": 2,
  796. "links": [],
  797. "nullPointMode": "null",
  798. "percentage": false,
  799. "pointradius": 5,
  800. "points": false,
  801. "renderer": "flot",
  802. "seriesOverrides": [],
  803. "span": 12,
  804. "stack": false,
  805. "steppedLine": false,
  806. "targets": [
  807. {
  808. "calculatedInterval": "2m",
  809. "datasourceErrors": {},
  810. "errors": {},
  811. "expr": "topk(5, rate(mysql_global_status_commands_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_global_status_commands_total{instance=\"$host\"}[5m])>0)",
  812. "hide": false,
  813. "interval": "$interval",
  814. "intervalFactor": 1,
  815. "legendFormat": "Com_{{ command }}",
  816. "metric": "",
  817. "refId": "B",
  818. "step": 300
  819. }
  820. ],
  821. "thresholds": [],
  822. "timeFrom": null,
  823. "timeShift": null,
  824. "title": "Top MySQL Commands",
  825. "tooltip": {
  826. "msResolution": false,
  827. "shared": true,
  828. "sort": 0,
  829. "value_type": "individual"
  830. },
  831. "type": "graph",
  832. "xaxis": {
  833. "mode": "time",
  834. "name": null,
  835. "show": true,
  836. "values": []
  837. },
  838. "yaxes": [
  839. {
  840. "format": "short",
  841. "logBase": 1,
  842. "max": null,
  843. "min": 0,
  844. "show": true
  845. },
  846. {
  847. "format": "short",
  848. "logBase": 1,
  849. "max": null,
  850. "min": 0,
  851. "show": true
  852. }
  853. ]
  854. }
  855. ],
  856. "repeat": null,
  857. "repeatIteration": null,
  858. "repeatRowId": null,
  859. "showTitle": false,
  860. "title": "New row",
  861. "titleSize": "h6"
  862. },
  863. {
  864. "collapse": false,
  865. "height": "250px",
  866. "panels": [
  867. {
  868. "aliasColors": {},
  869. "bars": false,
  870. "datasource": "Prometheus",
  871. "decimals": null,
  872. "editable": true,
  873. "error": false,
  874. "fill": 2,
  875. "grid": {},
  876. "id": 33,
  877. "legend": {
  878. "alignAsTable": true,
  879. "avg": true,
  880. "current": false,
  881. "hideZero": true,
  882. "max": true,
  883. "min": true,
  884. "rightSide": true,
  885. "show": true,
  886. "sort": "avg",
  887. "sortDesc": true,
  888. "total": false,
  889. "values": true
  890. },
  891. "lines": true,
  892. "linewidth": 2,
  893. "links": [],
  894. "nullPointMode": "null",
  895. "percentage": false,
  896. "pointradius": 5,
  897. "points": false,
  898. "renderer": "flot",
  899. "seriesOverrides": [],
  900. "span": 12,
  901. "stack": false,
  902. "steppedLine": false,
  903. "targets": [
  904. {
  905. "calculatedInterval": "2m",
  906. "datasourceErrors": {},
  907. "errors": {},
  908. "expr": "topk(5, rate(mysql_global_status_handlers_total{instance=\"$host\"}[$interval])>0) or topk(5, irate(mysql_global_status_handlers_total{instance=\"$host\"}[5m])>0)",
  909. "interval": "$interval",
  910. "intervalFactor": 1,
  911. "legendFormat": "{{ handler }}",
  912. "metric": "",
  913. "refId": "J",
  914. "step": 300
  915. }
  916. ],
  917. "thresholds": [],
  918. "timeFrom": null,
  919. "timeShift": null,
  920. "title": "Top MySQL Handlers",
  921. "tooltip": {
  922. "msResolution": false,
  923. "shared": true,
  924. "sort": 0,
  925. "value_type": "individual"
  926. },
  927. "type": "graph",
  928. "xaxis": {
  929. "mode": "time",
  930. "name": null,
  931. "show": true,
  932. "values": []
  933. },
  934. "yaxes": [
  935. {
  936. "format": "short",
  937. "logBase": 1,
  938. "max": null,
  939. "min": 0,
  940. "show": true
  941. },
  942. {
  943. "format": "short",
  944. "logBase": 1,
  945. "max": null,
  946. "min": 0,
  947. "show": true
  948. }
  949. ]
  950. }
  951. ],
  952. "repeat": null,
  953. "repeatIteration": null,
  954. "repeatRowId": null,
  955. "showTitle": false,
  956. "title": "New row",
  957. "titleSize": "h6"
  958. }
  959. ],
  960. "schemaVersion": 13,
  961. "sharedCrosshair": true,
  962. "style": "dark",
  963. "tags": [
  964. "Percona",
  965. "Insight "
  966. ],
  967. "templating": {
  968. "list": [
  969. {
  970. "allFormat": "glob",
  971. "auto": true,
  972. "auto_count": 200,
  973. "auto_min": "1s",
  974. "current": {
  975. "text": "auto",
  976. "value": "$__auto_interval"
  977. },
  978. "datasource": "Prometheus",
  979. "hide": 0,
  980. "includeAll": false,
  981. "label": "Interval",
  982. "multi": false,
  983. "multiFormat": "glob",
  984. "name": "interval",
  985. "options": [
  986. {
  987. "selected": true,
  988. "text": "auto",
  989. "value": "$__auto_interval"
  990. },
  991. {
  992. "selected": false,
  993. "text": "1s",
  994. "value": "1s"
  995. },
  996. {
  997. "selected": false,
  998. "text": "5s",
  999. "value": "5s"
  1000. },
  1001. {
  1002. "selected": false,
  1003. "text": "1m",
  1004. "value": "1m"
  1005. },
  1006. {
  1007. "selected": false,
  1008. "text": "5m",
  1009. "value": "5m"
  1010. },
  1011. {
  1012. "selected": false,
  1013. "text": "1h",
  1014. "value": "1h"
  1015. },
  1016. {
  1017. "selected": false,
  1018. "text": "6h",
  1019. "value": "6h"
  1020. },
  1021. {
  1022. "selected": false,
  1023. "text": "1d",
  1024. "value": "1d"
  1025. }
  1026. ],
  1027. "query": "1s,5s,1m,5m,1h,6h,1d",
  1028. "refresh": 2,
  1029. "type": "interval"
  1030. },
  1031. {
  1032. "allFormat": "glob",
  1033. "allValue": null,
  1034. "datasource": "Prometheus",
  1035. "hide": 0,
  1036. "includeAll": false,
  1037. "label": "Host",
  1038. "multi": false,
  1039. "multiFormat": "regex values",
  1040. "name": "host",
  1041. "query": "label_values(instance)",
  1042. "refresh": 1,
  1043. "refresh_on_load": false,
  1044. "regex": "",
  1045. "sort": 1,
  1046. "tagValuesQuery": "instance",
  1047. "tagsQuery": "up",
  1048. "type": "query",
  1049. "useTags": false
  1050. }
  1051. ]
  1052. },
  1053. "time": {
  1054. "from": "now-12h",
  1055. "to": "now"
  1056. },
  1057. "timepicker": {
  1058. "collapse": false,
  1059. "enable": true,
  1060. "notice": false,
  1061. "now": true,
  1062. "refresh_intervals": [
  1063. "5s",
  1064. "10s",
  1065. "30s",
  1066. "1m",
  1067. "5m",
  1068. "15m",
  1069. "30m",
  1070. "1h",
  1071. "2h",
  1072. "1d"
  1073. ],
  1074. "status": "Stable",
  1075. "time_options": [
  1076. "5m",
  1077. "15m",
  1078. "1h",
  1079. "6h",
  1080. "12h",
  1081. "24h",
  1082. "2d",
  1083. "7d",
  1084. "30d"
  1085. ],
  1086. "type": "timepicker"
  1087. },
  1088. "timezone": "browser",
  1089. "title": "Summary Dashboard",
  1090. "version": 0
  1091. }