Matrix Docker Ansible eploy
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

1304 строки
31 KiB

  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__elements": {},
  13. "__requires": [
  14. {
  15. "type": "grafana",
  16. "id": "grafana",
  17. "name": "Grafana",
  18. "version": "10.1.0"
  19. },
  20. {
  21. "type": "panel",
  22. "id": "heatmap",
  23. "name": "Heatmap",
  24. "version": ""
  25. },
  26. {
  27. "type": "datasource",
  28. "id": "prometheus",
  29. "name": "Prometheus",
  30. "version": "1.0.0"
  31. },
  32. {
  33. "type": "panel",
  34. "id": "timeseries",
  35. "name": "Time series",
  36. "version": ""
  37. }
  38. ],
  39. "annotations": {
  40. "list": [
  41. {
  42. "builtIn": 1,
  43. "datasource": {
  44. "type": "datasource",
  45. "uid": "grafana"
  46. },
  47. "enable": true,
  48. "hide": true,
  49. "iconColor": "rgba(0, 211, 255, 1)",
  50. "name": "Annotations & Alerts",
  51. "target": {
  52. "limit": 100,
  53. "matchAny": false,
  54. "tags": [],
  55. "type": "dashboard"
  56. },
  57. "type": "dashboard"
  58. }
  59. ]
  60. },
  61. "editable": true,
  62. "fiscalYearStartMonth": 0,
  63. "graphTooltip": 0,
  64. "id": null,
  65. "links": [],
  66. "liveNow": false,
  67. "panels": [
  68. {
  69. "datasource": {
  70. "type": "prometheus",
  71. "uid": "${DS_PROMETHEUS}"
  72. },
  73. "fieldConfig": {
  74. "defaults": {
  75. "color": {
  76. "mode": "palette-classic"
  77. },
  78. "custom": {
  79. "axisCenteredZero": false,
  80. "axisColorMode": "text",
  81. "axisLabel": "",
  82. "axisPlacement": "auto",
  83. "barAlignment": 0,
  84. "drawStyle": "line",
  85. "fillOpacity": 10,
  86. "gradientMode": "none",
  87. "hideFrom": {
  88. "legend": false,
  89. "tooltip": false,
  90. "viz": false
  91. },
  92. "insertNulls": false,
  93. "lineInterpolation": "linear",
  94. "lineWidth": 1,
  95. "pointSize": 5,
  96. "scaleDistribution": {
  97. "type": "linear"
  98. },
  99. "showPoints": "never",
  100. "spanNulls": false,
  101. "stacking": {
  102. "group": "A",
  103. "mode": "none"
  104. },
  105. "thresholdsStyle": {
  106. "mode": "off"
  107. }
  108. },
  109. "links": [],
  110. "mappings": [],
  111. "thresholds": {
  112. "mode": "absolute",
  113. "steps": [
  114. {
  115. "color": "green",
  116. "value": null
  117. },
  118. {
  119. "color": "red",
  120. "value": 80
  121. }
  122. ]
  123. },
  124. "unit": "hertz"
  125. },
  126. "overrides": []
  127. },
  128. "gridPos": {
  129. "h": 9,
  130. "w": 12,
  131. "x": 0,
  132. "y": 0
  133. },
  134. "id": 2,
  135. "links": [],
  136. "options": {
  137. "legend": {
  138. "calcs": [],
  139. "displayMode": "list",
  140. "placement": "bottom",
  141. "showLegend": true
  142. },
  143. "tooltip": {
  144. "mode": "multi",
  145. "sort": "none"
  146. }
  147. },
  148. "pluginVersion": "10.1.0",
  149. "targets": [
  150. {
  151. "datasource": {
  152. "type": "prometheus",
  153. "uid": "${DS_PROMETHEUS}"
  154. },
  155. "editorMode": "code",
  156. "expr": "rate(media_http_requests_total[2m])",
  157. "format": "time_series",
  158. "intervalFactor": 1,
  159. "legendFormat": "{{ '{{host}}: {{method}} {{action}}' }}",
  160. "range": true,
  161. "refId": "A"
  162. },
  163. {
  164. "datasource": {
  165. "type": "prometheus",
  166. "uid": "${DS_PROMETHEUS}"
  167. },
  168. "editorMode": "code",
  169. "expr": "rate(media_invalid_http_requests_total[2m])",
  170. "format": "time_series",
  171. "intervalFactor": 1,
  172. "legendFormat": "{{ 'Invalid Host: {{method}} {{action}}' }}",
  173. "range": true,
  174. "refId": "B"
  175. }
  176. ],
  177. "title": "HTTP Requsts",
  178. "type": "timeseries"
  179. },
  180. {
  181. "datasource": {
  182. "type": "prometheus",
  183. "uid": "${DS_PROMETHEUS}"
  184. },
  185. "fieldConfig": {
  186. "defaults": {
  187. "color": {
  188. "mode": "palette-classic"
  189. },
  190. "custom": {
  191. "axisCenteredZero": false,
  192. "axisColorMode": "text",
  193. "axisLabel": "",
  194. "axisPlacement": "auto",
  195. "barAlignment": 0,
  196. "drawStyle": "line",
  197. "fillOpacity": 10,
  198. "gradientMode": "none",
  199. "hideFrom": {
  200. "legend": false,
  201. "tooltip": false,
  202. "viz": false
  203. },
  204. "insertNulls": false,
  205. "lineInterpolation": "linear",
  206. "lineWidth": 1,
  207. "pointSize": 5,
  208. "scaleDistribution": {
  209. "type": "linear"
  210. },
  211. "showPoints": "never",
  212. "spanNulls": false,
  213. "stacking": {
  214. "group": "A",
  215. "mode": "none"
  216. },
  217. "thresholdsStyle": {
  218. "mode": "off"
  219. }
  220. },
  221. "links": [],
  222. "mappings": [],
  223. "thresholds": {
  224. "mode": "absolute",
  225. "steps": [
  226. {
  227. "color": "green",
  228. "value": null
  229. },
  230. {
  231. "color": "red",
  232. "value": 80
  233. }
  234. ]
  235. },
  236. "unit": "hertz"
  237. },
  238. "overrides": []
  239. },
  240. "gridPos": {
  241. "h": 9,
  242. "w": 12,
  243. "x": 12,
  244. "y": 0
  245. },
  246. "id": 3,
  247. "links": [],
  248. "options": {
  249. "legend": {
  250. "calcs": [],
  251. "displayMode": "list",
  252. "placement": "bottom",
  253. "showLegend": true
  254. },
  255. "tooltip": {
  256. "mode": "multi",
  257. "sort": "none"
  258. }
  259. },
  260. "pluginVersion": "10.1.0",
  261. "targets": [
  262. {
  263. "datasource": {
  264. "type": "prometheus",
  265. "uid": "${DS_PROMETHEUS}"
  266. },
  267. "editorMode": "code",
  268. "expr": "rate(media_http_responses_total[2m])",
  269. "format": "time_series",
  270. "intervalFactor": 1,
  271. "legendFormat": "{{ '{{host}}: {{method}} {{action}} {{statusCode}}' }}",
  272. "range": true,
  273. "refId": "A"
  274. },
  275. {
  276. "datasource": {
  277. "type": "prometheus",
  278. "uid": "${DS_PROMETHEUS}"
  279. },
  280. "editorMode": "code",
  281. "expr": "rate(media_invalid_http_requests_total[2m])",
  282. "format": "time_series",
  283. "hide": false,
  284. "intervalFactor": 1,
  285. "legendFormat": "{{ 'Invalid Host: {{method}} {{action}} {{statusCode}}' }}",
  286. "range": true,
  287. "refId": "B"
  288. }
  289. ],
  290. "title": "HTTP Responses",
  291. "type": "timeseries"
  292. },
  293. {
  294. "datasource": {
  295. "type": "prometheus",
  296. "uid": "${DS_PROMETHEUS}"
  297. },
  298. "description": "",
  299. "fieldConfig": {
  300. "defaults": {
  301. "custom": {
  302. "hideFrom": {
  303. "legend": false,
  304. "tooltip": false,
  305. "viz": false
  306. },
  307. "scaleDistribution": {
  308. "type": "linear"
  309. }
  310. }
  311. },
  312. "overrides": []
  313. },
  314. "gridPos": {
  315. "h": 9,
  316. "w": 12,
  317. "x": 0,
  318. "y": 9
  319. },
  320. "id": 11,
  321. "maxDataPoints": 5000,
  322. "options": {
  323. "calculate": false,
  324. "calculation": {
  325. "xBuckets": {
  326. "mode": "size",
  327. "value": ""
  328. }
  329. },
  330. "cellGap": 1,
  331. "color": {
  332. "exponent": 0.5,
  333. "fill": "dark-orange",
  334. "mode": "scheme",
  335. "reverse": false,
  336. "scale": "exponential",
  337. "scheme": "Spectral",
  338. "steps": 64
  339. },
  340. "exemplars": {
  341. "color": "rgba(255,0,255,0.7)"
  342. },
  343. "filterValues": {
  344. "le": 1e-9
  345. },
  346. "legend": {
  347. "show": true
  348. },
  349. "rowsFrame": {
  350. "layout": "auto"
  351. },
  352. "tooltip": {
  353. "show": true,
  354. "yHistogram": false
  355. },
  356. "yAxis": {
  357. "axisPlacement": "left",
  358. "decimals": 0,
  359. "reverse": false,
  360. "unit": "s"
  361. }
  362. },
  363. "pluginVersion": "10.1.0",
  364. "targets": [
  365. {
  366. "datasource": {
  367. "type": "prometheus",
  368. "uid": "${DS_PROMETHEUS}"
  369. },
  370. "editorMode": "code",
  371. "exemplar": false,
  372. "expr": "sum(rate(media_http_response_time_seconds_bucket{action=~\"download|thumbnail\"}[2m])) by (le)",
  373. "format": "heatmap",
  374. "instant": false,
  375. "interval": "",
  376. "legendFormat": "{{ '{{method}} {{action}} - {{le}}' }}",
  377. "range": true,
  378. "refId": "A"
  379. }
  380. ],
  381. "title": "Downloads and Thumbnails - Response Time",
  382. "type": "heatmap"
  383. },
  384. {
  385. "datasource": {
  386. "type": "prometheus",
  387. "uid": "${DS_PROMETHEUS}"
  388. },
  389. "description": "",
  390. "fieldConfig": {
  391. "defaults": {
  392. "custom": {
  393. "hideFrom": {
  394. "legend": false,
  395. "tooltip": false,
  396. "viz": false
  397. },
  398. "scaleDistribution": {
  399. "type": "linear"
  400. }
  401. }
  402. },
  403. "overrides": []
  404. },
  405. "gridPos": {
  406. "h": 9,
  407. "w": 12,
  408. "x": 12,
  409. "y": 9
  410. },
  411. "id": 12,
  412. "maxDataPoints": 5000,
  413. "options": {
  414. "calculate": false,
  415. "calculation": {
  416. "xBuckets": {
  417. "mode": "size",
  418. "value": ""
  419. }
  420. },
  421. "cellGap": 1,
  422. "color": {
  423. "exponent": 0.5,
  424. "fill": "dark-orange",
  425. "mode": "scheme",
  426. "reverse": false,
  427. "scale": "exponential",
  428. "scheme": "Spectral",
  429. "steps": 64
  430. },
  431. "exemplars": {
  432. "color": "rgba(255,0,255,0.7)"
  433. },
  434. "filterValues": {
  435. "le": 1e-9
  436. },
  437. "legend": {
  438. "show": true
  439. },
  440. "rowsFrame": {
  441. "layout": "auto"
  442. },
  443. "tooltip": {
  444. "show": true,
  445. "yHistogram": false
  446. },
  447. "yAxis": {
  448. "axisPlacement": "left",
  449. "decimals": 0,
  450. "reverse": false,
  451. "unit": "s"
  452. }
  453. },
  454. "pluginVersion": "10.1.0",
  455. "targets": [
  456. {
  457. "datasource": {
  458. "type": "prometheus",
  459. "uid": "${DS_PROMETHEUS}"
  460. },
  461. "editorMode": "code",
  462. "exemplar": false,
  463. "expr": "sum(rate(media_http_response_time_seconds_bucket{action=\"upload\"}[2m])) by (le)",
  464. "format": "heatmap",
  465. "instant": false,
  466. "legendFormat": "{{ '{{method}} {{action}} - {{le}}' }}",
  467. "range": true,
  468. "refId": "A"
  469. }
  470. ],
  471. "title": "Uploads - Response Time",
  472. "type": "heatmap"
  473. },
  474. {
  475. "datasource": {
  476. "type": "prometheus",
  477. "uid": "${DS_PROMETHEUS}"
  478. },
  479. "fieldConfig": {
  480. "defaults": {
  481. "color": {
  482. "mode": "palette-classic"
  483. },
  484. "custom": {
  485. "axisCenteredZero": false,
  486. "axisColorMode": "text",
  487. "axisLabel": "",
  488. "axisPlacement": "auto",
  489. "barAlignment": 0,
  490. "drawStyle": "line",
  491. "fillOpacity": 10,
  492. "gradientMode": "none",
  493. "hideFrom": {
  494. "legend": false,
  495. "tooltip": false,
  496. "viz": false
  497. },
  498. "insertNulls": false,
  499. "lineInterpolation": "linear",
  500. "lineWidth": 1,
  501. "pointSize": 5,
  502. "scaleDistribution": {
  503. "type": "linear"
  504. },
  505. "showPoints": "never",
  506. "spanNulls": false,
  507. "stacking": {
  508. "group": "A",
  509. "mode": "none"
  510. },
  511. "thresholdsStyle": {
  512. "mode": "off"
  513. }
  514. },
  515. "links": [],
  516. "mappings": [],
  517. "thresholds": {
  518. "mode": "absolute",
  519. "steps": [
  520. {
  521. "color": "green",
  522. "value": null
  523. },
  524. {
  525. "color": "red",
  526. "value": 80
  527. }
  528. ]
  529. },
  530. "unit": "bytes"
  531. },
  532. "overrides": []
  533. },
  534. "gridPos": {
  535. "h": 9,
  536. "w": 12,
  537. "x": 0,
  538. "y": 18
  539. },
  540. "id": 8,
  541. "links": [],
  542. "options": {
  543. "legend": {
  544. "calcs": [],
  545. "displayMode": "list",
  546. "placement": "bottom",
  547. "showLegend": true
  548. },
  549. "tooltip": {
  550. "mode": "multi",
  551. "sort": "none"
  552. }
  553. },
  554. "pluginVersion": "10.1.0",
  555. "targets": [
  556. {
  557. "datasource": {
  558. "type": "prometheus",
  559. "uid": "${DS_PROMETHEUS}"
  560. },
  561. "editorMode": "code",
  562. "exemplar": true,
  563. "expr": "go_memstats_alloc_bytes{job=\"media_repo\"}",
  564. "format": "time_series",
  565. "interval": "",
  566. "intervalFactor": 1,
  567. "legendFormat": "memory usage (alloc)",
  568. "range": true,
  569. "refId": "B"
  570. },
  571. {
  572. "datasource": {
  573. "type": "prometheus",
  574. "uid": "${DS_PROMETHEUS}"
  575. },
  576. "exemplar": true,
  577. "expr": "go_memstats_sys_bytes{job=\"media_repo\"}",
  578. "interval": "",
  579. "legendFormat": "memory usage (sys)",
  580. "refId": "C"
  581. },
  582. {
  583. "datasource": {
  584. "type": "prometheus",
  585. "uid": "${DS_PROMETHEUS}"
  586. },
  587. "exemplar": true,
  588. "expr": "go_memstats_heap_alloc_bytes{job=\"media_repo\"}",
  589. "interval": "",
  590. "legendFormat": "heap usage (alloc)",
  591. "refId": "A"
  592. },
  593. {
  594. "datasource": {
  595. "type": "prometheus",
  596. "uid": "${DS_PROMETHEUS}"
  597. },
  598. "exemplar": true,
  599. "expr": "go_memstats_heap_idle_bytes{job=\"media_repo\"}",
  600. "interval": "",
  601. "legendFormat": "heap usage (idle)",
  602. "refId": "D"
  603. },
  604. {
  605. "datasource": {
  606. "type": "prometheus",
  607. "uid": "${DS_PROMETHEUS}"
  608. },
  609. "exemplar": true,
  610. "expr": "go_memstats_heap_inuse_bytes{job=\"media_repo\"}",
  611. "interval": "",
  612. "legendFormat": "heap usage (used)",
  613. "refId": "E"
  614. },
  615. {
  616. "datasource": {
  617. "type": "prometheus",
  618. "uid": "${DS_PROMETHEUS}"
  619. },
  620. "editorMode": "code",
  621. "exemplar": true,
  622. "expr": "go_memstats_heap_released_bytes{job=\"media_repo\"}",
  623. "hide": false,
  624. "legendFormat": "heap usage (released)",
  625. "range": true,
  626. "refId": "F"
  627. }
  628. ],
  629. "title": "Memory Usage",
  630. "type": "timeseries"
  631. },
  632. {
  633. "datasource": {
  634. "type": "prometheus",
  635. "uid": "${DS_PROMETHEUS}"
  636. },
  637. "fieldConfig": {
  638. "defaults": {
  639. "color": {
  640. "mode": "palette-classic"
  641. },
  642. "custom": {
  643. "axisCenteredZero": false,
  644. "axisColorMode": "text",
  645. "axisLabel": "",
  646. "axisPlacement": "auto",
  647. "barAlignment": 0,
  648. "drawStyle": "line",
  649. "fillOpacity": 10,
  650. "gradientMode": "none",
  651. "hideFrom": {
  652. "legend": false,
  653. "tooltip": false,
  654. "viz": false
  655. },
  656. "insertNulls": false,
  657. "lineInterpolation": "linear",
  658. "lineWidth": 1,
  659. "pointSize": 5,
  660. "scaleDistribution": {
  661. "type": "linear"
  662. },
  663. "showPoints": "never",
  664. "spanNulls": false,
  665. "stacking": {
  666. "group": "A",
  667. "mode": "none"
  668. },
  669. "thresholdsStyle": {
  670. "mode": "off"
  671. }
  672. },
  673. "links": [],
  674. "mappings": [],
  675. "thresholds": {
  676. "mode": "absolute",
  677. "steps": [
  678. {
  679. "color": "green",
  680. "value": null
  681. },
  682. {
  683. "color": "red",
  684. "value": 80
  685. }
  686. ]
  687. },
  688. "unit": "none"
  689. },
  690. "overrides": []
  691. },
  692. "gridPos": {
  693. "h": 9,
  694. "w": 12,
  695. "x": 12,
  696. "y": 18
  697. },
  698. "id": 10,
  699. "links": [],
  700. "options": {
  701. "legend": {
  702. "calcs": [],
  703. "displayMode": "list",
  704. "placement": "bottom",
  705. "showLegend": true
  706. },
  707. "tooltip": {
  708. "mode": "multi",
  709. "sort": "none"
  710. }
  711. },
  712. "pluginVersion": "10.1.0",
  713. "targets": [
  714. {
  715. "datasource": {
  716. "type": "prometheus",
  717. "uid": "${DS_PROMETHEUS}"
  718. },
  719. "editorMode": "code",
  720. "exemplar": true,
  721. "expr": "go_goroutines{job=\"media_repo\"}",
  722. "format": "time_series",
  723. "interval": "",
  724. "intervalFactor": 1,
  725. "legendFormat": "goroutines",
  726. "range": true,
  727. "refId": "B"
  728. },
  729. {
  730. "datasource": {
  731. "type": "prometheus",
  732. "uid": "${DS_PROMETHEUS}"
  733. },
  734. "editorMode": "code",
  735. "exemplar": true,
  736. "expr": "go_threads{job=\"media_repo\"}",
  737. "format": "time_series",
  738. "hide": false,
  739. "interval": "",
  740. "intervalFactor": 1,
  741. "legendFormat": "threads",
  742. "range": true,
  743. "refId": "A"
  744. }
  745. ],
  746. "title": "Process Composition",
  747. "type": "timeseries"
  748. },
  749. {
  750. "datasource": {
  751. "type": "prometheus",
  752. "uid": "${DS_PROMETHEUS}"
  753. },
  754. "fieldConfig": {
  755. "defaults": {
  756. "color": {
  757. "mode": "palette-classic"
  758. },
  759. "custom": {
  760. "axisCenteredZero": false,
  761. "axisColorMode": "text",
  762. "axisLabel": "",
  763. "axisPlacement": "auto",
  764. "barAlignment": 0,
  765. "drawStyle": "line",
  766. "fillOpacity": 10,
  767. "gradientMode": "none",
  768. "hideFrom": {
  769. "legend": false,
  770. "tooltip": false,
  771. "viz": false
  772. },
  773. "insertNulls": false,
  774. "lineInterpolation": "linear",
  775. "lineWidth": 1,
  776. "pointSize": 5,
  777. "scaleDistribution": {
  778. "type": "linear"
  779. },
  780. "showPoints": "never",
  781. "spanNulls": false,
  782. "stacking": {
  783. "group": "A",
  784. "mode": "none"
  785. },
  786. "thresholdsStyle": {
  787. "mode": "off"
  788. }
  789. },
  790. "links": [],
  791. "mappings": [],
  792. "thresholds": {
  793. "mode": "absolute",
  794. "steps": [
  795. {
  796. "color": "green",
  797. "value": null
  798. },
  799. {
  800. "color": "red",
  801. "value": 80
  802. }
  803. ]
  804. },
  805. "unit": "hertz"
  806. },
  807. "overrides": []
  808. },
  809. "gridPos": {
  810. "h": 9,
  811. "w": 12,
  812. "x": 0,
  813. "y": 27
  814. },
  815. "id": 9,
  816. "links": [],
  817. "options": {
  818. "legend": {
  819. "calcs": [],
  820. "displayMode": "list",
  821. "placement": "bottom",
  822. "showLegend": true
  823. },
  824. "tooltip": {
  825. "mode": "multi",
  826. "sort": "desc"
  827. }
  828. },
  829. "pluginVersion": "10.1.0",
  830. "targets": [
  831. {
  832. "datasource": {
  833. "type": "prometheus",
  834. "uid": "${DS_PROMETHEUS}"
  835. },
  836. "editorMode": "code",
  837. "expr": "rate(media_s3_operations_total[2m])",
  838. "format": "time_series",
  839. "intervalFactor": 1,
  840. "legendFormat": "{{ '{{operation}}' }}",
  841. "range": true,
  842. "refId": "A"
  843. }
  844. ],
  845. "title": "S3 Operations",
  846. "type": "timeseries"
  847. },
  848. {
  849. "datasource": {
  850. "type": "prometheus",
  851. "uid": "${DS_PROMETHEUS}"
  852. },
  853. "fieldConfig": {
  854. "defaults": {
  855. "color": {
  856. "mode": "palette-classic"
  857. },
  858. "custom": {
  859. "axisCenteredZero": false,
  860. "axisColorMode": "text",
  861. "axisLabel": "",
  862. "axisPlacement": "auto",
  863. "barAlignment": 0,
  864. "drawStyle": "line",
  865. "fillOpacity": 10,
  866. "gradientMode": "none",
  867. "hideFrom": {
  868. "legend": false,
  869. "tooltip": false,
  870. "viz": false
  871. },
  872. "insertNulls": false,
  873. "lineInterpolation": "linear",
  874. "lineWidth": 1,
  875. "pointSize": 5,
  876. "scaleDistribution": {
  877. "type": "linear"
  878. },
  879. "showPoints": "never",
  880. "spanNulls": false,
  881. "stacking": {
  882. "group": "A",
  883. "mode": "none"
  884. },
  885. "thresholdsStyle": {
  886. "mode": "off"
  887. }
  888. },
  889. "links": [],
  890. "mappings": [],
  891. "thresholds": {
  892. "mode": "absolute",
  893. "steps": [
  894. {
  895. "color": "green",
  896. "value": null
  897. },
  898. {
  899. "color": "red",
  900. "value": 80
  901. }
  902. ]
  903. },
  904. "unit": "hertz"
  905. },
  906. "overrides": []
  907. },
  908. "gridPos": {
  909. "h": 9,
  910. "w": 12,
  911. "x": 12,
  912. "y": 27
  913. },
  914. "id": 5,
  915. "links": [],
  916. "options": {
  917. "legend": {
  918. "calcs": [],
  919. "displayMode": "list",
  920. "placement": "bottom",
  921. "showLegend": true
  922. },
  923. "tooltip": {
  924. "mode": "multi",
  925. "sort": "none"
  926. }
  927. },
  928. "pluginVersion": "10.1.0",
  929. "targets": [
  930. {
  931. "datasource": {
  932. "type": "prometheus",
  933. "uid": "${DS_PROMETHEUS}"
  934. },
  935. "expr": "rate(media_cache_hits_total[2m])",
  936. "format": "time_series",
  937. "intervalFactor": 1,
  938. "legendFormat": "{{ 'hits in {{cache}}' }}",
  939. "refId": "A"
  940. },
  941. {
  942. "datasource": {
  943. "type": "prometheus",
  944. "uid": "${DS_PROMETHEUS}"
  945. },
  946. "expr": "rate(media_cache_misses_total[2m])",
  947. "format": "time_series",
  948. "intervalFactor": 1,
  949. "legendFormat": "{{ 'misses in {{cache}}' }}",
  950. "refId": "B"
  951. },
  952. {
  953. "datasource": {
  954. "type": "prometheus",
  955. "uid": "${DS_PROMETHEUS}"
  956. },
  957. "expr": "rate(media_cache_evictions_total[2m])",
  958. "format": "time_series",
  959. "intervalFactor": 1,
  960. "legendFormat": "{{ 'evictions due to {{reason}} in {{cache}}' }}",
  961. "refId": "C"
  962. }
  963. ],
  964. "title": "Cache Operations",
  965. "type": "timeseries"
  966. },
  967. {
  968. "datasource": {
  969. "type": "prometheus",
  970. "uid": "${DS_PROMETHEUS}"
  971. },
  972. "fieldConfig": {
  973. "defaults": {
  974. "color": {
  975. "mode": "palette-classic"
  976. },
  977. "custom": {
  978. "axisCenteredZero": false,
  979. "axisColorMode": "text",
  980. "axisLabel": "",
  981. "axisPlacement": "auto",
  982. "barAlignment": 0,
  983. "drawStyle": "line",
  984. "fillOpacity": 10,
  985. "gradientMode": "none",
  986. "hideFrom": {
  987. "legend": false,
  988. "tooltip": false,
  989. "viz": false
  990. },
  991. "insertNulls": false,
  992. "lineInterpolation": "linear",
  993. "lineWidth": 1,
  994. "pointSize": 5,
  995. "scaleDistribution": {
  996. "type": "linear"
  997. },
  998. "showPoints": "never",
  999. "spanNulls": false,
  1000. "stacking": {
  1001. "group": "A",
  1002. "mode": "none"
  1003. },
  1004. "thresholdsStyle": {
  1005. "mode": "off"
  1006. }
  1007. },
  1008. "links": [],
  1009. "mappings": [],
  1010. "thresholds": {
  1011. "mode": "absolute",
  1012. "steps": [
  1013. {
  1014. "color": "green",
  1015. "value": null
  1016. },
  1017. {
  1018. "color": "red",
  1019. "value": 80
  1020. }
  1021. ]
  1022. },
  1023. "unit": "hertz"
  1024. },
  1025. "overrides": []
  1026. },
  1027. "gridPos": {
  1028. "h": 9,
  1029. "w": 12,
  1030. "x": 0,
  1031. "y": 36
  1032. },
  1033. "id": 6,
  1034. "links": [],
  1035. "options": {
  1036. "legend": {
  1037. "calcs": [],
  1038. "displayMode": "list",
  1039. "placement": "bottom",
  1040. "showLegend": true
  1041. },
  1042. "tooltip": {
  1043. "mode": "multi",
  1044. "sort": "desc"
  1045. }
  1046. },
  1047. "pluginVersion": "10.1.0",
  1048. "targets": [
  1049. {
  1050. "datasource": {
  1051. "type": "prometheus",
  1052. "uid": "${DS_PROMETHEUS}"
  1053. },
  1054. "expr": "rate(media_thumbnails_generated_total[2m])",
  1055. "format": "time_series",
  1056. "intervalFactor": 1,
  1057. "legendFormat": "{{ '{{origin}} {{width}}x{{height}} {{method}} animated={{animated}}' }}",
  1058. "refId": "A"
  1059. }
  1060. ],
  1061. "title": "Thumbnail Generation",
  1062. "type": "timeseries"
  1063. },
  1064. {
  1065. "datasource": {
  1066. "type": "prometheus",
  1067. "uid": "${DS_PROMETHEUS}"
  1068. },
  1069. "description": "",
  1070. "fieldConfig": {
  1071. "defaults": {
  1072. "custom": {
  1073. "hideFrom": {
  1074. "legend": false,
  1075. "tooltip": false,
  1076. "viz": false
  1077. },
  1078. "scaleDistribution": {
  1079. "type": "linear"
  1080. }
  1081. }
  1082. },
  1083. "overrides": []
  1084. },
  1085. "gridPos": {
  1086. "h": 9,
  1087. "w": 12,
  1088. "x": 12,
  1089. "y": 36
  1090. },
  1091. "id": 13,
  1092. "maxDataPoints": 5000,
  1093. "options": {
  1094. "calculate": false,
  1095. "calculation": {
  1096. "xBuckets": {
  1097. "mode": "size",
  1098. "value": ""
  1099. }
  1100. },
  1101. "cellGap": 1,
  1102. "color": {
  1103. "exponent": 0.5,
  1104. "fill": "dark-orange",
  1105. "mode": "scheme",
  1106. "reverse": false,
  1107. "scale": "exponential",
  1108. "scheme": "Spectral",
  1109. "steps": 64
  1110. },
  1111. "exemplars": {
  1112. "color": "rgba(255,0,255,0.7)"
  1113. },
  1114. "filterValues": {
  1115. "le": 1e-9
  1116. },
  1117. "legend": {
  1118. "show": true
  1119. },
  1120. "rowsFrame": {
  1121. "layout": "auto"
  1122. },
  1123. "tooltip": {
  1124. "show": true,
  1125. "yHistogram": false
  1126. },
  1127. "yAxis": {
  1128. "axisPlacement": "left",
  1129. "decimals": 0,
  1130. "reverse": false,
  1131. "unit": "s"
  1132. }
  1133. },
  1134. "pluginVersion": "10.1.0",
  1135. "targets": [
  1136. {
  1137. "datasource": {
  1138. "type": "prometheus",
  1139. "uid": "${DS_PROMETHEUS}"
  1140. },
  1141. "editorMode": "code",
  1142. "exemplar": false,
  1143. "expr": "sum(rate(media_age_accessed_media_seconds_bucket[2m])) by (le)",
  1144. "format": "heatmap",
  1145. "instant": false,
  1146. "legendFormat": "{{ '{{method}} {{action}} - {{le}}' }}",
  1147. "range": true,
  1148. "refId": "A"
  1149. }
  1150. ],
  1151. "title": "Age of Downloaded Media",
  1152. "type": "heatmap"
  1153. },
  1154. {
  1155. "datasource": {
  1156. "type": "prometheus",
  1157. "uid": "${DS_PROMETHEUS}"
  1158. },
  1159. "fieldConfig": {
  1160. "defaults": {
  1161. "color": {
  1162. "mode": "palette-classic"
  1163. },
  1164. "custom": {
  1165. "axisCenteredZero": false,
  1166. "axisColorMode": "text",
  1167. "axisLabel": "",
  1168. "axisPlacement": "auto",
  1169. "barAlignment": 0,
  1170. "drawStyle": "line",
  1171. "fillOpacity": 10,
  1172. "gradientMode": "none",
  1173. "hideFrom": {
  1174. "legend": false,
  1175. "tooltip": false,
  1176. "viz": false
  1177. },
  1178. "insertNulls": false,
  1179. "lineInterpolation": "linear",
  1180. "lineWidth": 1,
  1181. "pointSize": 5,
  1182. "scaleDistribution": {
  1183. "type": "linear"
  1184. },
  1185. "showPoints": "never",
  1186. "spanNulls": false,
  1187. "stacking": {
  1188. "group": "A",
  1189. "mode": "none"
  1190. },
  1191. "thresholdsStyle": {
  1192. "mode": "off"
  1193. }
  1194. },
  1195. "links": [],
  1196. "mappings": [],
  1197. "thresholds": {
  1198. "mode": "absolute",
  1199. "steps": [
  1200. {
  1201. "color": "green",
  1202. "value": null
  1203. },
  1204. {
  1205. "color": "red",
  1206. "value": 80
  1207. }
  1208. ]
  1209. },
  1210. "unit": "hertz"
  1211. },
  1212. "overrides": []
  1213. },
  1214. "gridPos": {
  1215. "h": 9,
  1216. "w": 12,
  1217. "x": 0,
  1218. "y": 45
  1219. },
  1220. "id": 7,
  1221. "links": [],
  1222. "options": {
  1223. "legend": {
  1224. "calcs": [],
  1225. "displayMode": "list",
  1226. "placement": "bottom",
  1227. "showLegend": true
  1228. },
  1229. "tooltip": {
  1230. "mode": "multi",
  1231. "sort": "desc"
  1232. }
  1233. },
  1234. "pluginVersion": "10.1.0",
  1235. "targets": [
  1236. {
  1237. "datasource": {
  1238. "type": "prometheus",
  1239. "uid": "${DS_PROMETHEUS}"
  1240. },
  1241. "expr": "rate(media_downloaded_total[2m])",
  1242. "format": "time_series",
  1243. "intervalFactor": 1,
  1244. "legendFormat": "{{ 'downloads from {{origin}}' }}",
  1245. "refId": "A"
  1246. },
  1247. {
  1248. "datasource": {
  1249. "type": "prometheus",
  1250. "uid": "${DS_PROMETHEUS}"
  1251. },
  1252. "expr": "rate(media_url_previews_generated_total[2m])",
  1253. "format": "time_series",
  1254. "intervalFactor": 1,
  1255. "legendFormat": "{{ 'preview with engine: {{type}}' }}",
  1256. "refId": "B"
  1257. }
  1258. ],
  1259. "title": "Resource Handling",
  1260. "type": "timeseries"
  1261. }
  1262. ],
  1263. "refresh": "1m",
  1264. "schemaVersion": 38,
  1265. "style": "dark",
  1266. "tags": [],
  1267. "templating": {
  1268. "list": []
  1269. },
  1270. "time": {
  1271. "from": "now-1h",
  1272. "to": "now"
  1273. },
  1274. "timepicker": {
  1275. "refresh_intervals": [
  1276. "5s",
  1277. "10s",
  1278. "30s",
  1279. "1m",
  1280. "5m",
  1281. "15m",
  1282. "30m",
  1283. "1h",
  1284. "2h",
  1285. "1d"
  1286. ],
  1287. "time_options": [
  1288. "5m",
  1289. "15m",
  1290. "1h",
  1291. "6h",
  1292. "12h",
  1293. "24h",
  1294. "2d",
  1295. "7d",
  1296. "30d"
  1297. ]
  1298. },
  1299. "timezone": "",
  1300. "title": "Media Repo Dashboard",
  1301. "uid": "xJUZ3xfmk",
  1302. "version": 15,
  1303. "weekStart": ""
  1304. }