PXC_Galera_Graphs.json 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798
  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": false,
  56. "colorValue": true,
  57. "colors": [
  58. "rgba(245, 54, 54, 0.9)",
  59. "rgba(237, 129, 40, 0.89)",
  60. "rgba(50, 172, 45, 0.97)"
  61. ],
  62. "datasource": "Prometheus",
  63. "decimals": 0,
  64. "editable": true,
  65. "error": false,
  66. "format": "none",
  67. "gauge": {
  68. "maxValue": 100,
  69. "minValue": 0,
  70. "show": false,
  71. "thresholdLabels": false,
  72. "thresholdMarkers": true
  73. },
  74. "height": "125px",
  75. "hideTimeOverride": true,
  76. "id": 50,
  77. "interval": "$interval",
  78. "links": [],
  79. "mappingType": 1,
  80. "mappingTypes": [
  81. {
  82. "name": "value to text",
  83. "value": 1
  84. },
  85. {
  86. "name": "range to text",
  87. "value": 2
  88. }
  89. ],
  90. "maxDataPoints": 100,
  91. "nullPointMode": "connected",
  92. "nullText": null,
  93. "postfix": "",
  94. "postfixFontSize": "50%",
  95. "prefix": "",
  96. "prefixFontSize": "80%",
  97. "rangeMaps": [
  98. {
  99. "from": "null",
  100. "text": "N/A",
  101. "to": "null"
  102. }
  103. ],
  104. "span": 2,
  105. "sparkline": {
  106. "fillColor": "rgba(31, 118, 189, 0.18)",
  107. "full": false,
  108. "lineColor": "rgb(31, 120, 193)",
  109. "show": false
  110. },
  111. "targets": [
  112. {
  113. "calculatedInterval": "10m",
  114. "datasourceErrors": {},
  115. "errors": {},
  116. "expr": "mysql_global_status_wsrep_ready{instance=\"$host\"}",
  117. "interval": "5m",
  118. "intervalFactor": 1,
  119. "legendFormat": "",
  120. "metric": "",
  121. "refId": "A",
  122. "step": 300
  123. }
  124. ],
  125. "thresholds": "0.5,1",
  126. "timeFrom": "1m",
  127. "timeShift": "1m",
  128. "title": "Ready to Accept Queries",
  129. "transparent": false,
  130. "type": "singlestat",
  131. "valueFontSize": "80%",
  132. "valueMaps": [
  133. {
  134. "op": "=",
  135. "text": "ON",
  136. "value": "1"
  137. },
  138. {
  139. "op": "=",
  140. "text": "OFF",
  141. "value": "0"
  142. }
  143. ],
  144. "valueName": "current"
  145. },
  146. {
  147. "cacheTimeout": null,
  148. "colorBackground": false,
  149. "colorValue": true,
  150. "colors": [
  151. "rgba(245, 54, 54, 0.9)",
  152. "rgba(237, 129, 40, 0.89)",
  153. "rgba(50, 172, 45, 0.97)"
  154. ],
  155. "datasource": "Prometheus",
  156. "decimals": 0,
  157. "editable": true,
  158. "error": false,
  159. "format": "none",
  160. "gauge": {
  161. "maxValue": 100,
  162. "minValue": 0,
  163. "show": false,
  164. "thresholdLabels": false,
  165. "thresholdMarkers": true
  166. },
  167. "height": "125px",
  168. "hideTimeOverride": true,
  169. "id": 49,
  170. "interval": "$interval",
  171. "links": [],
  172. "mappingType": 1,
  173. "mappingTypes": [
  174. {
  175. "name": "value to text",
  176. "value": 1
  177. },
  178. {
  179. "name": "range to text",
  180. "value": 2
  181. }
  182. ],
  183. "maxDataPoints": 100,
  184. "nullPointMode": "connected",
  185. "nullText": null,
  186. "postfix": "",
  187. "postfixFontSize": "50%",
  188. "prefix": "",
  189. "prefixFontSize": "80%",
  190. "rangeMaps": [
  191. {
  192. "from": "null",
  193. "text": "N/A",
  194. "to": "null"
  195. }
  196. ],
  197. "span": 3,
  198. "sparkline": {
  199. "fillColor": "rgba(31, 118, 189, 0.18)",
  200. "full": false,
  201. "lineColor": "rgb(31, 120, 193)",
  202. "show": false
  203. },
  204. "targets": [
  205. {
  206. "calculatedInterval": "10m",
  207. "datasourceErrors": {},
  208. "errors": {},
  209. "expr": "mysql_global_status_wsrep_local_state{instance=\"$host\"}",
  210. "interval": "5m",
  211. "intervalFactor": 1,
  212. "legendFormat": "",
  213. "metric": "",
  214. "refId": "A",
  215. "step": 300
  216. }
  217. ],
  218. "thresholds": "2,4",
  219. "timeFrom": "1m",
  220. "timeShift": "1m",
  221. "title": "Local State",
  222. "transparent": false,
  223. "type": "singlestat",
  224. "valueFontSize": "80%",
  225. "valueMaps": [
  226. {
  227. "op": "=",
  228. "text": "Joining",
  229. "value": "1"
  230. },
  231. {
  232. "op": "=",
  233. "text": "Donor/Desynced",
  234. "value": "2"
  235. },
  236. {
  237. "op": "=",
  238. "text": "Joined",
  239. "value": "3"
  240. },
  241. {
  242. "op": "=",
  243. "text": "Synced",
  244. "value": "4"
  245. }
  246. ],
  247. "valueName": "current"
  248. },
  249. {
  250. "cacheTimeout": null,
  251. "colorBackground": false,
  252. "colorValue": true,
  253. "colors": [
  254. "rgba(50, 172, 45, 0.97)",
  255. "rgba(237, 129, 40, 0.89)",
  256. "rgba(245, 54, 54, 0.9)"
  257. ],
  258. "datasource": "Prometheus",
  259. "decimals": 0,
  260. "editable": true,
  261. "error": false,
  262. "format": "none",
  263. "gauge": {
  264. "maxValue": 100,
  265. "minValue": 0,
  266. "show": false,
  267. "thresholdLabels": false,
  268. "thresholdMarkers": true
  269. },
  270. "height": "125px",
  271. "hideTimeOverride": true,
  272. "id": 53,
  273. "interval": "$interval",
  274. "links": [],
  275. "mappingType": 1,
  276. "mappingTypes": [
  277. {
  278. "name": "value to text",
  279. "value": 1
  280. },
  281. {
  282. "name": "range to text",
  283. "value": 2
  284. }
  285. ],
  286. "maxDataPoints": 100,
  287. "nullPointMode": "connected",
  288. "nullText": null,
  289. "postfix": "",
  290. "postfixFontSize": "50%",
  291. "prefix": "",
  292. "prefixFontSize": "80%",
  293. "rangeMaps": [
  294. {
  295. "from": "null",
  296. "text": "N/A",
  297. "to": "null"
  298. }
  299. ],
  300. "span": 2,
  301. "sparkline": {
  302. "fillColor": "rgba(31, 118, 189, 0.18)",
  303. "full": false,
  304. "lineColor": "rgb(31, 120, 193)",
  305. "show": false
  306. },
  307. "targets": [
  308. {
  309. "calculatedInterval": "10m",
  310. "datasourceErrors": {},
  311. "errors": {},
  312. "expr": "mysql_global_variables_wsrep_desync{instance=\"$host\"}",
  313. "interval": "5m",
  314. "intervalFactor": 1,
  315. "legendFormat": "",
  316. "metric": "",
  317. "refId": "A",
  318. "step": 300
  319. }
  320. ],
  321. "thresholds": "0.5,1",
  322. "timeFrom": "1m",
  323. "timeShift": "1m",
  324. "title": "Desync Mode",
  325. "transparent": false,
  326. "type": "singlestat",
  327. "valueFontSize": "80%",
  328. "valueMaps": [
  329. {
  330. "op": "=",
  331. "text": "ON",
  332. "value": "1"
  333. },
  334. {
  335. "op": "=",
  336. "text": "OFF",
  337. "value": "0"
  338. }
  339. ],
  340. "valueName": "current"
  341. },
  342. {
  343. "cacheTimeout": null,
  344. "colorBackground": false,
  345. "colorValue": true,
  346. "colors": [
  347. "rgba(245, 54, 54, 0.9)",
  348. "rgba(237, 129, 40, 0.89)",
  349. "rgba(50, 172, 45, 0.97)"
  350. ],
  351. "datasource": "Prometheus",
  352. "decimals": 0,
  353. "editable": true,
  354. "error": false,
  355. "format": "none",
  356. "gauge": {
  357. "maxValue": 100,
  358. "minValue": 0,
  359. "show": false,
  360. "thresholdLabels": false,
  361. "thresholdMarkers": true
  362. },
  363. "height": "125px",
  364. "hideTimeOverride": true,
  365. "id": 51,
  366. "interval": "$interval",
  367. "links": [],
  368. "mappingType": 1,
  369. "mappingTypes": [
  370. {
  371. "name": "value to text",
  372. "value": 1
  373. },
  374. {
  375. "name": "range to text",
  376. "value": 2
  377. }
  378. ],
  379. "maxDataPoints": 100,
  380. "nullPointMode": "connected",
  381. "nullText": null,
  382. "postfix": "",
  383. "postfixFontSize": "50%",
  384. "prefix": "",
  385. "prefixFontSize": "80%",
  386. "rangeMaps": [
  387. {
  388. "from": "null",
  389. "text": "N/A",
  390. "to": "null"
  391. }
  392. ],
  393. "span": 3,
  394. "sparkline": {
  395. "fillColor": "rgba(31, 118, 189, 0.18)",
  396. "full": false,
  397. "lineColor": "rgb(31, 120, 193)",
  398. "show": false
  399. },
  400. "targets": [
  401. {
  402. "calculatedInterval": "10m",
  403. "datasourceErrors": {},
  404. "errors": {},
  405. "expr": "mysql_global_status_wsrep_cluster_status{instance=\"$host\"}",
  406. "interval": "5m",
  407. "intervalFactor": 1,
  408. "legendFormat": "",
  409. "metric": "",
  410. "refId": "A",
  411. "step": 300
  412. }
  413. ],
  414. "thresholds": "0.5,1",
  415. "timeFrom": "1m",
  416. "timeShift": "1m",
  417. "title": "Cluster Status",
  418. "transparent": false,
  419. "type": "singlestat",
  420. "valueFontSize": "80%",
  421. "valueMaps": [
  422. {
  423. "op": "=",
  424. "text": "Primary",
  425. "value": "1"
  426. },
  427. {
  428. "op": "=",
  429. "text": "Non-primary",
  430. "value": "0"
  431. }
  432. ],
  433. "valueName": "current"
  434. },
  435. {
  436. "cacheTimeout": null,
  437. "colorBackground": false,
  438. "colorValue": false,
  439. "colors": [
  440. "rgba(50, 172, 45, 0.97)",
  441. "rgba(237, 129, 40, 0.89)",
  442. "rgba(245, 54, 54, 0.9)"
  443. ],
  444. "datasource": "Prometheus",
  445. "decimals": 0,
  446. "editable": true,
  447. "error": false,
  448. "format": "bytes",
  449. "gauge": {
  450. "maxValue": 100,
  451. "minValue": 0,
  452. "show": false,
  453. "thresholdLabels": false,
  454. "thresholdMarkers": true
  455. },
  456. "height": "125px",
  457. "id": 48,
  458. "interval": "$interval",
  459. "links": [],
  460. "mappingType": 1,
  461. "mappingTypes": [
  462. {
  463. "name": "value to text",
  464. "value": 1
  465. },
  466. {
  467. "name": "range to text",
  468. "value": 2
  469. }
  470. ],
  471. "maxDataPoints": 100,
  472. "nullPointMode": "connected",
  473. "nullText": null,
  474. "postfix": "",
  475. "postfixFontSize": "50%",
  476. "prefix": "",
  477. "prefixFontSize": "80%",
  478. "rangeMaps": [
  479. {
  480. "from": "null",
  481. "text": "N/A",
  482. "to": "null"
  483. }
  484. ],
  485. "span": 2,
  486. "sparkline": {
  487. "fillColor": "rgba(31, 118, 189, 0.18)",
  488. "full": false,
  489. "lineColor": "rgb(31, 120, 193)",
  490. "show": false
  491. },
  492. "targets": [
  493. {
  494. "calculatedInterval": "10m",
  495. "datasourceErrors": {},
  496. "errors": {},
  497. "expr": "mysql_galera_gcache_size_bytes{instance=\"$host\"}",
  498. "interval": "5m",
  499. "intervalFactor": 1,
  500. "legendFormat": "",
  501. "metric": "",
  502. "refId": "A",
  503. "step": 300
  504. }
  505. ],
  506. "thresholds": "90,95",
  507. "title": "gcache size",
  508. "transparent": false,
  509. "type": "singlestat",
  510. "valueFontSize": "80%",
  511. "valueMaps": [],
  512. "valueName": "current"
  513. }
  514. ],
  515. "repeat": null,
  516. "repeatIteration": null,
  517. "repeatRowId": null,
  518. "showTitle": false,
  519. "title": "New row",
  520. "titleSize": "h6"
  521. },
  522. {
  523. "collapse": false,
  524. "height": "270px",
  525. "panels": [
  526. {
  527. "aliasColors": {},
  528. "bars": true,
  529. "dashLength": 10,
  530. "dashes": false,
  531. "datasource": "Prometheus",
  532. "decimals": 0,
  533. "description": "Shows figures for the replication latency on group communication. It measures latency from the time point when a message is sent out to the time point when a message is received. As replication is a group operation, this essentially gives you the slowest ACK and longest RTT in the cluster.",
  534. "editable": true,
  535. "error": false,
  536. "fill": 0,
  537. "grid": {},
  538. "id": 42,
  539. "legend": {
  540. "alignAsTable": true,
  541. "avg": true,
  542. "current": false,
  543. "hideZero": true,
  544. "max": true,
  545. "min": true,
  546. "rightSide": true,
  547. "show": true,
  548. "total": false,
  549. "values": true
  550. },
  551. "lines": false,
  552. "linewidth": 2,
  553. "links": [
  554. {
  555. "title": "Galera Documentation",
  556. "type": "absolute",
  557. "url": "http://galeracluster.com/documentation-webpages/galerastatusvariables.html#wsrep-evs-repl-latency"
  558. }
  559. ],
  560. "nullPointMode": "null",
  561. "percentage": false,
  562. "pointradius": 5,
  563. "points": false,
  564. "renderer": "flot",
  565. "seriesOverrides": [],
  566. "spaceLength": 10,
  567. "span": 12,
  568. "stack": false,
  569. "steppedLine": false,
  570. "targets": [
  571. {
  572. "expr": "mysql_global_status_wsrep_evs_repl_latency{instance=\"$host\", aggregator=\"Maximum\"}",
  573. "format": "time_series",
  574. "interval": "$interval",
  575. "intervalFactor": 1,
  576. "legendFormat": "{{ aggregator }}",
  577. "refId": "A",
  578. "step": 300
  579. },
  580. {
  581. "expr": "mysql_global_status_wsrep_evs_repl_latency{instance=\"$host\", aggregator=\"Standard Deviation\"}",
  582. "format": "time_series",
  583. "interval": "$interval",
  584. "intervalFactor": 1,
  585. "legendFormat": "{{ aggregator }}",
  586. "refId": "B",
  587. "step": 300
  588. },
  589. {
  590. "expr": "mysql_global_status_wsrep_evs_repl_latency{instance=\"$host\", aggregator=\"Average\"}",
  591. "format": "time_series",
  592. "interval": "$interval",
  593. "intervalFactor": 1,
  594. "legendFormat": "{{ aggregator }}",
  595. "refId": "C",
  596. "step": 300
  597. },
  598. {
  599. "expr": "mysql_global_status_wsrep_evs_repl_latency{instance=\"$host\", aggregator=\"Minimum\"}",
  600. "format": "time_series",
  601. "interval": "$interval",
  602. "intervalFactor": 1,
  603. "legendFormat": "{{ aggregator }}",
  604. "refId": "D",
  605. "step": 300
  606. }
  607. ],
  608. "thresholds": [],
  609. "timeFrom": null,
  610. "timeShift": null,
  611. "title": "Galera Replication Latency",
  612. "tooltip": {
  613. "msResolution": false,
  614. "shared": true,
  615. "sort": 0,
  616. "value_type": "cumulative"
  617. },
  618. "type": "graph",
  619. "xaxis": {
  620. "buckets": null,
  621. "mode": "time",
  622. "name": null,
  623. "show": true,
  624. "values": []
  625. },
  626. "yaxes": [
  627. {
  628. "format": "s",
  629. "label": "",
  630. "logBase": 1,
  631. "max": null,
  632. "min": 0,
  633. "show": true
  634. },
  635. {
  636. "format": "short",
  637. "label": "",
  638. "logBase": 1,
  639. "max": null,
  640. "min": 0,
  641. "show": false
  642. }
  643. ]
  644. },
  645. {
  646. "aliasColors": {},
  647. "bars": false,
  648. "datasource": "Prometheus",
  649. "decimals": null,
  650. "editable": true,
  651. "error": false,
  652. "fill": 2,
  653. "grid": {},
  654. "id": 39,
  655. "legend": {
  656. "alignAsTable": true,
  657. "avg": true,
  658. "current": false,
  659. "max": true,
  660. "min": true,
  661. "show": true,
  662. "total": false,
  663. "values": true
  664. },
  665. "lines": true,
  666. "linewidth": 2,
  667. "links": [],
  668. "nullPointMode": "null",
  669. "percentage": false,
  670. "pointradius": 5,
  671. "points": false,
  672. "renderer": "flot",
  673. "seriesOverrides": [],
  674. "span": 6,
  675. "stack": false,
  676. "steppedLine": false,
  677. "targets": [
  678. {
  679. "calculatedInterval": "2m",
  680. "datasourceErrors": {},
  681. "errors": {},
  682. "expr": "mysql_global_status_wsrep_local_recv_queue{instance=\"$host\"}",
  683. "interval": "$interval",
  684. "intervalFactor": 1,
  685. "legendFormat": "Receive Queue",
  686. "metric": "",
  687. "refId": "A",
  688. "step": 300
  689. },
  690. {
  691. "calculatedInterval": "2m",
  692. "datasourceErrors": {},
  693. "errors": {},
  694. "expr": "mysql_global_status_wsrep_local_send_queue{instance=\"$host\"}",
  695. "interval": "$interval",
  696. "intervalFactor": 1,
  697. "legendFormat": "Send Queue",
  698. "metric": "",
  699. "refId": "B",
  700. "step": 300,
  701. "target": ""
  702. }
  703. ],
  704. "thresholds": [],
  705. "timeFrom": null,
  706. "timeShift": null,
  707. "title": "Galera Replication Queues",
  708. "description": "Shows the length of receive and send queues.",
  709. "tooltip": {
  710. "msResolution": false,
  711. "shared": true,
  712. "sort": 0,
  713. "value_type": "cumulative"
  714. },
  715. "type": "graph",
  716. "xaxis": {
  717. "mode": "time",
  718. "name": null,
  719. "show": true,
  720. "values": []
  721. },
  722. "yaxes": [
  723. {
  724. "format": "short",
  725. "logBase": 1,
  726. "max": null,
  727. "min": 0,
  728. "show": true
  729. },
  730. {
  731. "format": "short",
  732. "logBase": 1,
  733. "max": null,
  734. "min": 0,
  735. "show": true
  736. }
  737. ]
  738. },
  739. {
  740. "aliasColors": {},
  741. "bars": false,
  742. "datasource": "Prometheus",
  743. "decimals": 0,
  744. "editable": true,
  745. "error": false,
  746. "fill": 0,
  747. "grid": {},
  748. "id": 54,
  749. "legend": {
  750. "alignAsTable": true,
  751. "avg": true,
  752. "current": false,
  753. "max": true,
  754. "min": true,
  755. "show": true,
  756. "total": false,
  757. "values": true
  758. },
  759. "lines": true,
  760. "linewidth": 2,
  761. "links": [],
  762. "nullPointMode": "null",
  763. "percentage": false,
  764. "pointradius": 5,
  765. "points": false,
  766. "renderer": "flot",
  767. "seriesOverrides": [],
  768. "span": 6,
  769. "stack": false,
  770. "steppedLine": false,
  771. "targets": [
  772. {
  773. "calculatedInterval": "2m",
  774. "datasourceErrors": {},
  775. "errors": {},
  776. "expr": "mysql_global_status_wsrep_cluster_size{instance=\"$host\"}",
  777. "interval": "$interval",
  778. "intervalFactor": 1,
  779. "legendFormat": "Size",
  780. "metric": "",
  781. "refId": "C",
  782. "step": 300,
  783. "target": ""
  784. }
  785. ],
  786. "thresholds": [],
  787. "timeFrom": null,
  788. "timeShift": null,
  789. "title": "Galera Cluster Size",
  790. "description": "Shows the number of members currently connected to the cluster.",
  791. "tooltip": {
  792. "msResolution": false,
  793. "shared": true,
  794. "sort": 0,
  795. "value_type": "cumulative"
  796. },
  797. "type": "graph",
  798. "xaxis": {
  799. "mode": "time",
  800. "name": null,
  801. "show": true,
  802. "values": []
  803. },
  804. "yaxes": [
  805. {
  806. "format": "short",
  807. "logBase": 1,
  808. "max": null,
  809. "min": 0,
  810. "show": true
  811. },
  812. {
  813. "format": "short",
  814. "logBase": 1,
  815. "max": null,
  816. "min": 0,
  817. "show": true
  818. }
  819. ]
  820. }
  821. ],
  822. "repeat": null,
  823. "repeatIteration": null,
  824. "repeatRowId": null,
  825. "showTitle": false,
  826. "title": "Size/Queue",
  827. "titleSize": "h6"
  828. },
  829. {
  830. "collapse": false,
  831. "height": "250px",
  832. "panels": [
  833. {
  834. "aliasColors": {},
  835. "bars": false,
  836. "datasource": "Prometheus",
  837. "decimals": null,
  838. "editable": true,
  839. "error": false,
  840. "fill": 0,
  841. "grid": {},
  842. "id": 45,
  843. "legend": {
  844. "alignAsTable": true,
  845. "avg": true,
  846. "current": false,
  847. "max": true,
  848. "min": true,
  849. "show": true,
  850. "total": false,
  851. "values": true
  852. },
  853. "lines": true,
  854. "linewidth": 2,
  855. "links": [],
  856. "nullPointMode": "null",
  857. "percentage": false,
  858. "pointradius": 5,
  859. "points": false,
  860. "renderer": "flot",
  861. "seriesOverrides": [
  862. {
  863. "alias": "Paused due to Flow Control",
  864. "linewidth": 1,
  865. "yaxis": 2
  866. }
  867. ],
  868. "span": 6,
  869. "stack": false,
  870. "steppedLine": false,
  871. "targets": [
  872. {
  873. "calculatedInterval": "2m",
  874. "datasourceErrors": {},
  875. "errors": {},
  876. "expr": "rate(mysql_global_status_wsrep_flow_control_recv{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_flow_control_recv{instance=\"$host\"}[5m])",
  877. "interval": "$interval",
  878. "intervalFactor": 1,
  879. "legendFormat": "FC Messages Received",
  880. "metric": "",
  881. "refId": "A",
  882. "step": 300
  883. },
  884. {
  885. "calculatedInterval": "2m",
  886. "datasourceErrors": {},
  887. "errors": {},
  888. "expr": "rate(mysql_global_status_wsrep_flow_control_sent{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_flow_control_sent{instance=\"$host\"}[5m])",
  889. "interval": "$interval",
  890. "intervalFactor": 1,
  891. "legendFormat": "FC Messages Sent",
  892. "metric": "",
  893. "refId": "B",
  894. "step": 300,
  895. "target": ""
  896. },
  897. {
  898. "calculatedInterval": "2m",
  899. "datasourceErrors": {},
  900. "errors": {},
  901. "expr": "(rate(mysql_global_status_wsrep_flow_control_paused_ns{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_flow_control_paused_ns{instance=\"$host\"}[5m]))/1000000000",
  902. "interval": "$interval",
  903. "intervalFactor": 1,
  904. "legendFormat": "Paused due to Flow Control",
  905. "metric": "",
  906. "refId": "C",
  907. "step": 300,
  908. "target": ""
  909. }
  910. ],
  911. "thresholds": [],
  912. "timeFrom": null,
  913. "timeShift": null,
  914. "title": "Galera Flow Control",
  915. "description": "Shows the number of FC_PAUSE events sent/received. They are sent by a node when its replication queue gets too full. If a node is sending out FC messages it indicates a problem.",
  916. "tooltip": {
  917. "msResolution": false,
  918. "shared": true,
  919. "sort": 0,
  920. "value_type": "cumulative"
  921. },
  922. "type": "graph",
  923. "xaxis": {
  924. "mode": "time",
  925. "name": null,
  926. "show": true,
  927. "values": []
  928. },
  929. "yaxes": [
  930. {
  931. "format": "short",
  932. "logBase": 1,
  933. "max": null,
  934. "min": 0,
  935. "show": true
  936. },
  937. {
  938. "format": "percentunit",
  939. "logBase": 1,
  940. "max": 1,
  941. "min": 0,
  942. "show": true
  943. }
  944. ]
  945. },
  946. {
  947. "aliasColors": {},
  948. "bars": false,
  949. "datasource": "Prometheus",
  950. "decimals": null,
  951. "editable": true,
  952. "error": false,
  953. "fill": 0,
  954. "grid": {},
  955. "id": 40,
  956. "legend": {
  957. "alignAsTable": true,
  958. "avg": true,
  959. "current": false,
  960. "max": true,
  961. "min": true,
  962. "show": true,
  963. "total": false,
  964. "values": true
  965. },
  966. "lines": true,
  967. "linewidth": 2,
  968. "links": [],
  969. "nullPointMode": "null",
  970. "percentage": false,
  971. "pointradius": 5,
  972. "points": false,
  973. "renderer": "flot",
  974. "seriesOverrides": [],
  975. "span": 6,
  976. "stack": false,
  977. "steppedLine": false,
  978. "targets": [
  979. {
  980. "calculatedInterval": "2m",
  981. "datasourceErrors": {},
  982. "errors": {},
  983. "expr": "mysql_global_status_wsrep_apply_window{instance=\"$host\"}",
  984. "interval": "$interval",
  985. "intervalFactor": 1,
  986. "legendFormat": "Apply Window",
  987. "metric": "",
  988. "refId": "A",
  989. "step": 300
  990. },
  991. {
  992. "calculatedInterval": "2m",
  993. "datasourceErrors": {},
  994. "errors": {},
  995. "expr": "mysql_global_status_wsrep_commit_window{instance=\"$host\"}",
  996. "interval": "$interval",
  997. "intervalFactor": 1,
  998. "legendFormat": "Commit Window",
  999. "metric": "",
  1000. "refId": "B",
  1001. "step": 300,
  1002. "target": ""
  1003. },
  1004. {
  1005. "calculatedInterval": "2m",
  1006. "datasourceErrors": {},
  1007. "errors": {},
  1008. "expr": "mysql_global_status_wsrep_cert_deps_distance{instance=\"$host\"}",
  1009. "interval": "$interval",
  1010. "intervalFactor": 1,
  1011. "legendFormat": "Cert Deps Distance",
  1012. "metric": "",
  1013. "refId": "C",
  1014. "step": 300,
  1015. "target": ""
  1016. }
  1017. ],
  1018. "thresholds": [],
  1019. "timeFrom": null,
  1020. "timeShift": null,
  1021. "title": "Galera Parallelization Efficiency",
  1022. "description": "Shows the average distances between highest and lowest seqno that are concurrently applied, committed and can be possibly applied in parallel (potential degree of parallelization).",
  1023. "tooltip": {
  1024. "msResolution": false,
  1025. "shared": true,
  1026. "sort": 0,
  1027. "value_type": "cumulative"
  1028. },
  1029. "type": "graph",
  1030. "xaxis": {
  1031. "mode": "time",
  1032. "name": null,
  1033. "show": true,
  1034. "values": []
  1035. },
  1036. "yaxes": [
  1037. {
  1038. "format": "short",
  1039. "logBase": 1,
  1040. "max": null,
  1041. "min": 0,
  1042. "show": true
  1043. },
  1044. {
  1045. "format": "short",
  1046. "logBase": 1,
  1047. "max": null,
  1048. "min": 0,
  1049. "show": true
  1050. }
  1051. ]
  1052. }
  1053. ],
  1054. "repeat": null,
  1055. "repeatIteration": null,
  1056. "repeatRowId": null,
  1057. "showTitle": false,
  1058. "title": "Flow Control",
  1059. "titleSize": "h6"
  1060. },
  1061. {
  1062. "collapse": false,
  1063. "height": "250px",
  1064. "panels": [
  1065. {
  1066. "aliasColors": {},
  1067. "bars": false,
  1068. "datasource": "Prometheus",
  1069. "decimals": null,
  1070. "editable": true,
  1071. "error": false,
  1072. "fill": 2,
  1073. "grid": {},
  1074. "id": 41,
  1075. "legend": {
  1076. "alignAsTable": true,
  1077. "avg": true,
  1078. "current": false,
  1079. "max": true,
  1080. "min": true,
  1081. "show": true,
  1082. "total": false,
  1083. "values": true
  1084. },
  1085. "lines": true,
  1086. "linewidth": 2,
  1087. "links": [],
  1088. "nullPointMode": "null",
  1089. "percentage": false,
  1090. "pointradius": 5,
  1091. "points": false,
  1092. "renderer": "flot",
  1093. "seriesOverrides": [],
  1094. "span": 6,
  1095. "stack": false,
  1096. "steppedLine": false,
  1097. "targets": [
  1098. {
  1099. "calculatedInterval": "2m",
  1100. "datasourceErrors": {},
  1101. "errors": {},
  1102. "expr": "rate(mysql_global_status_wsrep_local_cert_failures{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_local_cert_failures{instance=\"$host\"}[5m])",
  1103. "interval": "$interval",
  1104. "intervalFactor": 1,
  1105. "legendFormat": "Local Cert Failures",
  1106. "metric": "",
  1107. "refId": "A",
  1108. "step": 300
  1109. },
  1110. {
  1111. "calculatedInterval": "2m",
  1112. "datasourceErrors": {},
  1113. "errors": {},
  1114. "expr": "rate(mysql_global_status_wsrep_local_bf_aborts{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_local_bf_aborts{instance=\"$host\"}[5m])",
  1115. "interval": "$interval",
  1116. "intervalFactor": 1,
  1117. "legendFormat": "Local Bf Aborts",
  1118. "metric": "",
  1119. "refId": "B",
  1120. "step": 300,
  1121. "target": ""
  1122. }
  1123. ],
  1124. "thresholds": [],
  1125. "timeFrom": null,
  1126. "timeShift": null,
  1127. "title": "Galera Writing Conflicts",
  1128. "description": "Shows the number of local transactions being committed on this node that failed certification (some other node had a commit that conflicted with ours) – client received deadlock error on commit and also the number of local transactions in flight on this node that were aborted because they locked something an applier thread needed – deadlock error anywhere in an open transaction. Spikes in the graph may indicate writing to the same table potentially the same rows from 2 nodes.",
  1129. "tooltip": {
  1130. "msResolution": false,
  1131. "shared": true,
  1132. "sort": 0,
  1133. "value_type": "cumulative"
  1134. },
  1135. "type": "graph",
  1136. "xaxis": {
  1137. "mode": "time",
  1138. "name": null,
  1139. "show": true,
  1140. "values": []
  1141. },
  1142. "yaxes": [
  1143. {
  1144. "format": "ops",
  1145. "logBase": 1,
  1146. "max": null,
  1147. "min": 0,
  1148. "show": true
  1149. },
  1150. {
  1151. "format": "ops",
  1152. "logBase": 1,
  1153. "max": null,
  1154. "min": 0,
  1155. "show": true
  1156. }
  1157. ]
  1158. },
  1159. {
  1160. "aliasColors": {},
  1161. "bars": false,
  1162. "datasource": "Prometheus",
  1163. "decimals": null,
  1164. "editable": true,
  1165. "error": false,
  1166. "fill": 2,
  1167. "grid": {},
  1168. "id": 47,
  1169. "legend": {
  1170. "alignAsTable": true,
  1171. "avg": true,
  1172. "current": false,
  1173. "max": true,
  1174. "min": true,
  1175. "show": true,
  1176. "total": false,
  1177. "values": true
  1178. },
  1179. "lines": true,
  1180. "linewidth": 2,
  1181. "links": [],
  1182. "nullPointMode": "null",
  1183. "percentage": false,
  1184. "pointradius": 5,
  1185. "points": false,
  1186. "renderer": "flot",
  1187. "seriesOverrides": [],
  1188. "span": 6,
  1189. "stack": false,
  1190. "steppedLine": false,
  1191. "targets": [
  1192. {
  1193. "calculatedInterval": "2m",
  1194. "datasourceErrors": {},
  1195. "errors": {},
  1196. "expr": "mysql_galera_gcache_size_bytes{instance=\"$host\"}/(rate(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[5m])+rate(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[5m])) * 300",
  1197. "interval": "5m",
  1198. "intervalFactor": 1,
  1199. "legendFormat": "Time (5m avg)",
  1200. "metric": "",
  1201. "refId": "A",
  1202. "step": 300
  1203. }
  1204. ],
  1205. "thresholds": [],
  1206. "timeFrom": null,
  1207. "timeShift": null,
  1208. "title": "Available Downtime before SST Required",
  1209. "description": "Shows for how long the node can be taken out of the cluster before SST is required. SST is a full state transfer method.",
  1210. "tooltip": {
  1211. "msResolution": false,
  1212. "shared": true,
  1213. "sort": 0,
  1214. "value_type": "cumulative"
  1215. },
  1216. "type": "graph",
  1217. "xaxis": {
  1218. "mode": "time",
  1219. "name": null,
  1220. "show": true,
  1221. "values": []
  1222. },
  1223. "yaxes": [
  1224. {
  1225. "format": "s",
  1226. "logBase": 1,
  1227. "max": null,
  1228. "min": 0,
  1229. "show": true
  1230. },
  1231. {
  1232. "format": "short",
  1233. "logBase": 1,
  1234. "max": null,
  1235. "min": 0,
  1236. "show": true
  1237. }
  1238. ]
  1239. }
  1240. ],
  1241. "repeat": null,
  1242. "repeatIteration": null,
  1243. "repeatRowId": null,
  1244. "showTitle": false,
  1245. "title": "Writing Conflicts",
  1246. "titleSize": "h6"
  1247. },
  1248. {
  1249. "collapse": false,
  1250. "height": "250px",
  1251. "panels": [
  1252. {
  1253. "aliasColors": {},
  1254. "bars": false,
  1255. "datasource": "Prometheus",
  1256. "decimals": null,
  1257. "editable": true,
  1258. "error": false,
  1259. "fill": 2,
  1260. "grid": {},
  1261. "id": 2,
  1262. "legend": {
  1263. "alignAsTable": true,
  1264. "avg": true,
  1265. "current": false,
  1266. "max": true,
  1267. "min": true,
  1268. "show": true,
  1269. "total": false,
  1270. "values": true
  1271. },
  1272. "lines": true,
  1273. "linewidth": 2,
  1274. "links": [],
  1275. "nullPointMode": "null",
  1276. "percentage": false,
  1277. "pointradius": 5,
  1278. "points": false,
  1279. "renderer": "flot",
  1280. "seriesOverrides": [],
  1281. "span": 6,
  1282. "stack": false,
  1283. "steppedLine": false,
  1284. "targets": [
  1285. {
  1286. "calculatedInterval": "2m",
  1287. "datasourceErrors": {},
  1288. "errors": {},
  1289. "expr": "rate(mysql_global_status_wsrep_received{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_received{instance=\"$host\"}[5m])",
  1290. "interval": "$interval",
  1291. "intervalFactor": 1,
  1292. "legendFormat": "Transactions Received",
  1293. "metric": "",
  1294. "refId": "A",
  1295. "step": 300
  1296. },
  1297. {
  1298. "calculatedInterval": "2m",
  1299. "datasourceErrors": {},
  1300. "errors": {},
  1301. "expr": "rate(mysql_global_status_wsrep_replicated{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_replicated{instance=\"$host\"}[5m])",
  1302. "interval": "$interval",
  1303. "intervalFactor": 1,
  1304. "legendFormat": "Transactions Replicated",
  1305. "metric": "",
  1306. "refId": "B",
  1307. "step": 300,
  1308. "target": ""
  1309. }
  1310. ],
  1311. "thresholds": [],
  1312. "timeFrom": null,
  1313. "timeShift": null,
  1314. "title": "Galera Writeset Count",
  1315. "description": "Shows the count of transactions received from the cluster (any other node) and replicated to the cluster (from this node).",
  1316. "tooltip": {
  1317. "msResolution": false,
  1318. "shared": true,
  1319. "sort": 0,
  1320. "value_type": "cumulative"
  1321. },
  1322. "type": "graph",
  1323. "xaxis": {
  1324. "mode": "time",
  1325. "name": null,
  1326. "show": true,
  1327. "values": []
  1328. },
  1329. "yaxes": [
  1330. {
  1331. "format": "short",
  1332. "logBase": 1,
  1333. "max": null,
  1334. "min": 0,
  1335. "show": true
  1336. },
  1337. {
  1338. "format": "short",
  1339. "logBase": 1,
  1340. "max": null,
  1341. "min": 0,
  1342. "show": true
  1343. }
  1344. ]
  1345. },
  1346. {
  1347. "aliasColors": {},
  1348. "bars": false,
  1349. "datasource": "Prometheus",
  1350. "decimals": null,
  1351. "editable": true,
  1352. "error": false,
  1353. "fill": 2,
  1354. "grid": {},
  1355. "id": 11,
  1356. "legend": {
  1357. "alignAsTable": true,
  1358. "avg": true,
  1359. "current": false,
  1360. "max": true,
  1361. "min": true,
  1362. "rightSide": false,
  1363. "show": true,
  1364. "total": false,
  1365. "values": true
  1366. },
  1367. "lines": true,
  1368. "linewidth": 2,
  1369. "links": [],
  1370. "nullPointMode": "null",
  1371. "percentage": false,
  1372. "pointradius": 5,
  1373. "points": false,
  1374. "renderer": "flot",
  1375. "seriesOverrides": [],
  1376. "span": 6,
  1377. "stack": false,
  1378. "steppedLine": false,
  1379. "targets": [
  1380. {
  1381. "calculatedInterval": "2m",
  1382. "datasourceErrors": {},
  1383. "errors": {},
  1384. "expr": "rate(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[$interval]) / rate(mysql_global_status_wsrep_received{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[5m]) / irate(mysql_global_status_wsrep_received{instance=\"$host\"}[5m])",
  1385. "interval": "$interval",
  1386. "intervalFactor": 1,
  1387. "legendFormat": "Incoming Transaction Size",
  1388. "metric": "",
  1389. "refId": "C",
  1390. "step": 300
  1391. },
  1392. {
  1393. "calculatedInterval": "2m",
  1394. "datasourceErrors": {},
  1395. "errors": {},
  1396. "expr": "rate(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[$interval]) / rate(mysql_global_status_wsrep_replicated{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[5m]) / irate(mysql_global_status_wsrep_replicated{instance=\"$host\"}[5m])",
  1397. "interval": "$interval",
  1398. "intervalFactor": 1,
  1399. "legendFormat": "Replicating Transaction Size",
  1400. "metric": "",
  1401. "refId": "A",
  1402. "step": 300
  1403. }
  1404. ],
  1405. "thresholds": [],
  1406. "timeFrom": null,
  1407. "timeShift": null,
  1408. "title": "Galera Writeset Size",
  1409. "description": "Shows the average transaction size received/replicated.",
  1410. "tooltip": {
  1411. "msResolution": false,
  1412. "shared": true,
  1413. "sort": 0,
  1414. "value_type": "individual"
  1415. },
  1416. "type": "graph",
  1417. "xaxis": {
  1418. "mode": "time",
  1419. "name": null,
  1420. "show": true,
  1421. "values": []
  1422. },
  1423. "yaxes": [
  1424. {
  1425. "format": "bytes",
  1426. "logBase": 1,
  1427. "max": null,
  1428. "min": 0,
  1429. "show": true
  1430. },
  1431. {
  1432. "format": "short",
  1433. "logBase": 1,
  1434. "max": null,
  1435. "min": 0,
  1436. "show": true
  1437. }
  1438. ]
  1439. }
  1440. ],
  1441. "repeat": null,
  1442. "repeatIteration": null,
  1443. "repeatRowId": null,
  1444. "showTitle": false,
  1445. "title": "Writeset",
  1446. "titleSize": "h6"
  1447. },
  1448. {
  1449. "collapse": false,
  1450. "height": "250px",
  1451. "panels": [
  1452. {
  1453. "aliasColors": {},
  1454. "bars": false,
  1455. "datasource": "Prometheus",
  1456. "decimals": null,
  1457. "editable": true,
  1458. "error": false,
  1459. "fill": 6,
  1460. "grid": {},
  1461. "id": 9,
  1462. "legend": {
  1463. "alignAsTable": true,
  1464. "avg": true,
  1465. "current": false,
  1466. "max": true,
  1467. "min": true,
  1468. "rightSide": false,
  1469. "show": true,
  1470. "total": false,
  1471. "values": true
  1472. },
  1473. "lines": true,
  1474. "linewidth": 2,
  1475. "links": [],
  1476. "nullPointMode": "null",
  1477. "percentage": false,
  1478. "pointradius": 5,
  1479. "points": false,
  1480. "renderer": "flot",
  1481. "seriesOverrides": [],
  1482. "span": 6,
  1483. "stack": true,
  1484. "steppedLine": false,
  1485. "targets": [
  1486. {
  1487. "calculatedInterval": "2m",
  1488. "datasourceErrors": {},
  1489. "errors": {},
  1490. "expr": "rate(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[5m])",
  1491. "interval": "$interval",
  1492. "intervalFactor": 1,
  1493. "legendFormat": "Inbound",
  1494. "metric": "",
  1495. "refId": "A",
  1496. "step": 300
  1497. },
  1498. {
  1499. "calculatedInterval": "2m",
  1500. "datasourceErrors": {},
  1501. "errors": {},
  1502. "expr": "rate(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[$interval]) or irate(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[5m])",
  1503. "interval": "$interval",
  1504. "intervalFactor": 1,
  1505. "legendFormat": "Outbound",
  1506. "metric": "",
  1507. "refId": "B",
  1508. "step": 300
  1509. }
  1510. ],
  1511. "thresholds": [],
  1512. "timeFrom": null,
  1513. "timeShift": null,
  1514. "title": "Galera Writeset Traffic",
  1515. "description": "Shows the bytes of data received from the cluster (any other node) and replicated to the cluster (from this node).",
  1516. "tooltip": {
  1517. "msResolution": false,
  1518. "shared": true,
  1519. "sort": 0,
  1520. "value_type": "individual"
  1521. },
  1522. "type": "graph",
  1523. "xaxis": {
  1524. "mode": "time",
  1525. "name": null,
  1526. "show": true,
  1527. "values": []
  1528. },
  1529. "yaxes": [
  1530. {
  1531. "format": "bytes",
  1532. "logBase": 1,
  1533. "max": null,
  1534. "min": 0,
  1535. "show": true
  1536. },
  1537. {
  1538. "format": "none",
  1539. "logBase": 1,
  1540. "max": null,
  1541. "min": 0,
  1542. "show": true
  1543. }
  1544. ]
  1545. },
  1546. {
  1547. "aliasColors": {},
  1548. "bars": true,
  1549. "datasource": "Prometheus",
  1550. "decimals": null,
  1551. "editable": true,
  1552. "error": false,
  1553. "fill": 6,
  1554. "grid": {},
  1555. "id": 38,
  1556. "legend": {
  1557. "alignAsTable": true,
  1558. "avg": true,
  1559. "current": false,
  1560. "max": true,
  1561. "min": true,
  1562. "rightSide": false,
  1563. "show": true,
  1564. "total": false,
  1565. "values": true
  1566. },
  1567. "lines": false,
  1568. "linewidth": 2,
  1569. "links": [],
  1570. "nullPointMode": "null",
  1571. "percentage": false,
  1572. "pointradius": 5,
  1573. "points": false,
  1574. "renderer": "flot",
  1575. "seriesOverrides": [],
  1576. "span": 6,
  1577. "stack": true,
  1578. "steppedLine": false,
  1579. "targets": [
  1580. {
  1581. "calculatedInterval": "2m",
  1582. "datasourceErrors": {},
  1583. "errors": {},
  1584. "expr": "increase(mysql_global_status_wsrep_received_bytes{instance=\"$host\"}[1h])",
  1585. "interval": "1h",
  1586. "intervalFactor": 1,
  1587. "legendFormat": "Received",
  1588. "metric": "",
  1589. "refId": "A",
  1590. "step": 3600
  1591. },
  1592. {
  1593. "calculatedInterval": "2m",
  1594. "datasourceErrors": {},
  1595. "errors": {},
  1596. "expr": "increase(mysql_global_status_wsrep_replicated_bytes{instance=\"$host\"}[1h])",
  1597. "interval": "1h",
  1598. "intervalFactor": 1,
  1599. "legendFormat": "Replicated",
  1600. "metric": "",
  1601. "refId": "B",
  1602. "step": 3600
  1603. }
  1604. ],
  1605. "thresholds": [],
  1606. "timeFrom": "24h",
  1607. "timeShift": null,
  1608. "title": "Galera Network Usage Hourly",
  1609. "description": "Shows the bytes of data received from the cluster (any other node) and replicated to the cluster (from this node).",
  1610. "tooltip": {
  1611. "msResolution": false,
  1612. "shared": true,
  1613. "sort": 0,
  1614. "value_type": "individual"
  1615. },
  1616. "type": "graph",
  1617. "xaxis": {
  1618. "mode": "time",
  1619. "name": null,
  1620. "show": true,
  1621. "values": []
  1622. },
  1623. "yaxes": [
  1624. {
  1625. "format": "bytes",
  1626. "logBase": 1,
  1627. "max": null,
  1628. "min": 0,
  1629. "show": true
  1630. },
  1631. {
  1632. "format": "none",
  1633. "logBase": 1,
  1634. "max": null,
  1635. "min": 0,
  1636. "show": true
  1637. }
  1638. ]
  1639. }
  1640. ],
  1641. "repeat": null,
  1642. "repeatIteration": null,
  1643. "repeatRowId": null,
  1644. "showTitle": false,
  1645. "title": "Traffic",
  1646. "titleSize": "h6"
  1647. }
  1648. ],
  1649. "schemaVersion": 14,
  1650. "sharedCrosshair": true,
  1651. "style": "dark",
  1652. "tags": [
  1653. "Percona",
  1654. "HA"
  1655. ],
  1656. "templating": {
  1657. "list": [
  1658. {
  1659. "allFormat": "glob",
  1660. "auto": true,
  1661. "auto_count": 200,
  1662. "auto_min": "1s",
  1663. "current": {
  1664. "text": "auto",
  1665. "value": "$__auto_interval"
  1666. },
  1667. "datasource": "Prometheus",
  1668. "hide": 0,
  1669. "includeAll": false,
  1670. "label": "Interval",
  1671. "multi": false,
  1672. "multiFormat": "glob",
  1673. "name": "interval",
  1674. "options": [
  1675. {
  1676. "selected": true,
  1677. "text": "auto",
  1678. "value": "$__auto_interval"
  1679. },
  1680. {
  1681. "selected": false,
  1682. "text": "1s",
  1683. "value": "1s"
  1684. },
  1685. {
  1686. "selected": false,
  1687. "text": "5s",
  1688. "value": "5s"
  1689. },
  1690. {
  1691. "selected": false,
  1692. "text": "1m",
  1693. "value": "1m"
  1694. },
  1695. {
  1696. "selected": false,
  1697. "text": "5m",
  1698. "value": "5m"
  1699. },
  1700. {
  1701. "selected": false,
  1702. "text": "1h",
  1703. "value": "1h"
  1704. },
  1705. {
  1706. "selected": false,
  1707. "text": "6h",
  1708. "value": "6h"
  1709. },
  1710. {
  1711. "selected": false,
  1712. "text": "1d",
  1713. "value": "1d"
  1714. }
  1715. ],
  1716. "query": "1s,5s,1m,5m,1h,6h,1d",
  1717. "refresh": 2,
  1718. "type": "interval"
  1719. },
  1720. {
  1721. "allFormat": "glob",
  1722. "allValue": null,
  1723. "datasource": "Prometheus",
  1724. "hide": 0,
  1725. "includeAll": false,
  1726. "label": "Cluster",
  1727. "multi": false,
  1728. "multiFormat": "regex values",
  1729. "name": "cluster",
  1730. "query": "label_values(mysql_galera_variables_info, wsrep_cluster_name)",
  1731. "refresh": 1,
  1732. "refresh_on_load": false,
  1733. "regex": "",
  1734. "sort": 1,
  1735. "tagValuesQuery": null,
  1736. "tagsQuery": null,
  1737. "type": "query"
  1738. },
  1739. {
  1740. "allFormat": "glob",
  1741. "allValue": null,
  1742. "datasource": "Prometheus",
  1743. "hide": 0,
  1744. "includeAll": false,
  1745. "label": "Host",
  1746. "multi": false,
  1747. "multiFormat": "regex values",
  1748. "name": "host",
  1749. "query": "label_values(mysql_galera_variables_info{wsrep_cluster_name =\"$cluster\"}, instance)",
  1750. "refresh": 1,
  1751. "refresh_on_load": false,
  1752. "regex": "",
  1753. "sort": 1,
  1754. "tagValuesQuery": null,
  1755. "tagsQuery": null,
  1756. "type": "query"
  1757. }
  1758. ]
  1759. },
  1760. "time": {
  1761. "from": "now-12h",
  1762. "to": "now"
  1763. },
  1764. "timepicker": {
  1765. "collapse": false,
  1766. "enable": true,
  1767. "notice": false,
  1768. "now": true,
  1769. "refresh_intervals": [
  1770. "5s",
  1771. "10s",
  1772. "30s",
  1773. "1m",
  1774. "5m",
  1775. "15m",
  1776. "30m",
  1777. "1h",
  1778. "2h",
  1779. "1d"
  1780. ],
  1781. "status": "Stable",
  1782. "time_options": [
  1783. "5m",
  1784. "15m",
  1785. "1h",
  1786. "6h",
  1787. "12h",
  1788. "24h",
  1789. "2d",
  1790. "7d",
  1791. "30d"
  1792. ],
  1793. "type": "timepicker"
  1794. },
  1795. "timezone": "browser",
  1796. "title": "PXC/Galera Graphs",
  1797. "version": 0
  1798. }