MySQL_Replication.json 42 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197
  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": "125px",
  52. "panels": [
  53. {
  54. "cacheTimeout": null,
  55. "colorBackground": true,
  56. "colorValue": false,
  57. "colors": [
  58. "rgba(161, 18, 18, 0.9)",
  59. "rgba(237, 129, 40, 0.89)",
  60. "rgba(36, 112, 33, 0.97)"
  61. ],
  62. "datasource": "Prometheus",
  63. "decimals": 0,
  64. "editable": true,
  65. "error": false,
  66. "format": "short",
  67. "gauge": {
  68. "maxValue": 100,
  69. "minValue": 0,
  70. "show": false,
  71. "thresholdLabels": false,
  72. "thresholdMarkers": true
  73. },
  74. "height": "125px",
  75. "id": 26,
  76. "interval": "$interval",
  77. "links": [],
  78. "mappingType": 1,
  79. "mappingTypes": [
  80. {
  81. "name": "value to text",
  82. "value": 1
  83. },
  84. {
  85. "name": "range to text",
  86. "value": 2
  87. }
  88. ],
  89. "maxDataPoints": 100,
  90. "nullPointMode": "connected",
  91. "nullText": null,
  92. "postfix": "",
  93. "postfixFontSize": "50%",
  94. "prefix": "",
  95. "prefixFontSize": "80%",
  96. "rangeMaps": [
  97. {
  98. "from": "null",
  99. "text": "N/A",
  100. "to": "null"
  101. }
  102. ],
  103. "span": 3,
  104. "sparkline": {
  105. "fillColor": "rgba(31, 118, 189, 0.18)",
  106. "full": false,
  107. "lineColor": "rgb(31, 120, 193)",
  108. "show": false
  109. },
  110. "targets": [
  111. {
  112. "calculatedInterval": "10m",
  113. "datasourceErrors": {},
  114. "errors": {},
  115. "expr": "mysql_slave_status_slave_io_running{instance=\"$host\"}",
  116. "interval": "5m",
  117. "intervalFactor": 1,
  118. "legendFormat": "",
  119. "metric": "",
  120. "refId": "A",
  121. "step": 300
  122. }
  123. ],
  124. "thresholds": "0.5,1",
  125. "title": "IO Thread Running",
  126. "transparent": false,
  127. "type": "singlestat",
  128. "valueFontSize": "80%",
  129. "valueMaps": [
  130. {
  131. "op": "=",
  132. "text": "Yes",
  133. "value": "1"
  134. },
  135. {
  136. "op": "=",
  137. "text": "No",
  138. "value": "0"
  139. }
  140. ],
  141. "valueName": "current"
  142. },
  143. {
  144. "cacheTimeout": null,
  145. "colorBackground": true,
  146. "colorValue": false,
  147. "colors": [
  148. "rgba(161, 18, 18, 0.9)",
  149. "rgba(237, 129, 40, 0.89)",
  150. "rgba(36, 112, 33, 0.97)"
  151. ],
  152. "datasource": "Prometheus",
  153. "decimals": 0,
  154. "editable": true,
  155. "error": false,
  156. "format": "short",
  157. "gauge": {
  158. "maxValue": 100,
  159. "minValue": 0,
  160. "show": false,
  161. "thresholdLabels": false,
  162. "thresholdMarkers": true
  163. },
  164. "height": "125px",
  165. "id": 17,
  166. "interval": "$interval",
  167. "links": [],
  168. "mappingType": 1,
  169. "mappingTypes": [
  170. {
  171. "name": "value to text",
  172. "value": 1
  173. },
  174. {
  175. "name": "range to text",
  176. "value": 2
  177. }
  178. ],
  179. "maxDataPoints": 100,
  180. "nullPointMode": "connected",
  181. "nullText": null,
  182. "postfix": "",
  183. "postfixFontSize": "50%",
  184. "prefix": "",
  185. "prefixFontSize": "80%",
  186. "rangeMaps": [
  187. {
  188. "from": "null",
  189. "text": "N/A",
  190. "to": "null"
  191. }
  192. ],
  193. "span": 3,
  194. "sparkline": {
  195. "fillColor": "rgba(31, 118, 189, 0.18)",
  196. "full": false,
  197. "lineColor": "rgb(31, 120, 193)",
  198. "show": false
  199. },
  200. "targets": [
  201. {
  202. "calculatedInterval": "10m",
  203. "datasourceErrors": {},
  204. "errors": {},
  205. "expr": "mysql_slave_status_slave_sql_running{instance=\"$host\"}",
  206. "interval": "5m",
  207. "intervalFactor": 1,
  208. "legendFormat": "",
  209. "metric": "",
  210. "refId": "A",
  211. "step": 300
  212. }
  213. ],
  214. "thresholds": "0.5,1",
  215. "title": "SQL Thread Running",
  216. "transparent": false,
  217. "type": "singlestat",
  218. "valueFontSize": "80%",
  219. "valueMaps": [
  220. {
  221. "op": "=",
  222. "text": "Yes",
  223. "value": "1"
  224. },
  225. {
  226. "op": "=",
  227. "text": "No",
  228. "value": "0"
  229. }
  230. ],
  231. "valueName": "current"
  232. },
  233. {
  234. "cacheTimeout": null,
  235. "colorBackground": false,
  236. "colorValue": true,
  237. "colors": [
  238. "rgba(50, 172, 45, 0.97)",
  239. "rgba(237, 129, 40, 0.89)",
  240. "rgba(245, 54, 54, 0.9)"
  241. ],
  242. "datasource": "Prometheus",
  243. "decimals": 0,
  244. "editable": true,
  245. "error": false,
  246. "format": "none",
  247. "gauge": {
  248. "maxValue": 100,
  249. "minValue": 0,
  250. "show": false,
  251. "thresholdLabels": false,
  252. "thresholdMarkers": true
  253. },
  254. "height": "125px",
  255. "id": 39,
  256. "interval": "$interval",
  257. "links": [],
  258. "mappingType": 1,
  259. "mappingTypes": [
  260. {
  261. "name": "value to text",
  262. "value": 1
  263. },
  264. {
  265. "name": "range to text",
  266. "value": 2
  267. }
  268. ],
  269. "maxDataPoints": 100,
  270. "nullPointMode": "connected",
  271. "nullText": null,
  272. "postfix": "",
  273. "postfixFontSize": "50%",
  274. "prefix": "",
  275. "prefixFontSize": "80%",
  276. "rangeMaps": [
  277. {
  278. "from": "null",
  279. "text": "N/A",
  280. "to": "null"
  281. }
  282. ],
  283. "span": 3,
  284. "sparkline": {
  285. "fillColor": "rgba(31, 118, 189, 0.18)",
  286. "full": false,
  287. "lineColor": "rgb(31, 120, 193)",
  288. "show": false
  289. },
  290. "targets": [
  291. {
  292. "calculatedInterval": "10m",
  293. "datasourceErrors": {},
  294. "errors": {},
  295. "expr": "mysql_slave_status_last_errno{instance=\"$host\"}",
  296. "interval": "5m",
  297. "intervalFactor": 1,
  298. "legendFormat": "",
  299. "metric": "",
  300. "refId": "A",
  301. "step": 300
  302. }
  303. ],
  304. "thresholds": "0.5,1",
  305. "title": "Replication Error No",
  306. "transparent": false,
  307. "type": "singlestat",
  308. "valueFontSize": "80%",
  309. "valueMaps": [
  310. {
  311. "op": "=",
  312. "text": "N/A",
  313. "value": "0"
  314. }
  315. ],
  316. "valueName": "current"
  317. },
  318. {
  319. "cacheTimeout": null,
  320. "colorBackground": false,
  321. "colorValue": false,
  322. "colors": [
  323. "rgba(50, 172, 45, 0.97)",
  324. "rgba(237, 129, 40, 0.89)",
  325. "rgba(245, 54, 54, 0.9)"
  326. ],
  327. "datasource": "Prometheus",
  328. "decimals": 0,
  329. "editable": true,
  330. "error": false,
  331. "format": "short",
  332. "gauge": {
  333. "maxValue": 100,
  334. "minValue": 0,
  335. "show": false,
  336. "thresholdLabels": false,
  337. "thresholdMarkers": true
  338. },
  339. "height": "125px",
  340. "id": 27,
  341. "interval": "$interval",
  342. "links": [],
  343. "mappingType": 1,
  344. "mappingTypes": [
  345. {
  346. "name": "value to text",
  347. "value": 1
  348. },
  349. {
  350. "name": "range to text",
  351. "value": 2
  352. }
  353. ],
  354. "maxDataPoints": 100,
  355. "nullPointMode": "connected",
  356. "nullText": null,
  357. "postfix": "",
  358. "postfixFontSize": "50%",
  359. "prefix": "",
  360. "prefixFontSize": "80%",
  361. "rangeMaps": [
  362. {
  363. "from": "null",
  364. "text": "N/A",
  365. "to": "null"
  366. }
  367. ],
  368. "span": 3,
  369. "sparkline": {
  370. "fillColor": "rgba(31, 118, 189, 0.18)",
  371. "full": false,
  372. "lineColor": "rgb(31, 120, 193)",
  373. "show": false
  374. },
  375. "targets": [
  376. {
  377. "calculatedInterval": "10m",
  378. "datasourceErrors": {},
  379. "errors": {},
  380. "expr": "mysql_global_variables_read_only{instance=\"$host\"}",
  381. "interval": "5m",
  382. "intervalFactor": 1,
  383. "legendFormat": "",
  384. "metric": "",
  385. "refId": "A",
  386. "step": 300
  387. }
  388. ],
  389. "thresholds": "0.5,1",
  390. "title": "Read Only",
  391. "transparent": false,
  392. "type": "singlestat",
  393. "valueFontSize": "80%",
  394. "valueMaps": [
  395. {
  396. "op": "=",
  397. "text": "Yes",
  398. "value": "1"
  399. },
  400. {
  401. "op": "=",
  402. "text": "No",
  403. "value": "0"
  404. }
  405. ],
  406. "valueName": "current"
  407. }
  408. ],
  409. "repeat": null,
  410. "repeatIteration": null,
  411. "repeatRowId": null,
  412. "showTitle": false,
  413. "title": "Widgets",
  414. "titleSize": "h6"
  415. },
  416. {
  417. "collapse": false,
  418. "height": "250px",
  419. "panels": [
  420. {
  421. "aliasColors": {},
  422. "bars": false,
  423. "datasource": "Prometheus",
  424. "decimals": 0,
  425. "editable": true,
  426. "error": false,
  427. "fill": 2,
  428. "grid": {},
  429. "id": 16,
  430. "legend": {
  431. "alignAsTable": true,
  432. "avg": true,
  433. "current": false,
  434. "max": true,
  435. "min": true,
  436. "rightSide": true,
  437. "show": true,
  438. "total": false,
  439. "values": true
  440. },
  441. "lines": true,
  442. "linewidth": 2,
  443. "links": [],
  444. "nullPointMode": "null",
  445. "percentage": false,
  446. "pointradius": 5,
  447. "points": false,
  448. "renderer": "flot",
  449. "seriesOverrides": [
  450. {
  451. "alias": "Lag",
  452. "color": "#E24D42"
  453. }
  454. ],
  455. "span": 12,
  456. "stack": false,
  457. "steppedLine": false,
  458. "targets": [
  459. {
  460. "calculatedInterval": "2m",
  461. "datasourceErrors": {},
  462. "errors": {},
  463. "expr": "mysql_slave_status_seconds_behind_master{instance=\"$host\"}",
  464. "interval": "$interval",
  465. "intervalFactor": 1,
  466. "legendFormat": "Lag",
  467. "metric": "",
  468. "refId": "A",
  469. "step": 300
  470. }
  471. ],
  472. "thresholds": [],
  473. "timeFrom": null,
  474. "timeShift": null,
  475. "title": "MySQL Replication Delay",
  476. "tooltip": {
  477. "msResolution": false,
  478. "shared": true,
  479. "sort": 0,
  480. "value_type": "individual"
  481. },
  482. "type": "graph",
  483. "xaxis": {
  484. "mode": "time",
  485. "name": null,
  486. "show": true,
  487. "values": []
  488. },
  489. "yaxes": [
  490. {
  491. "format": "short",
  492. "logBase": 1,
  493. "max": null,
  494. "min": 0,
  495. "show": true
  496. },
  497. {
  498. "format": "short",
  499. "logBase": 1,
  500. "max": null,
  501. "min": 0,
  502. "show": true
  503. }
  504. ]
  505. }
  506. ],
  507. "repeat": null,
  508. "repeatIteration": null,
  509. "repeatRowId": null,
  510. "showTitle": false,
  511. "title": "Replication",
  512. "titleSize": "h6"
  513. },
  514. {
  515. "collapse": false,
  516. "height": "250px",
  517. "panels": [
  518. {
  519. "aliasColors": {},
  520. "bars": false,
  521. "datasource": "Prometheus",
  522. "decimals": null,
  523. "editable": true,
  524. "error": false,
  525. "fill": 2,
  526. "grid": {},
  527. "id": 33,
  528. "legend": {
  529. "alignAsTable": true,
  530. "avg": true,
  531. "current": false,
  532. "max": true,
  533. "min": true,
  534. "rightSide": false,
  535. "show": true,
  536. "total": false,
  537. "values": true
  538. },
  539. "lines": true,
  540. "linewidth": 2,
  541. "links": [],
  542. "nullPointMode": "null",
  543. "percentage": false,
  544. "pointradius": 5,
  545. "points": false,
  546. "renderer": "flot",
  547. "seriesOverrides": [
  548. {
  549. "alias": "Size",
  550. "color": "#1F78C1"
  551. }
  552. ],
  553. "span": 6,
  554. "stack": false,
  555. "steppedLine": false,
  556. "targets": [
  557. {
  558. "calculatedInterval": "2m",
  559. "datasourceErrors": {},
  560. "errors": {},
  561. "expr": "mysql_binlog_size_bytes{instance=\"$host\"}",
  562. "interval": "$interval",
  563. "intervalFactor": 1,
  564. "legendFormat": "Size",
  565. "metric": "",
  566. "refId": "A",
  567. "step": 300
  568. }
  569. ],
  570. "thresholds": [],
  571. "timeFrom": null,
  572. "timeShift": null,
  573. "title": "Binlogs Size",
  574. "tooltip": {
  575. "msResolution": false,
  576. "shared": true,
  577. "sort": 0,
  578. "value_type": "individual"
  579. },
  580. "type": "graph",
  581. "xaxis": {
  582. "mode": "time",
  583. "name": null,
  584. "show": true,
  585. "values": []
  586. },
  587. "yaxes": [
  588. {
  589. "format": "bytes",
  590. "logBase": 1,
  591. "max": null,
  592. "min": 0,
  593. "show": true
  594. },
  595. {
  596. "format": "bytes",
  597. "logBase": 1,
  598. "max": null,
  599. "min": 0,
  600. "show": true
  601. }
  602. ]
  603. },
  604. {
  605. "aliasColors": {},
  606. "bars": true,
  607. "datasource": "Prometheus",
  608. "decimals": 2,
  609. "editable": true,
  610. "error": false,
  611. "fill": 2,
  612. "grid": {},
  613. "id": 35,
  614. "legend": {
  615. "alignAsTable": false,
  616. "avg": false,
  617. "current": false,
  618. "max": false,
  619. "min": false,
  620. "rightSide": false,
  621. "show": false,
  622. "total": false,
  623. "values": false
  624. },
  625. "lines": false,
  626. "linewidth": 2,
  627. "links": [],
  628. "nullPointMode": "null",
  629. "percentage": false,
  630. "pointradius": 5,
  631. "points": false,
  632. "renderer": "flot",
  633. "seriesOverrides": [
  634. {
  635. "alias": "Size",
  636. "color": "#1F78C1"
  637. }
  638. ],
  639. "span": 6,
  640. "stack": false,
  641. "steppedLine": false,
  642. "targets": [
  643. {
  644. "calculatedInterval": "2m",
  645. "datasourceErrors": {},
  646. "errors": {},
  647. "expr": "increase(mysql_binlog_size_bytes{instance=\"$host\"}[1h])",
  648. "interval": "1h",
  649. "intervalFactor": 1,
  650. "legendFormat": "Size",
  651. "metric": "",
  652. "refId": "A",
  653. "step": 3600
  654. }
  655. ],
  656. "thresholds": [],
  657. "timeFrom": "24h",
  658. "timeShift": null,
  659. "title": "Binlog Data Written Hourly",
  660. "tooltip": {
  661. "msResolution": false,
  662. "shared": true,
  663. "sort": 0,
  664. "value_type": "individual"
  665. },
  666. "type": "graph",
  667. "xaxis": {
  668. "mode": "time",
  669. "name": null,
  670. "show": true,
  671. "values": []
  672. },
  673. "yaxes": [
  674. {
  675. "format": "bytes",
  676. "logBase": 1,
  677. "max": null,
  678. "min": 0,
  679. "show": true
  680. },
  681. {
  682. "format": "bytes",
  683. "logBase": 1,
  684. "max": null,
  685. "min": 0,
  686. "show": true
  687. }
  688. ]
  689. }
  690. ],
  691. "repeat": null,
  692. "repeatIteration": null,
  693. "repeatRowId": null,
  694. "showTitle": false,
  695. "title": "New row",
  696. "titleSize": "h6"
  697. },
  698. {
  699. "collapse": false,
  700. "height": "250px",
  701. "panels": [
  702. {
  703. "aliasColors": {},
  704. "bars": false,
  705. "datasource": "Prometheus",
  706. "decimals": 0,
  707. "editable": true,
  708. "error": false,
  709. "fill": 2,
  710. "grid": {},
  711. "id": 34,
  712. "legend": {
  713. "alignAsTable": true,
  714. "avg": true,
  715. "current": false,
  716. "max": true,
  717. "min": true,
  718. "rightSide": false,
  719. "show": true,
  720. "total": false,
  721. "values": true
  722. },
  723. "lines": true,
  724. "linewidth": 2,
  725. "links": [],
  726. "nullPointMode": "null",
  727. "percentage": false,
  728. "pointradius": 5,
  729. "points": false,
  730. "renderer": "flot",
  731. "seriesOverrides": [
  732. {
  733. "alias": "Count",
  734. "color": "#E0752D"
  735. }
  736. ],
  737. "span": 6,
  738. "stack": false,
  739. "steppedLine": false,
  740. "targets": [
  741. {
  742. "calculatedInterval": "2m",
  743. "datasourceErrors": {},
  744. "errors": {},
  745. "expr": "mysql_binlog_files{instance=\"$host\"}",
  746. "interval": "$interval",
  747. "intervalFactor": 1,
  748. "legendFormat": "Count",
  749. "metric": "",
  750. "refId": "A",
  751. "step": 300
  752. }
  753. ],
  754. "thresholds": [],
  755. "timeFrom": null,
  756. "timeShift": null,
  757. "title": "Binlogs Count",
  758. "tooltip": {
  759. "msResolution": false,
  760. "shared": true,
  761. "sort": 0,
  762. "value_type": "individual"
  763. },
  764. "type": "graph",
  765. "xaxis": {
  766. "mode": "time",
  767. "name": null,
  768. "show": true,
  769. "values": []
  770. },
  771. "yaxes": [
  772. {
  773. "format": "none",
  774. "logBase": 1,
  775. "max": null,
  776. "min": 0,
  777. "show": true
  778. },
  779. {
  780. "format": "none",
  781. "logBase": 1,
  782. "max": null,
  783. "min": 0,
  784. "show": true
  785. }
  786. ]
  787. },
  788. {
  789. "aliasColors": {},
  790. "bars": true,
  791. "datasource": "Prometheus",
  792. "decimals": 0,
  793. "editable": true,
  794. "error": false,
  795. "fill": 2,
  796. "grid": {},
  797. "id": 36,
  798. "legend": {
  799. "alignAsTable": false,
  800. "avg": false,
  801. "current": false,
  802. "max": false,
  803. "min": false,
  804. "rightSide": false,
  805. "show": false,
  806. "total": false,
  807. "values": false
  808. },
  809. "lines": false,
  810. "linewidth": 2,
  811. "links": [],
  812. "nullPointMode": "null",
  813. "percentage": false,
  814. "pointradius": 5,
  815. "points": false,
  816. "renderer": "flot",
  817. "seriesOverrides": [
  818. {
  819. "alias": "Count",
  820. "color": "#E0752D"
  821. }
  822. ],
  823. "span": 6,
  824. "stack": false,
  825. "steppedLine": false,
  826. "targets": [
  827. {
  828. "calculatedInterval": "2m",
  829. "datasourceErrors": {},
  830. "errors": {},
  831. "expr": "increase(mysql_binlog_file_number{instance=\"$host\"}[1h])",
  832. "interval": "1h",
  833. "intervalFactor": 1,
  834. "legendFormat": "Count",
  835. "metric": "",
  836. "refId": "A",
  837. "step": 3600
  838. }
  839. ],
  840. "thresholds": [],
  841. "timeFrom": "24h",
  842. "timeShift": null,
  843. "title": "Binlogs Created Hourly",
  844. "tooltip": {
  845. "msResolution": false,
  846. "shared": true,
  847. "sort": 0,
  848. "value_type": "individual"
  849. },
  850. "type": "graph",
  851. "xaxis": {
  852. "mode": "time",
  853. "name": null,
  854. "show": true,
  855. "values": []
  856. },
  857. "yaxes": [
  858. {
  859. "format": "none",
  860. "logBase": 1,
  861. "max": null,
  862. "min": 0,
  863. "show": true
  864. },
  865. {
  866. "format": "none",
  867. "logBase": 1,
  868. "max": null,
  869. "min": 0,
  870. "show": true
  871. }
  872. ]
  873. }
  874. ],
  875. "repeat": null,
  876. "repeatIteration": null,
  877. "repeatRowId": null,
  878. "showTitle": false,
  879. "title": "New row",
  880. "titleSize": "h6"
  881. },
  882. {
  883. "collapse": false,
  884. "height": "250px",
  885. "panels": [
  886. {
  887. "aliasColors": {},
  888. "bars": false,
  889. "datasource": "Prometheus",
  890. "decimals": null,
  891. "editable": true,
  892. "error": false,
  893. "fill": 2,
  894. "grid": {},
  895. "id": 37,
  896. "legend": {
  897. "alignAsTable": true,
  898. "avg": true,
  899. "current": false,
  900. "max": true,
  901. "min": true,
  902. "rightSide": false,
  903. "show": true,
  904. "total": false,
  905. "values": true
  906. },
  907. "lines": true,
  908. "linewidth": 2,
  909. "links": [],
  910. "nullPointMode": "null",
  911. "percentage": false,
  912. "pointradius": 5,
  913. "points": false,
  914. "renderer": "flot",
  915. "seriesOverrides": [
  916. {
  917. "alias": "Size",
  918. "color": "#BA43A9"
  919. }
  920. ],
  921. "span": 6,
  922. "stack": false,
  923. "steppedLine": false,
  924. "targets": [
  925. {
  926. "calculatedInterval": "2m",
  927. "datasourceErrors": {},
  928. "errors": {},
  929. "expr": "mysql_slave_status_relay_log_space{instance=\"$host\"}",
  930. "interval": "$interval",
  931. "intervalFactor": 1,
  932. "legendFormat": "Size",
  933. "metric": "",
  934. "refId": "A",
  935. "step": 300
  936. }
  937. ],
  938. "thresholds": [],
  939. "timeFrom": null,
  940. "timeShift": null,
  941. "title": "Relay Log Space",
  942. "tooltip": {
  943. "msResolution": false,
  944. "shared": true,
  945. "sort": 0,
  946. "value_type": "individual"
  947. },
  948. "type": "graph",
  949. "xaxis": {
  950. "mode": "time",
  951. "name": null,
  952. "show": true,
  953. "values": []
  954. },
  955. "yaxes": [
  956. {
  957. "format": "bytes",
  958. "logBase": 1,
  959. "max": null,
  960. "min": 0,
  961. "show": true
  962. },
  963. {
  964. "format": "bytes",
  965. "logBase": 1,
  966. "max": null,
  967. "min": 0,
  968. "show": true
  969. }
  970. ]
  971. },
  972. {
  973. "aliasColors": {},
  974. "bars": true,
  975. "datasource": "Prometheus",
  976. "decimals": 2,
  977. "editable": true,
  978. "error": false,
  979. "fill": 2,
  980. "grid": {},
  981. "id": 38,
  982. "legend": {
  983. "alignAsTable": true,
  984. "avg": true,
  985. "current": false,
  986. "max": true,
  987. "min": true,
  988. "rightSide": false,
  989. "show": false,
  990. "total": false,
  991. "values": true
  992. },
  993. "lines": false,
  994. "linewidth": 2,
  995. "links": [],
  996. "nullPointMode": "null",
  997. "percentage": false,
  998. "pointradius": 5,
  999. "points": false,
  1000. "renderer": "flot",
  1001. "seriesOverrides": [
  1002. {
  1003. "alias": "Size",
  1004. "color": "#BA43A9"
  1005. }
  1006. ],
  1007. "span": 6,
  1008. "stack": false,
  1009. "steppedLine": false,
  1010. "targets": [
  1011. {
  1012. "calculatedInterval": "2m",
  1013. "datasourceErrors": {},
  1014. "errors": {},
  1015. "expr": "increase(mysql_slave_status_relay_log_space{instance=\"$host\"}[1h])",
  1016. "interval": "1h",
  1017. "intervalFactor": 1,
  1018. "legendFormat": "Size",
  1019. "metric": "",
  1020. "refId": "A",
  1021. "step": 3600
  1022. }
  1023. ],
  1024. "thresholds": [],
  1025. "timeFrom": "24h",
  1026. "timeShift": null,
  1027. "title": "Relay Log Written Hourly",
  1028. "tooltip": {
  1029. "msResolution": false,
  1030. "shared": true,
  1031. "sort": 0,
  1032. "value_type": "individual"
  1033. },
  1034. "type": "graph",
  1035. "xaxis": {
  1036. "mode": "time",
  1037. "name": null,
  1038. "show": true,
  1039. "values": []
  1040. },
  1041. "yaxes": [
  1042. {
  1043. "format": "bytes",
  1044. "logBase": 1,
  1045. "max": null,
  1046. "min": 0,
  1047. "show": true
  1048. },
  1049. {
  1050. "format": "bytes",
  1051. "logBase": 1,
  1052. "max": null,
  1053. "min": 0,
  1054. "show": true
  1055. }
  1056. ]
  1057. }
  1058. ],
  1059. "repeat": null,
  1060. "repeatIteration": null,
  1061. "repeatRowId": null,
  1062. "showTitle": false,
  1063. "title": "New row",
  1064. "titleSize": "h6"
  1065. }
  1066. ],
  1067. "schemaVersion": 13,
  1068. "sharedCrosshair": true,
  1069. "style": "dark",
  1070. "tags": [
  1071. "Percona",
  1072. "MySQL"
  1073. ],
  1074. "templating": {
  1075. "list": [
  1076. {
  1077. "allFormat": "glob",
  1078. "auto": true,
  1079. "auto_count": 200,
  1080. "auto_min": "1s",
  1081. "current": {
  1082. "text": "auto",
  1083. "value": "$__auto_interval"
  1084. },
  1085. "datasource": "Prometheus",
  1086. "hide": 0,
  1087. "includeAll": false,
  1088. "label": "Interval",
  1089. "multi": false,
  1090. "multiFormat": "glob",
  1091. "name": "interval",
  1092. "options": [
  1093. {
  1094. "selected": true,
  1095. "text": "auto",
  1096. "value": "$__auto_interval"
  1097. },
  1098. {
  1099. "selected": false,
  1100. "text": "1s",
  1101. "value": "1s"
  1102. },
  1103. {
  1104. "selected": false,
  1105. "text": "5s",
  1106. "value": "5s"
  1107. },
  1108. {
  1109. "selected": false,
  1110. "text": "1m",
  1111. "value": "1m"
  1112. },
  1113. {
  1114. "selected": false,
  1115. "text": "5m",
  1116. "value": "5m"
  1117. },
  1118. {
  1119. "selected": false,
  1120. "text": "1h",
  1121. "value": "1h"
  1122. },
  1123. {
  1124. "selected": false,
  1125. "text": "6h",
  1126. "value": "6h"
  1127. },
  1128. {
  1129. "selected": false,
  1130. "text": "1d",
  1131. "value": "1d"
  1132. }
  1133. ],
  1134. "query": "1s,5s,1m,5m,1h,6h,1d",
  1135. "refresh": 2,
  1136. "type": "interval"
  1137. },
  1138. {
  1139. "allFormat": "glob",
  1140. "allValue": null,
  1141. "datasource": "Prometheus",
  1142. "hide": 0,
  1143. "includeAll": false,
  1144. "label": "Host",
  1145. "multi": false,
  1146. "multiFormat": "regex values",
  1147. "name": "host",
  1148. "query": "label_values({__name__=~\"(mysql_binlog_files|mysql_slave_status_seconds_behind_master)\"}, instance)",
  1149. "refresh": 1,
  1150. "refresh_on_load": false,
  1151. "regex": "",
  1152. "sort": 1,
  1153. "tagValuesQuery": null,
  1154. "tagsQuery": null,
  1155. "type": "query"
  1156. }
  1157. ]
  1158. },
  1159. "time": {
  1160. "from": "now-12h",
  1161. "to": "now"
  1162. },
  1163. "timepicker": {
  1164. "collapse": false,
  1165. "enable": true,
  1166. "notice": false,
  1167. "now": true,
  1168. "refresh_intervals": [
  1169. "5s",
  1170. "10s",
  1171. "30s",
  1172. "1m",
  1173. "5m",
  1174. "15m",
  1175. "30m",
  1176. "1h",
  1177. "2h",
  1178. "1d"
  1179. ],
  1180. "status": "Stable",
  1181. "time_options": [
  1182. "5m",
  1183. "15m",
  1184. "1h",
  1185. "6h",
  1186. "12h",
  1187. "24h",
  1188. "2d",
  1189. "7d",
  1190. "30d"
  1191. ],
  1192. "type": "timepicker"
  1193. },
  1194. "timezone": "browser",
  1195. "title": "MySQL Replication",
  1196. "version": 0
  1197. }