Saltstack Official Galera Formula
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

1990 lines
44KB

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