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.

mysql_prometheus.json 42KB

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