docker-statistics.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": {
  7. "type": "grafana",
  8. "uid": "-- Grafana --"
  9. },
  10. "enable": true,
  11. "hide": true,
  12. "iconColor": "rgba(0, 211, 255, 1)",
  13. "name": "Annotations & Alerts",
  14. "type": "dashboard"
  15. }
  16. ]
  17. },
  18. "editable": true,
  19. "fiscalYearStartMonth": 0,
  20. "graphTooltip": 0,
  21. "links": [],
  22. "liveNow": false,
  23. "panels": [
  24. {
  25. "datasource": {
  26. "type": "prometheus",
  27. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  28. },
  29. "fieldConfig": {
  30. "defaults": {
  31. "color": {
  32. "mode": "thresholds"
  33. },
  34. "mappings": [],
  35. "thresholds": {
  36. "mode": "absolute",
  37. "steps": [
  38. {
  39. "color": "green",
  40. "value": null
  41. },
  42. {
  43. "color": "red",
  44. "value": 80
  45. }
  46. ]
  47. }
  48. },
  49. "overrides": []
  50. },
  51. "gridPos": {
  52. "h": 8,
  53. "w": 7,
  54. "x": 0,
  55. "y": 0
  56. },
  57. "id": 4,
  58. "options": {
  59. "minVizHeight": 75,
  60. "minVizWidth": 75,
  61. "orientation": "auto",
  62. "reduceOptions": {
  63. "calcs": [
  64. "lastNotNull"
  65. ],
  66. "fields": "",
  67. "values": false
  68. },
  69. "showThresholdLabels": false,
  70. "showThresholdMarkers": true
  71. },
  72. "pluginVersion": "10.2.0",
  73. "targets": [
  74. {
  75. "datasource": {
  76. "type": "prometheus",
  77. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  78. },
  79. "editorMode": "code",
  80. "expr": "container_memory_percent_ratio * 100",
  81. "instant": false,
  82. "legendFormat": "Memory Usage (in %)",
  83. "range": true,
  84. "refId": "A"
  85. }
  86. ],
  87. "title": "Memory Usage",
  88. "type": "gauge"
  89. },
  90. {
  91. "datasource": {
  92. "type": "prometheus",
  93. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  94. },
  95. "fieldConfig": {
  96. "defaults": {
  97. "color": {
  98. "mode": "thresholds"
  99. },
  100. "mappings": [],
  101. "thresholds": {
  102. "mode": "absolute",
  103. "steps": [
  104. {
  105. "color": "green",
  106. "value": null
  107. },
  108. {
  109. "color": "red",
  110. "value": 80
  111. }
  112. ]
  113. }
  114. },
  115. "overrides": []
  116. },
  117. "gridPos": {
  118. "h": 8,
  119. "w": 7,
  120. "x": 7,
  121. "y": 0
  122. },
  123. "id": 2,
  124. "options": {
  125. "minVizHeight": 75,
  126. "minVizWidth": 75,
  127. "orientation": "auto",
  128. "reduceOptions": {
  129. "calcs": [
  130. "lastNotNull"
  131. ],
  132. "fields": "",
  133. "values": false
  134. },
  135. "showThresholdLabels": false,
  136. "showThresholdMarkers": true
  137. },
  138. "pluginVersion": "10.2.0",
  139. "targets": [
  140. {
  141. "datasource": {
  142. "type": "prometheus",
  143. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  144. },
  145. "editorMode": "code",
  146. "exemplar": false,
  147. "expr": "container_cpu_utilization_ratio * 100",
  148. "format": "time_series",
  149. "instant": false,
  150. "legendFormat": "CPU Utilization (in %)",
  151. "range": true,
  152. "refId": "A"
  153. }
  154. ],
  155. "title": "CPU Utilization",
  156. "type": "gauge"
  157. },
  158. {
  159. "datasource": {
  160. "type": "prometheus",
  161. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  162. },
  163. "fieldConfig": {
  164. "defaults": {
  165. "color": {
  166. "mode": "palette-classic"
  167. },
  168. "custom": {
  169. "axisBorderShow": false,
  170. "axisCenteredZero": false,
  171. "axisColorMode": "text",
  172. "axisLabel": "",
  173. "axisPlacement": "auto",
  174. "barAlignment": 0,
  175. "drawStyle": "line",
  176. "fillOpacity": 0,
  177. "gradientMode": "none",
  178. "hideFrom": {
  179. "legend": false,
  180. "tooltip": false,
  181. "viz": false
  182. },
  183. "insertNulls": false,
  184. "lineInterpolation": "linear",
  185. "lineWidth": 1,
  186. "pointSize": 5,
  187. "scaleDistribution": {
  188. "type": "linear"
  189. },
  190. "showPoints": "auto",
  191. "spanNulls": false,
  192. "stacking": {
  193. "group": "A",
  194. "mode": "none"
  195. },
  196. "thresholdsStyle": {
  197. "mode": "off"
  198. }
  199. },
  200. "mappings": [],
  201. "thresholds": {
  202. "mode": "absolute",
  203. "steps": [
  204. {
  205. "color": "green",
  206. "value": null
  207. },
  208. {
  209. "color": "red",
  210. "value": 80
  211. }
  212. ]
  213. }
  214. },
  215. "overrides": []
  216. },
  217. "gridPos": {
  218. "h": 8,
  219. "w": 10,
  220. "x": 14,
  221. "y": 0
  222. },
  223. "id": 1,
  224. "options": {
  225. "legend": {
  226. "calcs": [],
  227. "displayMode": "list",
  228. "placement": "bottom",
  229. "showLegend": true
  230. },
  231. "tooltip": {
  232. "mode": "single",
  233. "sort": "none"
  234. }
  235. },
  236. "targets": [
  237. {
  238. "datasource": {
  239. "type": "prometheus",
  240. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  241. },
  242. "editorMode": "code",
  243. "expr": "sum(rate(container_blockio_io_service_bytes_recursive_total{operation=\"read\"}[5m])) ",
  244. "hide": false,
  245. "instant": false,
  246. "legendFormat": "Read Operation",
  247. "range": true,
  248. "refId": "B"
  249. },
  250. {
  251. "datasource": {
  252. "type": "prometheus",
  253. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  254. },
  255. "editorMode": "code",
  256. "expr": "sum(rate(container_blockio_io_service_bytes_recursive_total{operation=\"write\"}[5m])) ",
  257. "hide": false,
  258. "instant": false,
  259. "legendFormat": "Write Operation",
  260. "range": true,
  261. "refId": "C"
  262. }
  263. ],
  264. "title": "Block IO in bytes",
  265. "type": "timeseries"
  266. },
  267. {
  268. "datasource": {
  269. "type": "prometheus",
  270. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  271. },
  272. "fieldConfig": {
  273. "defaults": {
  274. "color": {
  275. "mode": "palette-classic"
  276. },
  277. "custom": {
  278. "axisBorderShow": false,
  279. "axisCenteredZero": false,
  280. "axisColorMode": "text",
  281. "axisLabel": "",
  282. "axisPlacement": "auto",
  283. "barAlignment": 0,
  284. "drawStyle": "line",
  285. "fillOpacity": 0,
  286. "gradientMode": "none",
  287. "hideFrom": {
  288. "legend": false,
  289. "tooltip": false,
  290. "viz": false
  291. },
  292. "insertNulls": false,
  293. "lineInterpolation": "linear",
  294. "lineWidth": 1,
  295. "pointSize": 5,
  296. "scaleDistribution": {
  297. "type": "linear"
  298. },
  299. "showPoints": "auto",
  300. "spanNulls": false,
  301. "stacking": {
  302. "group": "A",
  303. "mode": "none"
  304. },
  305. "thresholdsStyle": {
  306. "mode": "off"
  307. }
  308. },
  309. "mappings": [],
  310. "thresholds": {
  311. "mode": "absolute",
  312. "steps": [
  313. {
  314. "color": "green",
  315. "value": null
  316. },
  317. {
  318. "color": "red",
  319. "value": 80
  320. }
  321. ]
  322. }
  323. },
  324. "overrides": []
  325. },
  326. "gridPos": {
  327. "h": 8,
  328. "w": 12,
  329. "x": 0,
  330. "y": 8
  331. },
  332. "id": 3,
  333. "options": {
  334. "legend": {
  335. "calcs": [],
  336. "displayMode": "table",
  337. "placement": "bottom",
  338. "showLegend": true
  339. },
  340. "tooltip": {
  341. "mode": "single",
  342. "sort": "none"
  343. }
  344. },
  345. "pluginVersion": "10.2.0",
  346. "targets": [
  347. {
  348. "datasource": {
  349. "type": "prometheus",
  350. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  351. },
  352. "editorMode": "code",
  353. "expr": "rate(container_cpu_usage_kernelmode_nanoseconds_total[5m])",
  354. "instant": false,
  355. "legendFormat": "Kernel Mode",
  356. "range": true,
  357. "refId": "A"
  358. },
  359. {
  360. "datasource": {
  361. "type": "prometheus",
  362. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  363. },
  364. "editorMode": "code",
  365. "expr": "rate(container_cpu_usage_usermode_nanoseconds_total[5m])",
  366. "hide": false,
  367. "instant": false,
  368. "legendFormat": "User Mode",
  369. "range": true,
  370. "refId": "B"
  371. }
  372. ],
  373. "title": "CPU usage in different modes",
  374. "type": "timeseries"
  375. },
  376. {
  377. "datasource": {
  378. "type": "prometheus",
  379. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  380. },
  381. "fieldConfig": {
  382. "defaults": {
  383. "color": {
  384. "mode": "palette-classic"
  385. },
  386. "custom": {
  387. "axisBorderShow": false,
  388. "axisCenteredZero": false,
  389. "axisColorMode": "text",
  390. "axisLabel": "",
  391. "axisPlacement": "auto",
  392. "barAlignment": 0,
  393. "drawStyle": "line",
  394. "fillOpacity": 0,
  395. "gradientMode": "none",
  396. "hideFrom": {
  397. "legend": false,
  398. "tooltip": false,
  399. "viz": false
  400. },
  401. "insertNulls": false,
  402. "lineInterpolation": "linear",
  403. "lineWidth": 1,
  404. "pointSize": 5,
  405. "scaleDistribution": {
  406. "type": "linear"
  407. },
  408. "showPoints": "auto",
  409. "spanNulls": false,
  410. "stacking": {
  411. "group": "A",
  412. "mode": "none"
  413. },
  414. "thresholdsStyle": {
  415. "mode": "off"
  416. }
  417. },
  418. "mappings": [],
  419. "thresholds": {
  420. "mode": "absolute",
  421. "steps": [
  422. {
  423. "color": "green",
  424. "value": null
  425. },
  426. {
  427. "color": "red",
  428. "value": 80
  429. }
  430. ]
  431. }
  432. },
  433. "overrides": []
  434. },
  435. "gridPos": {
  436. "h": 8,
  437. "w": 12,
  438. "x": 12,
  439. "y": 8
  440. },
  441. "id": 5,
  442. "options": {
  443. "legend": {
  444. "calcs": [],
  445. "displayMode": "list",
  446. "placement": "bottom",
  447. "showLegend": true
  448. },
  449. "tooltip": {
  450. "mode": "single",
  451. "sort": "none"
  452. }
  453. },
  454. "pluginVersion": "10.2.0",
  455. "targets": [
  456. {
  457. "datasource": {
  458. "type": "prometheus",
  459. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  460. },
  461. "editorMode": "code",
  462. "expr": "(container_memory_usage_total_bytes / container_memory_usage_limit_bytes) * 100",
  463. "instant": false,
  464. "legendFormat": "Total Bytes Read/Written",
  465. "range": true,
  466. "refId": "A"
  467. }
  468. ],
  469. "title": "Container memory usage vs limit",
  470. "type": "timeseries"
  471. },
  472. {
  473. "datasource": {
  474. "type": "prometheus",
  475. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  476. },
  477. "fieldConfig": {
  478. "defaults": {
  479. "color": {
  480. "mode": "palette-classic"
  481. },
  482. "custom": {
  483. "axisBorderShow": false,
  484. "axisCenteredZero": false,
  485. "axisColorMode": "text",
  486. "axisLabel": "",
  487. "axisPlacement": "auto",
  488. "barAlignment": 0,
  489. "drawStyle": "line",
  490. "fillOpacity": 0,
  491. "gradientMode": "none",
  492. "hideFrom": {
  493. "legend": false,
  494. "tooltip": false,
  495. "viz": false
  496. },
  497. "insertNulls": false,
  498. "lineInterpolation": "linear",
  499. "lineWidth": 1,
  500. "pointSize": 5,
  501. "scaleDistribution": {
  502. "type": "linear"
  503. },
  504. "showPoints": "auto",
  505. "spanNulls": false,
  506. "stacking": {
  507. "group": "A",
  508. "mode": "none"
  509. },
  510. "thresholdsStyle": {
  511. "mode": "off"
  512. }
  513. },
  514. "mappings": [],
  515. "thresholds": {
  516. "mode": "absolute",
  517. "steps": [
  518. {
  519. "color": "green",
  520. "value": null
  521. },
  522. {
  523. "color": "red",
  524. "value": 80
  525. }
  526. ]
  527. }
  528. },
  529. "overrides": []
  530. },
  531. "gridPos": {
  532. "h": 8,
  533. "w": 12,
  534. "x": 0,
  535. "y": 16
  536. },
  537. "id": 6,
  538. "options": {
  539. "legend": {
  540. "calcs": [],
  541. "displayMode": "list",
  542. "placement": "bottom",
  543. "showLegend": true
  544. },
  545. "tooltip": {
  546. "mode": "single",
  547. "sort": "none"
  548. }
  549. },
  550. "targets": [
  551. {
  552. "datasource": {
  553. "type": "prometheus",
  554. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  555. },
  556. "editorMode": "code",
  557. "exemplar": false,
  558. "expr": "rate(container_network_io_usage_rx_bytes_total{interface=\"eth0\"}[5m])",
  559. "instant": false,
  560. "legendFormat": "Network bytes received",
  561. "range": true,
  562. "refId": "A"
  563. },
  564. {
  565. "datasource": {
  566. "type": "prometheus",
  567. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  568. },
  569. "editorMode": "code",
  570. "expr": "rate(container_network_io_usage_tx_bytes_total{interface=\"eth0\"}[5m])",
  571. "hide": false,
  572. "instant": false,
  573. "legendFormat": "Network bytes Sent",
  574. "range": true,
  575. "refId": "B"
  576. }
  577. ],
  578. "title": "Network bytes sent and received",
  579. "type": "timeseries"
  580. },
  581. {
  582. "datasource": {
  583. "type": "prometheus",
  584. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  585. },
  586. "fieldConfig": {
  587. "defaults": {
  588. "color": {
  589. "mode": "palette-classic"
  590. },
  591. "custom": {
  592. "axisBorderShow": false,
  593. "axisCenteredZero": false,
  594. "axisColorMode": "text",
  595. "axisLabel": "",
  596. "axisPlacement": "auto",
  597. "barAlignment": 0,
  598. "drawStyle": "line",
  599. "fillOpacity": 0,
  600. "gradientMode": "none",
  601. "hideFrom": {
  602. "legend": false,
  603. "tooltip": false,
  604. "viz": false
  605. },
  606. "insertNulls": false,
  607. "lineInterpolation": "linear",
  608. "lineWidth": 1,
  609. "pointSize": 5,
  610. "scaleDistribution": {
  611. "type": "linear"
  612. },
  613. "showPoints": "auto",
  614. "spanNulls": false,
  615. "stacking": {
  616. "group": "A",
  617. "mode": "none"
  618. },
  619. "thresholdsStyle": {
  620. "mode": "off"
  621. }
  622. },
  623. "mappings": [],
  624. "thresholds": {
  625. "mode": "absolute",
  626. "steps": [
  627. {
  628. "color": "green",
  629. "value": null
  630. },
  631. {
  632. "color": "red",
  633. "value": 80
  634. }
  635. ]
  636. }
  637. },
  638. "overrides": []
  639. },
  640. "gridPos": {
  641. "h": 8,
  642. "w": 12,
  643. "x": 12,
  644. "y": 16
  645. },
  646. "id": 7,
  647. "options": {
  648. "legend": {
  649. "calcs": [],
  650. "displayMode": "list",
  651. "placement": "bottom",
  652. "showLegend": true
  653. },
  654. "tooltip": {
  655. "mode": "single",
  656. "sort": "none"
  657. }
  658. },
  659. "targets": [
  660. {
  661. "datasource": {
  662. "type": "prometheus",
  663. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  664. },
  665. "editorMode": "code",
  666. "expr": "rate(container_network_io_usage_rx_dropped_total{interface=\"eth0\"}[5m])",
  667. "instant": false,
  668. "legendFormat": "Network Bytes Dropped in Receiving",
  669. "range": true,
  670. "refId": "A"
  671. },
  672. {
  673. "datasource": {
  674. "type": "prometheus",
  675. "uid": "d301145e-8c4e-4027-bf6e-43e81f095020"
  676. },
  677. "editorMode": "code",
  678. "expr": "rate(container_network_io_usage_tx_dropped_total{interface=\"eth0\"}[5m])",
  679. "hide": false,
  680. "instant": false,
  681. "legendFormat": "Network Bytes dropped in Sending",
  682. "range": true,
  683. "refId": "B"
  684. }
  685. ],
  686. "title": "Network Packets dropped",
  687. "type": "timeseries"
  688. }
  689. ],
  690. "refresh": "5s",
  691. "schemaVersion": 38,
  692. "tags": [],
  693. "templating": {
  694. "list": []
  695. },
  696. "time": {
  697. "from": "now-24h",
  698. "to": "now"
  699. },
  700. "timepicker": {},
  701. "timezone": "",
  702. "title": "Docker Statistics",
  703. "uid": "c67742f2-7db9-489b-90fa-a13f4655806a",
  704. "version": 3,
  705. "weekStart": ""
  706. }