Saltstack Official Galera Formula
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

930 lines
24KB

  1. {
  2. "annotations": {
  3. "enable": false,
  4. "list": []
  5. },
  6. "editable": true,
  7. "gnetId": null,
  8. "graphTooltip": 1,
  9. "hideControls": false,
  10. "id": null,
  11. "links": [],
  12. "refresh": "1m",
  13. "rows": [
  14. {
  15. "collapse": false,
  16. "height": 250,
  17. "panels": [
  18. {
  19. "cacheTimeout": null,
  20. "colorBackground": false,
  21. "colorValue": false,
  22. "colors": [
  23. "rgba(245, 54, 54, 0.9)",
  24. "rgba(237, 129, 40, 0.89)",
  25. "rgba(50, 172, 45, 0.97)"
  26. ],
  27. "datasource": null,
  28. "description": "Displays the number of nodes in the cluster.",
  29. "format": "none",
  30. "gauge": {
  31. "maxValue": 100,
  32. "minValue": 0,
  33. "show": false,
  34. "thresholdLabels": false,
  35. "thresholdMarkers": true
  36. },
  37. "id": 32,
  38. "interval": null,
  39. "links": [],
  40. "mappingType": 1,
  41. "mappingTypes": [
  42. {
  43. "name": "value to text",
  44. "value": 1
  45. },
  46. {
  47. "name": "range to text",
  48. "value": 2
  49. }
  50. ],
  51. "maxDataPoints": 100,
  52. "nullPointMode": "connected",
  53. "nullText": null,
  54. "postfix": "",
  55. "postfixFontSize": "50%",
  56. "prefix": "",
  57. "prefixFontSize": "50%",
  58. "rangeMaps": [
  59. {
  60. "from": "null",
  61. "text": "N/A",
  62. "to": "null"
  63. }
  64. ],
  65. "span": 2,
  66. "sparkline": {
  67. "fillColor": "rgba(31, 118, 189, 0.18)",
  68. "full": false,
  69. "lineColor": "rgb(31, 120, 193)",
  70. "show": true
  71. },
  72. "tableColumn": "",
  73. "targets": [
  74. {
  75. "expr": "mysql_wsrep_cluster_size{host=\"$host\"}",
  76. "format": "time_series",
  77. "intervalFactor": 2,
  78. "legendFormat": "",
  79. "metric": "mysql_wsrep_cluster_size",
  80. "refId": "A",
  81. "step": 60
  82. }
  83. ],
  84. "thresholds": "",
  85. "title": "Cluster size",
  86. "type": "singlestat",
  87. "valueFontSize": "80%",
  88. "valueMaps": [
  89. {
  90. "op": "=",
  91. "text": "N/A",
  92. "value": "null"
  93. }
  94. ],
  95. "valueName": "current"
  96. },
  97. {
  98. "aliasColors": {},
  99. "bars": false,
  100. "dashLength": 10,
  101. "dashes": false,
  102. "datasource": null,
  103. "description": "Displays the average sizes of receive and send queues.",
  104. "fill": 0,
  105. "id": 31,
  106. "legend": {
  107. "avg": false,
  108. "current": false,
  109. "max": false,
  110. "min": false,
  111. "show": true,
  112. "total": false,
  113. "values": false
  114. },
  115. "lines": true,
  116. "linewidth": 1,
  117. "links": [],
  118. "nullPointMode": "null",
  119. "percentage": false,
  120. "pointradius": 5,
  121. "points": false,
  122. "renderer": "flot",
  123. "seriesOverrides": [],
  124. "spaceLength": 10,
  125. "span": 5,
  126. "stack": false,
  127. "steppedLine": false,
  128. "targets": [
  129. {
  130. "expr": "mysql_wsrep_local_recv_queue_avg{host=\"$host\"}",
  131. "format": "time_series",
  132. "intervalFactor": 2,
  133. "legendFormat": "receive",
  134. "refId": "A",
  135. "step": 10
  136. },
  137. {
  138. "expr": "mysql_wsrep_local_send_queue_avg{host=\"$host\"}",
  139. "format": "time_series",
  140. "intervalFactor": 2,
  141. "legendFormat": "send",
  142. "refId": "B",
  143. "step": 10
  144. }
  145. ],
  146. "thresholds": [],
  147. "timeFrom": null,
  148. "timeShift": null,
  149. "title": "Queues",
  150. "tooltip": {
  151. "shared": true,
  152. "sort": 0,
  153. "value_type": "individual"
  154. },
  155. "type": "graph",
  156. "xaxis": {
  157. "buckets": null,
  158. "mode": "time",
  159. "name": null,
  160. "show": true,
  161. "values": []
  162. },
  163. "yaxes": [
  164. {
  165. "format": "short",
  166. "label": null,
  167. "logBase": 1,
  168. "max": null,
  169. "min": "0",
  170. "show": true
  171. },
  172. {
  173. "format": "short",
  174. "label": null,
  175. "logBase": 1,
  176. "max": null,
  177. "min": null,
  178. "show": true
  179. }
  180. ]
  181. },
  182. {
  183. "aliasColors": {},
  184. "bars": false,
  185. "dashLength": 10,
  186. "dashes": false,
  187. "datasource": null,
  188. "description": "Displays the rate of flow control events.",
  189. "fill": 0,
  190. "id": 33,
  191. "legend": {
  192. "avg": false,
  193. "current": false,
  194. "max": false,
  195. "min": false,
  196. "show": true,
  197. "total": false,
  198. "values": false
  199. },
  200. "lines": true,
  201. "linewidth": 1,
  202. "links": [],
  203. "nullPointMode": "null",
  204. "percentage": false,
  205. "pointradius": 5,
  206. "points": false,
  207. "renderer": "flot",
  208. "seriesOverrides": [],
  209. "spaceLength": 10,
  210. "span": 5,
  211. "stack": false,
  212. "steppedLine": false,
  213. "targets": [
  214. {
  215. "expr": "irate(mysql_wsrep_flow_control_recv{host=\"$host\"}[1m])",
  216. "format": "time_series",
  217. "intervalFactor": 2,
  218. "legendFormat": "receive",
  219. "metric": "",
  220. "refId": "A",
  221. "step": 10
  222. },
  223. {
  224. "expr": "irate(mysql_wsrep_flow_control_sent{host=\"$host\"}[1m])",
  225. "format": "time_series",
  226. "intervalFactor": 2,
  227. "legendFormat": "send",
  228. "refId": "B",
  229. "step": 10
  230. }
  231. ],
  232. "thresholds": [],
  233. "timeFrom": null,
  234. "timeShift": null,
  235. "title": "Flow control",
  236. "tooltip": {
  237. "shared": true,
  238. "sort": 0,
  239. "value_type": "individual"
  240. },
  241. "type": "graph",
  242. "xaxis": {
  243. "buckets": null,
  244. "mode": "time",
  245. "name": null,
  246. "show": true,
  247. "values": []
  248. },
  249. "yaxes": [
  250. {
  251. "format": "ops",
  252. "label": null,
  253. "logBase": 1,
  254. "max": null,
  255. "min": "0",
  256. "show": true
  257. },
  258. {
  259. "format": "short",
  260. "label": null,
  261. "logBase": 1,
  262. "max": null,
  263. "min": null,
  264. "show": true
  265. }
  266. ]
  267. }
  268. ],
  269. "repeat": null,
  270. "repeatIteration": null,
  271. "repeatRowId": null,
  272. "showTitle": true,
  273. "title": "Replication",
  274. "titleSize": "h6"
  275. },
  276. {
  277. "collapse": false,
  278. "height": "250px",
  279. "panels": [
  280. {
  281. "aliasColors": {},
  282. "bars": false,
  283. "dashLength": 10,
  284. "dashes": false,
  285. "datasource": null,
  286. "fill": 0,
  287. "id": 26,
  288. "legend": {
  289. "avg": false,
  290. "current": false,
  291. "max": false,
  292. "min": false,
  293. "show": true,
  294. "total": false,
  295. "values": false
  296. },
  297. "lines": true,
  298. "linewidth": 1,
  299. "links": [],
  300. "nullPointMode": "null",
  301. "percentage": false,
  302. "pointradius": 5,
  303. "points": false,
  304. "renderer": "flot",
  305. "seriesOverrides": [],
  306. "spaceLength": 10,
  307. "span": 6,
  308. "stack": false,
  309. "steppedLine": false,
  310. "targets": [
  311. {
  312. "expr": "irate(mysql_bytes_received{host=\"$host\"}[1m])",
  313. "format": "time_series",
  314. "interval": "",
  315. "intervalFactor": 2,
  316. "legendFormat": "rx",
  317. "metric": "",
  318. "refId": "A",
  319. "step": 10
  320. },
  321. {
  322. "expr": "irate(mysql_bytes_sent{host=\"$host\"}[1m])",
  323. "format": "time_series",
  324. "interval": "",
  325. "intervalFactor": 2,
  326. "legendFormat": "tx",
  327. "metric": "",
  328. "refId": "B",
  329. "step": 10
  330. }
  331. ],
  332. "thresholds": [],
  333. "timeFrom": null,
  334. "timeShift": null,
  335. "title": "Network I/O",
  336. "tooltip": {
  337. "shared": true,
  338. "sort": 0,
  339. "value_type": "individual"
  340. },
  341. "type": "graph",
  342. "xaxis": {
  343. "buckets": null,
  344. "mode": "time",
  345. "name": null,
  346. "show": true,
  347. "values": []
  348. },
  349. "yaxes": [
  350. {
  351. "format": "Bps",
  352. "label": "",
  353. "logBase": 1,
  354. "max": null,
  355. "min": "0",
  356. "show": true
  357. },
  358. {
  359. "format": "short",
  360. "label": null,
  361. "logBase": 1,
  362. "max": null,
  363. "min": null,
  364. "show": true
  365. }
  366. ]
  367. },
  368. {
  369. "aliasColors": {},
  370. "bars": false,
  371. "dashLength": 10,
  372. "dashes": false,
  373. "datasource": null,
  374. "fill": 0,
  375. "id": 27,
  376. "legend": {
  377. "avg": false,
  378. "current": false,
  379. "max": false,
  380. "min": false,
  381. "show": true,
  382. "total": false,
  383. "values": false
  384. },
  385. "lines": true,
  386. "linewidth": 1,
  387. "links": [],
  388. "nullPointMode": "null",
  389. "percentage": false,
  390. "pointradius": 5,
  391. "points": false,
  392. "renderer": "flot",
  393. "seriesOverrides": [],
  394. "spaceLength": 10,
  395. "span": 6,
  396. "stack": false,
  397. "steppedLine": false,
  398. "targets": [
  399. {
  400. "expr": "irate(mysql_table_locks_immediate{host=\"$host\"}[1m])",
  401. "format": "time_series",
  402. "intervalFactor": 2,
  403. "legendFormat": "immediate",
  404. "refId": "A",
  405. "step": 10
  406. },
  407. {
  408. "expr": "irate(mysql_table_locks_waited{host=\"$host\"}[1m])",
  409. "format": "time_series",
  410. "intervalFactor": 2,
  411. "legendFormat": "waited",
  412. "refId": "B",
  413. "step": 10
  414. }
  415. ],
  416. "thresholds": [],
  417. "timeFrom": null,
  418. "timeShift": null,
  419. "title": "Locks",
  420. "tooltip": {
  421. "shared": true,
  422. "sort": 0,
  423. "value_type": "individual"
  424. },
  425. "type": "graph",
  426. "xaxis": {
  427. "buckets": null,
  428. "mode": "time",
  429. "name": null,
  430. "show": true,
  431. "values": []
  432. },
  433. "yaxes": [
  434. {
  435. "format": "ops",
  436. "label": null,
  437. "logBase": 1,
  438. "max": null,
  439. "min": "0",
  440. "show": true
  441. },
  442. {
  443. "format": "short",
  444. "label": null,
  445. "logBase": 1,
  446. "max": null,
  447. "min": null,
  448. "show": true
  449. }
  450. ]
  451. },
  452. {
  453. "aliasColors": {},
  454. "bars": false,
  455. "dashLength": 10,
  456. "dashes": false,
  457. "datasource": null,
  458. "fill": 0,
  459. "id": 28,
  460. "legend": {
  461. "avg": false,
  462. "current": false,
  463. "max": false,
  464. "min": false,
  465. "show": true,
  466. "total": false,
  467. "values": false
  468. },
  469. "lines": true,
  470. "linewidth": 1,
  471. "links": [],
  472. "nullPointMode": "null",
  473. "percentage": false,
  474. "pointradius": 5,
  475. "points": false,
  476. "renderer": "flot",
  477. "seriesOverrides": [],
  478. "spaceLength": 10,
  479. "span": 6,
  480. "stack": false,
  481. "steppedLine": false,
  482. "targets": [
  483. {
  484. "expr": "mysql_threads_cached{host=\"$host\"}",
  485. "format": "time_series",
  486. "intervalFactor": 2,
  487. "legendFormat": "cached",
  488. "refId": "A",
  489. "step": 10
  490. },
  491. {
  492. "expr": "mysql_threads_connected{host=\"$host\"}",
  493. "format": "time_series",
  494. "intervalFactor": 2,
  495. "legendFormat": "connected",
  496. "refId": "B",
  497. "step": 10
  498. },
  499. {
  500. "expr": "mysql_threads_running{host=\"$host\"}",
  501. "format": "time_series",
  502. "intervalFactor": 2,
  503. "legendFormat": "running",
  504. "refId": "D",
  505. "step": 10
  506. }
  507. ],
  508. "thresholds": [],
  509. "timeFrom": null,
  510. "timeShift": null,
  511. "title": "Threads",
  512. "tooltip": {
  513. "shared": true,
  514. "sort": 0,
  515. "value_type": "individual"
  516. },
  517. "type": "graph",
  518. "xaxis": {
  519. "buckets": null,
  520. "mode": "time",
  521. "name": null,
  522. "show": true,
  523. "values": []
  524. },
  525. "yaxes": [
  526. {
  527. "format": "short",
  528. "label": null,
  529. "logBase": 1,
  530. "max": null,
  531. "min": "0",
  532. "show": true
  533. },
  534. {
  535. "format": "short",
  536. "label": null,
  537. "logBase": 1,
  538. "max": null,
  539. "min": null,
  540. "show": true
  541. }
  542. ]
  543. },
  544. {
  545. "aliasColors": {},
  546. "bars": false,
  547. "dashLength": 10,
  548. "dashes": false,
  549. "datasource": null,
  550. "fill": 1,
  551. "id": 34,
  552. "legend": {
  553. "avg": false,
  554. "current": false,
  555. "max": false,
  556. "min": false,
  557. "show": true,
  558. "total": false,
  559. "values": false
  560. },
  561. "lines": true,
  562. "linewidth": 1,
  563. "links": [],
  564. "nullPointMode": "null",
  565. "percentage": false,
  566. "pointradius": 5,
  567. "points": false,
  568. "renderer": "flot",
  569. "seriesOverrides": [],
  570. "spaceLength": 10,
  571. "span": 6,
  572. "stack": false,
  573. "steppedLine": false,
  574. "targets": [
  575. {
  576. "expr": "irate(mysql_queries{host=\"$host\"}[1m])",
  577. "format": "time_series",
  578. "intervalFactor": 2,
  579. "legendFormat": "queries",
  580. "refId": "A",
  581. "step": 10
  582. },
  583. {
  584. "expr": "irate(mysql_questions{host=\"$host\"}[1m])",
  585. "format": "time_series",
  586. "intervalFactor": 2,
  587. "legendFormat": "questions",
  588. "refId": "B",
  589. "step": 10
  590. }
  591. ],
  592. "thresholds": [],
  593. "timeFrom": null,
  594. "timeShift": null,
  595. "title": "Queries",
  596. "tooltip": {
  597. "shared": true,
  598. "sort": 0,
  599. "value_type": "individual"
  600. },
  601. "type": "graph",
  602. "xaxis": {
  603. "buckets": null,
  604. "mode": "time",
  605. "name": null,
  606. "show": true,
  607. "values": []
  608. },
  609. "yaxes": [
  610. {
  611. "format": "ops",
  612. "label": null,
  613. "logBase": 1,
  614. "max": null,
  615. "min": "0",
  616. "show": true
  617. },
  618. {
  619. "format": "short",
  620. "label": "",
  621. "logBase": 1,
  622. "max": null,
  623. "min": null,
  624. "show": true
  625. }
  626. ]
  627. },
  628. {
  629. "aliasColors": {},
  630. "bars": false,
  631. "dashLength": 10,
  632. "dashes": false,
  633. "datasource": null,
  634. "fill": 0,
  635. "id": 29,
  636. "legend": {
  637. "avg": false,
  638. "current": false,
  639. "max": false,
  640. "min": false,
  641. "show": true,
  642. "total": false,
  643. "values": false
  644. },
  645. "lines": true,
  646. "linewidth": 1,
  647. "links": [],
  648. "nullPointMode": "null",
  649. "percentage": false,
  650. "pointradius": 5,
  651. "points": false,
  652. "renderer": "flot",
  653. "seriesOverrides": [],
  654. "spaceLength": 10,
  655. "span": 6,
  656. "stack": false,
  657. "steppedLine": false,
  658. "targets": [
  659. {
  660. "expr": "irate(mysql_commands_commit{host=\"$host\"}[1m])",
  661. "format": "time_series",
  662. "intervalFactor": 2,
  663. "legendFormat": "commit",
  664. "refId": "A",
  665. "step": 10
  666. },
  667. {
  668. "expr": "irate(mysql_commands_delete{host=\"$host\"}[1m])",
  669. "format": "time_series",
  670. "intervalFactor": 2,
  671. "legendFormat": "delete",
  672. "refId": "B",
  673. "step": 10
  674. },
  675. {
  676. "expr": "irate(mysql_commands_insert{host=\"$host\"}[1m])",
  677. "format": "time_series",
  678. "intervalFactor": 2,
  679. "legendFormat": "insert",
  680. "refId": "C",
  681. "step": 10
  682. },
  683. {
  684. "expr": "irate(mysql_commands_select{host=\"$host\"}[1m])",
  685. "format": "time_series",
  686. "intervalFactor": 2,
  687. "legendFormat": "select",
  688. "refId": "D",
  689. "step": 10
  690. },
  691. {
  692. "expr": "irate(mysql_commands_rollback{host=\"$host\"}[1m])",
  693. "format": "time_series",
  694. "intervalFactor": 2,
  695. "legendFormat": "rollback",
  696. "refId": "E",
  697. "step": 10
  698. },
  699. {
  700. "expr": "irate(mysql_commands_update{host=\"$host\"}[1m])",
  701. "format": "time_series",
  702. "intervalFactor": 2,
  703. "legendFormat": "update",
  704. "refId": "F",
  705. "step": 10
  706. }
  707. ],
  708. "thresholds": [],
  709. "timeFrom": null,
  710. "timeShift": null,
  711. "title": "Commands",
  712. "tooltip": {
  713. "shared": true,
  714. "sort": 0,
  715. "value_type": "individual"
  716. },
  717. "type": "graph",
  718. "xaxis": {
  719. "buckets": null,
  720. "mode": "time",
  721. "name": null,
  722. "show": true,
  723. "values": []
  724. },
  725. "yaxes": [
  726. {
  727. "format": "ops",
  728. "label": null,
  729. "logBase": 1,
  730. "max": null,
  731. "min": "0",
  732. "show": true
  733. },
  734. {
  735. "format": "short",
  736. "label": null,
  737. "logBase": 1,
  738. "max": null,
  739. "min": null,
  740. "show": true
  741. }
  742. ]
  743. },
  744. {
  745. "aliasColors": {},
  746. "bars": false,
  747. "dashLength": 10,
  748. "dashes": false,
  749. "datasource": null,
  750. "fill": 0,
  751. "id": 30,
  752. "legend": {
  753. "avg": false,
  754. "current": false,
  755. "max": false,
  756. "min": false,
  757. "show": true,
  758. "total": false,
  759. "values": false
  760. },
  761. "lines": true,
  762. "linewidth": 1,
  763. "links": [],
  764. "nullPointMode": "null",
  765. "percentage": false,
  766. "pointradius": 5,
  767. "points": false,
  768. "renderer": "flot",
  769. "seriesOverrides": [],
  770. "spaceLength": 10,
  771. "span": 6,
  772. "stack": false,
  773. "steppedLine": false,
  774. "targets": [
  775. {
  776. "expr": "irate(mysql_handler_commit{host=\"$host\"}[1m])",
  777. "format": "time_series",
  778. "intervalFactor": 2,
  779. "legendFormat": "commit",
  780. "refId": "A",
  781. "step": 10
  782. },
  783. {
  784. "expr": "irate(mysql_handler_delete{host=\"$host\"}[1m])",
  785. "format": "time_series",
  786. "intervalFactor": 2,
  787. "legendFormat": "delete",
  788. "refId": "B",
  789. "step": 10
  790. },
  791. {
  792. "expr": "irate(mysql_handler_write{host=\"$host\"}[1m])",
  793. "format": "time_series",
  794. "intervalFactor": 2,
  795. "legendFormat": "write",
  796. "refId": "C",
  797. "step": 10
  798. },
  799. {
  800. "expr": "irate(mysql_handler_rollback{host=\"$host\"}[1m])",
  801. "format": "time_series",
  802. "intervalFactor": 2,
  803. "legendFormat": "rollback",
  804. "refId": "E",
  805. "step": 10
  806. },
  807. {
  808. "expr": "irate(mysql_handler_update{host=\"$host\"}[1m])",
  809. "format": "time_series",
  810. "intervalFactor": 2,
  811. "legendFormat": "update",
  812. "refId": "F",
  813. "step": 10
  814. }
  815. ],
  816. "thresholds": [],
  817. "timeFrom": null,
  818. "timeShift": null,
  819. "title": "Handlers",
  820. "tooltip": {
  821. "shared": true,
  822. "sort": 0,
  823. "value_type": "individual"
  824. },
  825. "type": "graph",
  826. "xaxis": {
  827. "buckets": null,
  828. "mode": "time",
  829. "name": null,
  830. "show": true,
  831. "values": []
  832. },
  833. "yaxes": [
  834. {
  835. "format": "ops",
  836. "label": null,
  837. "logBase": 1,
  838. "max": null,
  839. "min": "0",
  840. "show": true
  841. },
  842. {
  843. "format": "short",
  844. "label": null,
  845. "logBase": 1,
  846. "max": null,
  847. "min": null,
  848. "show": true
  849. }
  850. ]
  851. }
  852. ],
  853. "repeat": null,
  854. "repeatIteration": null,
  855. "repeatRowId": null,
  856. "showTitle": true,
  857. "title": "MySQL",
  858. "titleSize": "h6"
  859. }
  860. ],
  861. "schemaVersion": 14,
  862. "sharedCrosshair": true,
  863. "style": "dark",
  864. "tags": [],
  865. "templating": {
  866. "enable": true,
  867. "list": [
  868. {
  869. "allFormat": "glob",
  870. "allValue": null,
  871. "current": {},
  872. "datasource": "prometheus",
  873. "hide": 0,
  874. "includeAll": false,
  875. "label": null,
  876. "multi": false,
  877. "name": "host",
  878. "options": [],
  879. "query": "label_values(mysql_connections,host)",
  880. "refresh": 1,
  881. "refresh_on_load": true,
  882. "regex": "",
  883. "sort": 1,
  884. "tagValuesQuery": "",
  885. "tags": [],
  886. "tagsQuery": "",
  887. "type": "query",
  888. "useTags": false
  889. }
  890. ]
  891. },
  892. "time": {
  893. "from": "now-1h",
  894. "to": "now"
  895. },
  896. "timepicker": {
  897. "collapse": false,
  898. "enable": true,
  899. "notice": false,
  900. "now": true,
  901. "refresh_intervals": [
  902. "5s",
  903. "10s",
  904. "30s",
  905. "1m",
  906. "5m",
  907. "15m",
  908. "30m",
  909. "1h",
  910. "2h",
  911. "1d"
  912. ],
  913. "status": "Stable",
  914. "time_options": [
  915. "5m",
  916. "15m",
  917. "1h",
  918. "6h",
  919. "12h",
  920. "24h",
  921. "2d",
  922. "7d",
  923. "30d"
  924. ],
  925. "type": "timepicker"
  926. },
  927. "timezone": "browser",
  928. "title": "MySQL",
  929. "version": 33
  930. }