Guest User

Untitled

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