Saltstack Official Galera Formula
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

mysql_influxdb.json 35KB

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