Matrix Docker Ansible eploy
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

1304 Zeilen
31 KiB

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