Cross_Server_Graphs.json 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821
  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": "250px",
  52. "panels": [
  53. {
  54. "aliasColors": {},
  55. "bars": false,
  56. "datasource": "Prometheus",
  57. "decimals": 2,
  58. "editable": true,
  59. "error": false,
  60. "fill": 2,
  61. "grid": {},
  62. "id": 6,
  63. "legend": {
  64. "alignAsTable": false,
  65. "avg": false,
  66. "current": false,
  67. "hideEmpty": false,
  68. "max": false,
  69. "min": false,
  70. "rightSide": false,
  71. "show": true,
  72. "total": false,
  73. "values": false
  74. },
  75. "lines": true,
  76. "linewidth": 2,
  77. "links": [],
  78. "nullPointMode": "null",
  79. "percentage": false,
  80. "pointradius": 5,
  81. "points": false,
  82. "renderer": "flot",
  83. "seriesOverrides": [],
  84. "span": 6,
  85. "stack": false,
  86. "steppedLine": false,
  87. "targets": [
  88. {
  89. "calculatedInterval": "10s",
  90. "datasourceErrors": {},
  91. "errors": {},
  92. "expr": "node_load1{instance=~\"$host\"}",
  93. "interval": "$interval",
  94. "intervalFactor": 1,
  95. "legendFormat": "{{ instance }}",
  96. "metric": "",
  97. "refId": "A",
  98. "step": 300,
  99. "target": ""
  100. }
  101. ],
  102. "thresholds": [
  103. {
  104. "colorMode": "custom",
  105. "line": true,
  106. "lineColor": "rgb(241, 34, 15)",
  107. "op": "gt",
  108. "value": 15
  109. }
  110. ],
  111. "timeFrom": null,
  112. "timeShift": null,
  113. "title": "Load Average",
  114. "tooltip": {
  115. "msResolution": false,
  116. "shared": true,
  117. "sort": 0,
  118. "value_type": "individual"
  119. },
  120. "transparent": false,
  121. "type": "graph",
  122. "xaxis": {
  123. "mode": "time",
  124. "name": null,
  125. "show": true,
  126. "values": []
  127. },
  128. "yaxes": [
  129. {
  130. "format": "none",
  131. "label": "",
  132. "logBase": 1,
  133. "max": null,
  134. "min": 0,
  135. "show": true
  136. },
  137. {
  138. "format": "none",
  139. "logBase": 1,
  140. "max": null,
  141. "min": 0,
  142. "show": true
  143. }
  144. ]
  145. },
  146. {
  147. "aliasColors": {},
  148. "bars": false,
  149. "datasource": "Prometheus",
  150. "decimals": 2,
  151. "editable": true,
  152. "error": false,
  153. "fill": 2,
  154. "grid": {},
  155. "id": 7,
  156. "legend": {
  157. "alignAsTable": false,
  158. "avg": false,
  159. "current": false,
  160. "hideEmpty": false,
  161. "max": false,
  162. "min": false,
  163. "rightSide": false,
  164. "show": true,
  165. "total": false,
  166. "values": false
  167. },
  168. "lines": true,
  169. "linewidth": 2,
  170. "links": [],
  171. "nullPointMode": "null",
  172. "percentage": false,
  173. "pointradius": 5,
  174. "points": false,
  175. "renderer": "flot",
  176. "seriesOverrides": [],
  177. "span": 6,
  178. "stack": false,
  179. "steppedLine": false,
  180. "targets": [
  181. {
  182. "calculatedInterval": "10s",
  183. "datasourceErrors": {},
  184. "errors": {},
  185. "expr": "100 - 100 * (node_memory_MemAvailable{instance=~\"$host\"} or (node_memory_MemFree{instance=~\"$host\"} + node_memory_Buffers{instance=~\"$host\"} + node_memory_Cached{instance=~\"$host\"})) / (node_memory_MemTotal{instance=~\"$host\"} + 0.1)",
  186. "interval": "$interval",
  187. "intervalFactor": 1,
  188. "legendFormat": "{{ instance }}",
  189. "metric": "",
  190. "refId": "A",
  191. "step": 300,
  192. "target": ""
  193. }
  194. ],
  195. "thresholds": [
  196. {
  197. "colorMode": "custom",
  198. "line": true,
  199. "lineColor": "rgb(248, 8, 48)",
  200. "op": "gt",
  201. "value": 95
  202. }
  203. ],
  204. "timeFrom": null,
  205. "timeShift": null,
  206. "title": "Memory Usage",
  207. "tooltip": {
  208. "msResolution": false,
  209. "shared": true,
  210. "sort": 0,
  211. "value_type": "individual"
  212. },
  213. "transparent": false,
  214. "type": "graph",
  215. "xaxis": {
  216. "mode": "time",
  217. "name": null,
  218. "show": true,
  219. "values": []
  220. },
  221. "yaxes": [
  222. {
  223. "format": "percent",
  224. "label": "",
  225. "logBase": 1,
  226. "max": null,
  227. "min": 0,
  228. "show": true
  229. },
  230. {
  231. "format": "none",
  232. "logBase": 1,
  233. "max": null,
  234. "min": 0,
  235. "show": true
  236. }
  237. ]
  238. }
  239. ],
  240. "repeat": null,
  241. "repeatIteration": null,
  242. "repeatRowId": null,
  243. "showTitle": false,
  244. "title": "System",
  245. "titleSize": "h6"
  246. },
  247. {
  248. "collapse": false,
  249. "height": "250px",
  250. "panels": [
  251. {
  252. "aliasColors": {},
  253. "bars": false,
  254. "datasource": "Prometheus",
  255. "editable": true,
  256. "error": false,
  257. "fill": 2,
  258. "grid": {},
  259. "id": 3,
  260. "legend": {
  261. "avg": false,
  262. "current": false,
  263. "max": false,
  264. "min": false,
  265. "show": true,
  266. "total": false,
  267. "values": false
  268. },
  269. "lines": true,
  270. "linewidth": 2,
  271. "links": [],
  272. "nullPointMode": "null",
  273. "percentage": false,
  274. "pointradius": 5,
  275. "points": false,
  276. "renderer": "flot",
  277. "seriesOverrides": [],
  278. "span": 6,
  279. "stack": false,
  280. "steppedLine": false,
  281. "targets": [
  282. {
  283. "calculatedInterval": "2m",
  284. "datasourceErrors": {},
  285. "errors": {},
  286. "expr": "rate(mysql_global_status_connections{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_connections{instance=~\"$host\"}[5m])",
  287. "interval": "$interval",
  288. "intervalFactor": 1,
  289. "legendFormat": "{{ instance }}",
  290. "metric": "",
  291. "refId": "A",
  292. "step": 300
  293. }
  294. ],
  295. "thresholds": [],
  296. "timeFrom": null,
  297. "timeShift": null,
  298. "title": "MySQL Connections",
  299. "tooltip": {
  300. "msResolution": false,
  301. "shared": true,
  302. "sort": 0,
  303. "value_type": "cumulative"
  304. },
  305. "type": "graph",
  306. "xaxis": {
  307. "mode": "time",
  308. "name": null,
  309. "show": true,
  310. "values": []
  311. },
  312. "yaxes": [
  313. {
  314. "format": "short",
  315. "logBase": 1,
  316. "max": null,
  317. "min": 0,
  318. "show": true
  319. },
  320. {
  321. "format": "short",
  322. "logBase": 1,
  323. "max": null,
  324. "min": 0,
  325. "show": true
  326. }
  327. ]
  328. },
  329. {
  330. "aliasColors": {},
  331. "bars": false,
  332. "datasource": "Prometheus",
  333. "decimals": 2,
  334. "editable": true,
  335. "error": false,
  336. "fill": 0,
  337. "grid": {},
  338. "id": 4,
  339. "legend": {
  340. "alignAsTable": false,
  341. "avg": false,
  342. "current": false,
  343. "hideEmpty": false,
  344. "max": false,
  345. "min": false,
  346. "rightSide": false,
  347. "show": true,
  348. "sort": null,
  349. "sortDesc": null,
  350. "total": false,
  351. "values": false
  352. },
  353. "lines": true,
  354. "linewidth": 2,
  355. "links": [],
  356. "nullPointMode": "null",
  357. "percentage": false,
  358. "pointradius": 5,
  359. "points": false,
  360. "renderer": "flot",
  361. "seriesOverrides": [],
  362. "span": 6,
  363. "stack": false,
  364. "steppedLine": false,
  365. "targets": [
  366. {
  367. "calculatedInterval": "2m",
  368. "datasourceErrors": {},
  369. "errors": {},
  370. "expr": "rate(mysql_global_status_queries{instance=~\"$host\"}[$interval]) or irate(mysql_global_status_queries{instance=~\"$host\"}[5m])",
  371. "interval": "$interval",
  372. "intervalFactor": 1,
  373. "legendFormat": "{{ instance }}",
  374. "metric": "",
  375. "refId": "A",
  376. "step": 300
  377. }
  378. ],
  379. "thresholds": [],
  380. "timeFrom": null,
  381. "timeShift": null,
  382. "title": "MySQL Queries",
  383. "tooltip": {
  384. "msResolution": false,
  385. "shared": true,
  386. "sort": 0,
  387. "value_type": "cumulative"
  388. },
  389. "type": "graph",
  390. "xaxis": {
  391. "mode": "time",
  392. "name": null,
  393. "show": true,
  394. "values": []
  395. },
  396. "yaxes": [
  397. {
  398. "format": "short",
  399. "logBase": 1,
  400. "max": null,
  401. "min": 0,
  402. "show": true
  403. },
  404. {
  405. "format": "short",
  406. "logBase": 1,
  407. "max": null,
  408. "min": 0,
  409. "show": true
  410. }
  411. ]
  412. }
  413. ],
  414. "repeat": null,
  415. "repeatIteration": null,
  416. "repeatRowId": null,
  417. "showTitle": false,
  418. "title": "MySQL",
  419. "titleSize": "h6"
  420. },
  421. {
  422. "collapse": false,
  423. "height": "250px",
  424. "panels": [
  425. {
  426. "aliasColors": {},
  427. "bars": false,
  428. "datasource": "Prometheus",
  429. "decimals": 2,
  430. "editable": true,
  431. "error": false,
  432. "fill": 2,
  433. "grid": {},
  434. "id": 11,
  435. "legend": {
  436. "alignAsTable": true,
  437. "avg": true,
  438. "current": false,
  439. "max": true,
  440. "min": true,
  441. "rightSide": false,
  442. "show": true,
  443. "sort": "avg",
  444. "sortDesc": true,
  445. "total": false,
  446. "values": true
  447. },
  448. "lines": true,
  449. "linewidth": 2,
  450. "links": [],
  451. "nullPointMode": "null",
  452. "percentage": false,
  453. "pointradius": 5,
  454. "points": false,
  455. "renderer": "flot",
  456. "seriesOverrides": [],
  457. "span": 6,
  458. "stack": false,
  459. "steppedLine": false,
  460. "targets": [
  461. {
  462. "calculatedInterval": "2m",
  463. "datasourceErrors": {},
  464. "errors": {},
  465. "expr": "(rate(mysql_global_status_bytes_received{instance=~\"$host\"}[$interval]) + rate(mysql_global_status_bytes_sent{instance=~\"$host\"}[$interval])) or (irate(mysql_global_status_bytes_received{instance=~\"$host\"}[5m]) + irate(mysql_global_status_bytes_sent{instance=~\"$host\"}[5m]))",
  466. "interval": "$interval",
  467. "intervalFactor": 1,
  468. "legendFormat": "{{ instance }}",
  469. "metric": "",
  470. "refId": "A",
  471. "step": 300
  472. }
  473. ],
  474. "thresholds": [],
  475. "timeFrom": null,
  476. "timeShift": null,
  477. "title": "MySQL Traffic",
  478. "tooltip": {
  479. "msResolution": true,
  480. "shared": true,
  481. "sort": 0,
  482. "value_type": "individual"
  483. },
  484. "type": "graph",
  485. "xaxis": {
  486. "mode": "time",
  487. "name": null,
  488. "show": true,
  489. "values": []
  490. },
  491. "yaxes": [
  492. {
  493. "format": "Bps",
  494. "logBase": 1,
  495. "max": null,
  496. "min": 0,
  497. "show": true
  498. },
  499. {
  500. "format": "none",
  501. "logBase": 1,
  502. "max": null,
  503. "min": 0,
  504. "show": true
  505. }
  506. ]
  507. },
  508. {
  509. "aliasColors": {},
  510. "bars": false,
  511. "datasource": "Prometheus",
  512. "decimals": 2,
  513. "editable": true,
  514. "error": false,
  515. "fill": 2,
  516. "grid": {},
  517. "id": 10,
  518. "legend": {
  519. "alignAsTable": true,
  520. "avg": true,
  521. "current": false,
  522. "hideEmpty": false,
  523. "max": true,
  524. "min": true,
  525. "rightSide": false,
  526. "show": true,
  527. "sort": "avg",
  528. "sortDesc": true,
  529. "total": false,
  530. "values": true
  531. },
  532. "lines": true,
  533. "linewidth": 2,
  534. "links": [],
  535. "nullPointMode": "null",
  536. "percentage": false,
  537. "pointradius": 5,
  538. "points": false,
  539. "renderer": "flot",
  540. "seriesOverrides": [],
  541. "span": 6,
  542. "stack": false,
  543. "steppedLine": false,
  544. "targets": [
  545. {
  546. "calculatedInterval": "2s",
  547. "datasourceErrors": {},
  548. "errors": {},
  549. "expr": "sum(rate(node_network_receive_bytes{instance=~\"$host\", device!=\"lo\"}[$interval]) + rate(node_network_transmit_bytes{instance=~\"$host\", device!=\"lo\"}[$interval])) by (instance) or sum(irate(node_network_receive_bytes{instance=~\"$host\", device!=\"lo\"}[5m]) + irate(node_network_transmit_bytes{instance=~\"$host\", device!=\"lo\"}[5m])) by (instance)",
  550. "interval": "$interval",
  551. "intervalFactor": 1,
  552. "legendFormat": "{{ instance }}",
  553. "metric": "",
  554. "refId": "B",
  555. "step": 300,
  556. "target": ""
  557. }
  558. ],
  559. "thresholds": [],
  560. "timeFrom": null,
  561. "timeShift": null,
  562. "title": "Network Traffic",
  563. "tooltip": {
  564. "msResolution": false,
  565. "shared": true,
  566. "sort": 0,
  567. "value_type": "individual"
  568. },
  569. "transparent": false,
  570. "type": "graph",
  571. "xaxis": {
  572. "mode": "time",
  573. "name": null,
  574. "show": true,
  575. "values": []
  576. },
  577. "yaxes": [
  578. {
  579. "format": "Bps",
  580. "label": "",
  581. "logBase": 1,
  582. "max": null,
  583. "min": 0,
  584. "show": true
  585. },
  586. {
  587. "format": "bytes",
  588. "logBase": 1,
  589. "max": null,
  590. "min": 0,
  591. "show": true
  592. }
  593. ]
  594. }
  595. ],
  596. "repeat": null,
  597. "repeatIteration": null,
  598. "repeatRowId": null,
  599. "showTitle": false,
  600. "title": "Traffic",
  601. "titleSize": "h6"
  602. },
  603. {
  604. "collapse": false,
  605. "height": "250px",
  606. "panels": [
  607. {
  608. "columns": [
  609. {
  610. "text": "Current",
  611. "value": "current"
  612. }
  613. ],
  614. "datasource": "Prometheus",
  615. "editable": true,
  616. "error": false,
  617. "fontSize": "90%",
  618. "height": "",
  619. "id": 12,
  620. "links": [],
  621. "pageSize": null,
  622. "scroll": false,
  623. "showHeader": true,
  624. "sort": {
  625. "col": 0,
  626. "desc": false
  627. },
  628. "span": 12,
  629. "styles": [],
  630. "targets": [
  631. {
  632. "expr": "node_uname_info{instance=~\"$host\"}",
  633. "interval": "5m",
  634. "intervalFactor": 1,
  635. "legendFormat": "{{ instance }} | Hostname: {{ nodename }} | Kernel: {{ release }}",
  636. "refId": "A",
  637. "step": 300
  638. }
  639. ],
  640. "title": "System Info",
  641. "transform": "timeseries_aggregations",
  642. "transparent": true,
  643. "type": "table"
  644. },
  645. {
  646. "columns": [
  647. {
  648. "text": "Current",
  649. "value": "current"
  650. }
  651. ],
  652. "datasource": "Prometheus",
  653. "editable": true,
  654. "error": false,
  655. "fontSize": "90%",
  656. "id": 13,
  657. "links": [],
  658. "pageSize": null,
  659. "scroll": false,
  660. "showHeader": true,
  661. "sort": {
  662. "col": 0,
  663. "desc": false
  664. },
  665. "span": 12,
  666. "styles": [],
  667. "targets": [
  668. {
  669. "expr": "mysql_version_info{instance=~\"$host\"}",
  670. "interval": "5m",
  671. "intervalFactor": 1,
  672. "legendFormat": "{{ instance }} | {{ version }} | {{ version_comment }}",
  673. "refId": "A",
  674. "step": 300
  675. }
  676. ],
  677. "title": "MySQL Info",
  678. "transform": "timeseries_aggregations",
  679. "transparent": true,
  680. "type": "table"
  681. }
  682. ],
  683. "repeat": null,
  684. "repeatIteration": null,
  685. "repeatRowId": null,
  686. "showTitle": false,
  687. "title": "New row",
  688. "titleSize": "h6"
  689. }
  690. ],
  691. "schemaVersion": 14,
  692. "sharedCrosshair": true,
  693. "style": "dark",
  694. "tags": [
  695. "Percona",
  696. "Insight "
  697. ],
  698. "templating": {
  699. "list": [
  700. {
  701. "allFormat": "glob",
  702. "auto": true,
  703. "auto_count": 200,
  704. "auto_min": "1s",
  705. "current": {
  706. "text": "auto",
  707. "value": "$__auto_interval"
  708. },
  709. "datasource": "Prometheus",
  710. "hide": 0,
  711. "includeAll": false,
  712. "label": "Interval",
  713. "multi": false,
  714. "multiFormat": "glob",
  715. "name": "interval",
  716. "options": [
  717. {
  718. "selected": true,
  719. "text": "auto",
  720. "value": "$__auto_interval"
  721. },
  722. {
  723. "selected": false,
  724. "text": "1s",
  725. "value": "1s"
  726. },
  727. {
  728. "selected": false,
  729. "text": "5s",
  730. "value": "5s"
  731. },
  732. {
  733. "selected": false,
  734. "text": "1m",
  735. "value": "1m"
  736. },
  737. {
  738. "selected": false,
  739. "text": "5m",
  740. "value": "5m"
  741. },
  742. {
  743. "selected": false,
  744. "text": "1h",
  745. "value": "1h"
  746. },
  747. {
  748. "selected": false,
  749. "text": "6h",
  750. "value": "6h"
  751. },
  752. {
  753. "selected": false,
  754. "text": "1d",
  755. "value": "1d"
  756. }
  757. ],
  758. "query": "1s,5s,1m,5m,1h,6h,1d",
  759. "refresh": 2,
  760. "regex": "",
  761. "type": "interval"
  762. },
  763. {
  764. "allFormat": "pipe",
  765. "allValue": null,
  766. "datasource": "Prometheus",
  767. "hide": 0,
  768. "includeAll": true,
  769. "label": "Host",
  770. "multi": true,
  771. "multiFormat": "pipe",
  772. "name": "host",
  773. "query": "label_values({__name__=~\"node_load1|mysql_up\", job!=\"prometheus\"}, instance)",
  774. "refresh": 1,
  775. "regex": "",
  776. "sort": 1,
  777. "tagValuesQuery": null,
  778. "tagsQuery": null,
  779. "type": "query"
  780. }
  781. ]
  782. },
  783. "time": {
  784. "from": "now-12h",
  785. "to": "now"
  786. },
  787. "timepicker": {
  788. "collapse": false,
  789. "enable": true,
  790. "notice": false,
  791. "now": true,
  792. "refresh_intervals": [
  793. "5s",
  794. "10s",
  795. "30s",
  796. "1m",
  797. "5m",
  798. "15m",
  799. "30m",
  800. "1h",
  801. "2h",
  802. "1d"
  803. ],
  804. "status": "Stable",
  805. "time_options": [
  806. "5m",
  807. "15m",
  808. "1h",
  809. "6h",
  810. "12h",
  811. "24h",
  812. "2d",
  813. "7d",
  814. "30d"
  815. ],
  816. "type": "timepicker"
  817. },
  818. "timezone": "browser",
  819. "title": "Cross Server Graphs",
  820. "version": 0
  821. }