Matrix Docker Ansible eploy
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 

1706 рядки
46 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": "9.3.1"
  19. },
  20. {
  21. "type": "datasource",
  22. "id": "prometheus",
  23. "name": "Prometheus",
  24. "version": "1.0.0"
  25. },
  26. {
  27. "type": "panel",
  28. "id": "timeseries",
  29. "name": "Time series",
  30. "version": ""
  31. }
  32. ],
  33. "annotations": {
  34. "list": [
  35. {
  36. "builtIn": 1,
  37. "datasource": {
  38. "type": "grafana",
  39. "uid": "-- Grafana --"
  40. },
  41. "enable": true,
  42. "hide": true,
  43. "iconColor": "rgba(0, 211, 255, 1)",
  44. "name": "Annotations & Alerts",
  45. "target": {
  46. "limit": 100,
  47. "matchAny": false,
  48. "tags": [],
  49. "type": "dashboard"
  50. },
  51. "type": "dashboard"
  52. }
  53. ]
  54. },
  55. "description": "",
  56. "editable": true,
  57. "fiscalYearStartMonth": 0,
  58. "graphTooltip": 0,
  59. "id": 5,
  60. "links": [],
  61. "liveNow": false,
  62. "panels": [
  63. {
  64. "collapsed": true,
  65. "gridPos": {
  66. "h": 1,
  67. "w": 24,
  68. "x": 0,
  69. "y": 0
  70. },
  71. "id": 23,
  72. "panels": [
  73. {
  74. "datasource": {
  75. "type": "prometheus",
  76. "uid": "${DS_PROMETHEUS}"
  77. },
  78. "description": "",
  79. "fieldConfig": {
  80. "defaults": {
  81. "color": {
  82. "mode": "palette-classic"
  83. },
  84. "custom": {
  85. "axisCenteredZero": false,
  86. "axisColorMode": "text",
  87. "axisLabel": "",
  88. "axisPlacement": "auto",
  89. "barAlignment": 0,
  90. "drawStyle": "line",
  91. "fillOpacity": 0,
  92. "gradientMode": "none",
  93. "hideFrom": {
  94. "legend": false,
  95. "tooltip": false,
  96. "viz": false
  97. },
  98. "lineInterpolation": "linear",
  99. "lineWidth": 1,
  100. "pointSize": 5,
  101. "scaleDistribution": {
  102. "type": "linear"
  103. },
  104. "showPoints": "auto",
  105. "spanNulls": false,
  106. "stacking": {
  107. "group": "A",
  108. "mode": "none"
  109. },
  110. "thresholdsStyle": {
  111. "mode": "off"
  112. }
  113. },
  114. "mappings": [],
  115. "thresholds": {
  116. "mode": "absolute",
  117. "steps": [
  118. {
  119. "color": "green",
  120. "value": null
  121. },
  122. {
  123. "color": "red",
  124. "value": 80
  125. }
  126. ]
  127. }
  128. },
  129. "overrides": []
  130. },
  131. "gridPos": {
  132. "h": 8,
  133. "w": 12,
  134. "x": 0,
  135. "y": 1
  136. },
  137. "id": 20,
  138. "options": {
  139. "legend": {
  140. "calcs": [],
  141. "displayMode": "list",
  142. "placement": "bottom",
  143. "showLegend": true
  144. },
  145. "tooltip": {
  146. "mode": "single",
  147. "sort": "none"
  148. }
  149. },
  150. "targets": [
  151. {
  152. "datasource": {
  153. "type": "prometheus",
  154. "uid": "${DS_PROMETHEUS}"
  155. },
  156. "editorMode": "builder",
  157. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"1.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  158. "hide": false,
  159. "legendFormat": "__auto",
  160. "range": true,
  161. "refId": "B"
  162. }
  163. ],
  164. "title": "1xx by upstream addr[$request_host]",
  165. "type": "timeseries"
  166. },
  167. {
  168. "datasource": {
  169. "type": "prometheus",
  170. "uid": "${DS_PROMETHEUS}"
  171. },
  172. "description": "",
  173. "fieldConfig": {
  174. "defaults": {
  175. "color": {
  176. "mode": "palette-classic"
  177. },
  178. "custom": {
  179. "axisCenteredZero": false,
  180. "axisColorMode": "text",
  181. "axisLabel": "",
  182. "axisPlacement": "auto",
  183. "barAlignment": 0,
  184. "drawStyle": "line",
  185. "fillOpacity": 0,
  186. "gradientMode": "none",
  187. "hideFrom": {
  188. "legend": false,
  189. "tooltip": false,
  190. "viz": false
  191. },
  192. "lineInterpolation": "linear",
  193. "lineWidth": 1,
  194. "pointSize": 5,
  195. "scaleDistribution": {
  196. "type": "linear"
  197. },
  198. "showPoints": "auto",
  199. "spanNulls": false,
  200. "stacking": {
  201. "group": "A",
  202. "mode": "none"
  203. },
  204. "thresholdsStyle": {
  205. "mode": "off"
  206. }
  207. },
  208. "mappings": [],
  209. "thresholds": {
  210. "mode": "absolute",
  211. "steps": [
  212. {
  213. "color": "green",
  214. "value": null
  215. },
  216. {
  217. "color": "red",
  218. "value": 80
  219. }
  220. ]
  221. }
  222. },
  223. "overrides": []
  224. },
  225. "gridPos": {
  226. "h": 8,
  227. "w": 12,
  228. "x": 12,
  229. "y": 1
  230. },
  231. "id": 21,
  232. "options": {
  233. "legend": {
  234. "calcs": [],
  235. "displayMode": "list",
  236. "placement": "bottom",
  237. "showLegend": true
  238. },
  239. "tooltip": {
  240. "mode": "single",
  241. "sort": "none"
  242. }
  243. },
  244. "targets": [
  245. {
  246. "datasource": {
  247. "type": "prometheus",
  248. "uid": "${DS_PROMETHEUS}"
  249. },
  250. "editorMode": "builder",
  251. "exemplar": false,
  252. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"1.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  253. "format": "time_series",
  254. "hide": false,
  255. "instant": true,
  256. "legendFormat": "__auto",
  257. "range": true,
  258. "refId": "B"
  259. }
  260. ],
  261. "title": "1xx by uri [$request_host]",
  262. "type": "timeseries"
  263. },
  264. {
  265. "datasource": {
  266. "type": "prometheus",
  267. "uid": "${DS_PROMETHEUS}"
  268. },
  269. "description": "",
  270. "fieldConfig": {
  271. "defaults": {
  272. "color": {
  273. "mode": "palette-classic"
  274. },
  275. "custom": {
  276. "axisCenteredZero": false,
  277. "axisColorMode": "text",
  278. "axisLabel": "",
  279. "axisPlacement": "auto",
  280. "barAlignment": 0,
  281. "drawStyle": "line",
  282. "fillOpacity": 0,
  283. "gradientMode": "none",
  284. "hideFrom": {
  285. "legend": false,
  286. "tooltip": false,
  287. "viz": false
  288. },
  289. "lineInterpolation": "linear",
  290. "lineWidth": 1,
  291. "pointSize": 5,
  292. "scaleDistribution": {
  293. "type": "linear"
  294. },
  295. "showPoints": "auto",
  296. "spanNulls": false,
  297. "stacking": {
  298. "group": "A",
  299. "mode": "none"
  300. },
  301. "thresholdsStyle": {
  302. "mode": "off"
  303. }
  304. },
  305. "mappings": [],
  306. "thresholds": {
  307. "mode": "absolute",
  308. "steps": [
  309. {
  310. "color": "green",
  311. "value": null
  312. },
  313. {
  314. "color": "red",
  315. "value": 80
  316. }
  317. ]
  318. }
  319. },
  320. "overrides": []
  321. },
  322. "gridPos": {
  323. "h": 8,
  324. "w": 12,
  325. "x": 0,
  326. "y": 9
  327. },
  328. "id": 18,
  329. "options": {
  330. "legend": {
  331. "calcs": [],
  332. "displayMode": "list",
  333. "placement": "bottom",
  334. "showLegend": true
  335. },
  336. "tooltip": {
  337. "mode": "single",
  338. "sort": "none"
  339. }
  340. },
  341. "targets": [
  342. {
  343. "datasource": {
  344. "type": "prometheus",
  345. "uid": "${DS_PROMETHEUS}"
  346. },
  347. "editorMode": "builder",
  348. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"2.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  349. "hide": false,
  350. "legendFormat": "__auto",
  351. "range": true,
  352. "refId": "B"
  353. }
  354. ],
  355. "title": "2xx by upstream addr[$request_host]",
  356. "type": "timeseries"
  357. },
  358. {
  359. "datasource": {
  360. "type": "prometheus",
  361. "uid": "${DS_PROMETHEUS}"
  362. },
  363. "description": "",
  364. "fieldConfig": {
  365. "defaults": {
  366. "color": {
  367. "mode": "palette-classic"
  368. },
  369. "custom": {
  370. "axisCenteredZero": false,
  371. "axisColorMode": "text",
  372. "axisLabel": "",
  373. "axisPlacement": "auto",
  374. "barAlignment": 0,
  375. "drawStyle": "line",
  376. "fillOpacity": 0,
  377. "gradientMode": "none",
  378. "hideFrom": {
  379. "legend": false,
  380. "tooltip": false,
  381. "viz": false
  382. },
  383. "lineInterpolation": "linear",
  384. "lineWidth": 1,
  385. "pointSize": 5,
  386. "scaleDistribution": {
  387. "type": "linear"
  388. },
  389. "showPoints": "auto",
  390. "spanNulls": false,
  391. "stacking": {
  392. "group": "A",
  393. "mode": "none"
  394. },
  395. "thresholdsStyle": {
  396. "mode": "off"
  397. }
  398. },
  399. "mappings": [],
  400. "thresholds": {
  401. "mode": "absolute",
  402. "steps": [
  403. {
  404. "color": "green",
  405. "value": null
  406. },
  407. {
  408. "color": "red",
  409. "value": 80
  410. }
  411. ]
  412. }
  413. },
  414. "overrides": []
  415. },
  416. "gridPos": {
  417. "h": 8,
  418. "w": 12,
  419. "x": 12,
  420. "y": 9
  421. },
  422. "id": 19,
  423. "options": {
  424. "legend": {
  425. "calcs": [],
  426. "displayMode": "list",
  427. "placement": "bottom",
  428. "showLegend": true
  429. },
  430. "tooltip": {
  431. "mode": "single",
  432. "sort": "none"
  433. }
  434. },
  435. "targets": [
  436. {
  437. "datasource": {
  438. "type": "prometheus",
  439. "uid": "${DS_PROMETHEUS}"
  440. },
  441. "editorMode": "builder",
  442. "exemplar": false,
  443. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"2.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  444. "format": "time_series",
  445. "hide": false,
  446. "instant": true,
  447. "legendFormat": "__auto",
  448. "range": true,
  449. "refId": "B"
  450. }
  451. ],
  452. "title": "2xx by uri [$request_host]",
  453. "type": "timeseries"
  454. },
  455. {
  456. "datasource": {
  457. "type": "prometheus",
  458. "uid": "${DS_PROMETHEUS}"
  459. },
  460. "description": "",
  461. "fieldConfig": {
  462. "defaults": {
  463. "color": {
  464. "mode": "palette-classic"
  465. },
  466. "custom": {
  467. "axisCenteredZero": false,
  468. "axisColorMode": "text",
  469. "axisLabel": "",
  470. "axisPlacement": "auto",
  471. "barAlignment": 0,
  472. "drawStyle": "line",
  473. "fillOpacity": 0,
  474. "gradientMode": "none",
  475. "hideFrom": {
  476. "legend": false,
  477. "tooltip": false,
  478. "viz": false
  479. },
  480. "lineInterpolation": "linear",
  481. "lineWidth": 1,
  482. "pointSize": 5,
  483. "scaleDistribution": {
  484. "type": "linear"
  485. },
  486. "showPoints": "auto",
  487. "spanNulls": false,
  488. "stacking": {
  489. "group": "A",
  490. "mode": "none"
  491. },
  492. "thresholdsStyle": {
  493. "mode": "off"
  494. }
  495. },
  496. "mappings": [],
  497. "thresholds": {
  498. "mode": "absolute",
  499. "steps": [
  500. {
  501. "color": "green",
  502. "value": null
  503. },
  504. {
  505. "color": "red",
  506. "value": 80
  507. }
  508. ]
  509. }
  510. },
  511. "overrides": []
  512. },
  513. "gridPos": {
  514. "h": 8,
  515. "w": 12,
  516. "x": 0,
  517. "y": 17
  518. },
  519. "id": 16,
  520. "options": {
  521. "legend": {
  522. "calcs": [],
  523. "displayMode": "list",
  524. "placement": "bottom",
  525. "showLegend": true
  526. },
  527. "tooltip": {
  528. "mode": "single",
  529. "sort": "none"
  530. }
  531. },
  532. "targets": [
  533. {
  534. "datasource": {
  535. "type": "prometheus",
  536. "uid": "${DS_PROMETHEUS}"
  537. },
  538. "editorMode": "builder",
  539. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"3.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  540. "hide": false,
  541. "legendFormat": "__auto",
  542. "range": true,
  543. "refId": "B"
  544. }
  545. ],
  546. "title": "3xx by upstream addr[$request_host]",
  547. "type": "timeseries"
  548. },
  549. {
  550. "datasource": {
  551. "type": "prometheus",
  552. "uid": "${DS_PROMETHEUS}"
  553. },
  554. "description": "",
  555. "fieldConfig": {
  556. "defaults": {
  557. "color": {
  558. "mode": "palette-classic"
  559. },
  560. "custom": {
  561. "axisCenteredZero": false,
  562. "axisColorMode": "text",
  563. "axisLabel": "",
  564. "axisPlacement": "auto",
  565. "barAlignment": 0,
  566. "drawStyle": "line",
  567. "fillOpacity": 0,
  568. "gradientMode": "none",
  569. "hideFrom": {
  570. "legend": false,
  571. "tooltip": false,
  572. "viz": false
  573. },
  574. "lineInterpolation": "linear",
  575. "lineWidth": 1,
  576. "pointSize": 5,
  577. "scaleDistribution": {
  578. "type": "linear"
  579. },
  580. "showPoints": "auto",
  581. "spanNulls": false,
  582. "stacking": {
  583. "group": "A",
  584. "mode": "none"
  585. },
  586. "thresholdsStyle": {
  587. "mode": "off"
  588. }
  589. },
  590. "mappings": [],
  591. "thresholds": {
  592. "mode": "absolute",
  593. "steps": [
  594. {
  595. "color": "green",
  596. "value": null
  597. },
  598. {
  599. "color": "red",
  600. "value": 80
  601. }
  602. ]
  603. }
  604. },
  605. "overrides": []
  606. },
  607. "gridPos": {
  608. "h": 8,
  609. "w": 12,
  610. "x": 12,
  611. "y": 17
  612. },
  613. "id": 17,
  614. "options": {
  615. "legend": {
  616. "calcs": [],
  617. "displayMode": "list",
  618. "placement": "bottom",
  619. "showLegend": true
  620. },
  621. "tooltip": {
  622. "mode": "single",
  623. "sort": "none"
  624. }
  625. },
  626. "targets": [
  627. {
  628. "datasource": {
  629. "type": "prometheus",
  630. "uid": "${DS_PROMETHEUS}"
  631. },
  632. "editorMode": "builder",
  633. "exemplar": false,
  634. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"3.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  635. "format": "time_series",
  636. "hide": false,
  637. "instant": true,
  638. "legendFormat": "__auto",
  639. "range": true,
  640. "refId": "B"
  641. }
  642. ],
  643. "title": "3xx by uri [$request_host]",
  644. "type": "timeseries"
  645. }
  646. ],
  647. "title": "1xx - 2xx - 3xx Status Code .....................................................",
  648. "type": "row"
  649. },
  650. {
  651. "collapsed": false,
  652. "gridPos": {
  653. "h": 1,
  654. "w": 24,
  655. "x": 0,
  656. "y": 1
  657. },
  658. "id": 2,
  659. "panels": [],
  660. "title": "4xx Status Code ......................................................................",
  661. "type": "row"
  662. },
  663. {
  664. "datasource": {
  665. "type": "prometheus",
  666. "uid": "${DS_PROMETHEUS}"
  667. },
  668. "description": "",
  669. "fieldConfig": {
  670. "defaults": {
  671. "color": {
  672. "mode": "palette-classic"
  673. },
  674. "custom": {
  675. "axisCenteredZero": false,
  676. "axisColorMode": "text",
  677. "axisLabel": "",
  678. "axisPlacement": "auto",
  679. "barAlignment": 0,
  680. "drawStyle": "line",
  681. "fillOpacity": 0,
  682. "gradientMode": "none",
  683. "hideFrom": {
  684. "legend": false,
  685. "tooltip": false,
  686. "viz": false
  687. },
  688. "lineInterpolation": "linear",
  689. "lineWidth": 1,
  690. "pointSize": 5,
  691. "scaleDistribution": {
  692. "type": "linear"
  693. },
  694. "showPoints": "auto",
  695. "spanNulls": false,
  696. "stacking": {
  697. "group": "A",
  698. "mode": "none"
  699. },
  700. "thresholdsStyle": {
  701. "mode": "off"
  702. }
  703. },
  704. "mappings": [],
  705. "thresholds": {
  706. "mode": "absolute",
  707. "steps": [
  708. {
  709. "color": "green",
  710. "value": null
  711. },
  712. {
  713. "color": "red",
  714. "value": 80
  715. }
  716. ]
  717. }
  718. },
  719. "overrides": []
  720. },
  721. "gridPos": {
  722. "h": 8,
  723. "w": 12,
  724. "x": 0,
  725. "y": 2
  726. },
  727. "id": 9,
  728. "options": {
  729. "legend": {
  730. "calcs": [],
  731. "displayMode": "list",
  732. "placement": "bottom",
  733. "showLegend": true
  734. },
  735. "tooltip": {
  736. "mode": "single",
  737. "sort": "none"
  738. }
  739. },
  740. "targets": [
  741. {
  742. "datasource": {
  743. "type": "prometheus",
  744. "uid": "${DS_PROMETHEUS}"
  745. },
  746. "editorMode": "builder",
  747. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"404\", request_host=~\"$request_host\"}[$__rate_interval]))",
  748. "hide": false,
  749. "legendFormat": "__auto",
  750. "range": true,
  751. "refId": "B"
  752. }
  753. ],
  754. "title": "404 by upstream addr[$request_host]",
  755. "type": "timeseries"
  756. },
  757. {
  758. "datasource": {
  759. "type": "prometheus",
  760. "uid": "${DS_PROMETHEUS}"
  761. },
  762. "description": "",
  763. "fieldConfig": {
  764. "defaults": {
  765. "color": {
  766. "mode": "palette-classic"
  767. },
  768. "custom": {
  769. "axisCenteredZero": false,
  770. "axisColorMode": "text",
  771. "axisLabel": "",
  772. "axisPlacement": "auto",
  773. "barAlignment": 0,
  774. "drawStyle": "line",
  775. "fillOpacity": 0,
  776. "gradientMode": "none",
  777. "hideFrom": {
  778. "legend": false,
  779. "tooltip": false,
  780. "viz": false
  781. },
  782. "lineInterpolation": "linear",
  783. "lineWidth": 1,
  784. "pointSize": 5,
  785. "scaleDistribution": {
  786. "type": "linear"
  787. },
  788. "showPoints": "auto",
  789. "spanNulls": false,
  790. "stacking": {
  791. "group": "A",
  792. "mode": "none"
  793. },
  794. "thresholdsStyle": {
  795. "mode": "off"
  796. }
  797. },
  798. "mappings": [],
  799. "thresholds": {
  800. "mode": "absolute",
  801. "steps": [
  802. {
  803. "color": "green",
  804. "value": null
  805. },
  806. {
  807. "color": "red",
  808. "value": 80
  809. }
  810. ]
  811. }
  812. },
  813. "overrides": []
  814. },
  815. "gridPos": {
  816. "h": 8,
  817. "w": 12,
  818. "x": 12,
  819. "y": 2
  820. },
  821. "id": 6,
  822. "options": {
  823. "legend": {
  824. "calcs": [],
  825. "displayMode": "list",
  826. "placement": "bottom",
  827. "showLegend": true
  828. },
  829. "tooltip": {
  830. "mode": "single",
  831. "sort": "none"
  832. }
  833. },
  834. "targets": [
  835. {
  836. "datasource": {
  837. "type": "prometheus",
  838. "uid": "${DS_PROMETHEUS}"
  839. },
  840. "editorMode": "builder",
  841. "exemplar": false,
  842. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"404\", request_host=~\"$request_host\"}[$__rate_interval]))",
  843. "format": "time_series",
  844. "hide": false,
  845. "instant": true,
  846. "legendFormat": "__auto",
  847. "range": true,
  848. "refId": "B"
  849. }
  850. ],
  851. "title": "404 by uri [$request_host]",
  852. "type": "timeseries"
  853. },
  854. {
  855. "datasource": {
  856. "type": "prometheus",
  857. "uid": "${DS_PROMETHEUS}"
  858. },
  859. "description": "",
  860. "fieldConfig": {
  861. "defaults": {
  862. "color": {
  863. "mode": "palette-classic"
  864. },
  865. "custom": {
  866. "axisCenteredZero": false,
  867. "axisColorMode": "text",
  868. "axisLabel": "",
  869. "axisPlacement": "auto",
  870. "barAlignment": 0,
  871. "drawStyle": "line",
  872. "fillOpacity": 0,
  873. "gradientMode": "none",
  874. "hideFrom": {
  875. "legend": false,
  876. "tooltip": false,
  877. "viz": false
  878. },
  879. "lineInterpolation": "linear",
  880. "lineWidth": 1,
  881. "pointSize": 5,
  882. "scaleDistribution": {
  883. "type": "linear"
  884. },
  885. "showPoints": "auto",
  886. "spanNulls": false,
  887. "stacking": {
  888. "group": "A",
  889. "mode": "none"
  890. },
  891. "thresholdsStyle": {
  892. "mode": "off"
  893. }
  894. },
  895. "mappings": [],
  896. "thresholds": {
  897. "mode": "absolute",
  898. "steps": [
  899. {
  900. "color": "green",
  901. "value": null
  902. },
  903. {
  904. "color": "red",
  905. "value": 80
  906. }
  907. ]
  908. }
  909. },
  910. "overrides": []
  911. },
  912. "gridPos": {
  913. "h": 8,
  914. "w": 12,
  915. "x": 0,
  916. "y": 10
  917. },
  918. "id": 14,
  919. "options": {
  920. "legend": {
  921. "calcs": [],
  922. "displayMode": "list",
  923. "placement": "bottom",
  924. "showLegend": true
  925. },
  926. "tooltip": {
  927. "mode": "single",
  928. "sort": "none"
  929. }
  930. },
  931. "targets": [
  932. {
  933. "datasource": {
  934. "type": "prometheus",
  935. "uid": "${DS_PROMETHEUS}"
  936. },
  937. "editorMode": "builder",
  938. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"4.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  939. "hide": false,
  940. "legendFormat": "__auto",
  941. "range": true,
  942. "refId": "B"
  943. }
  944. ],
  945. "title": "4xx by upstream addr[$request_host]",
  946. "type": "timeseries"
  947. },
  948. {
  949. "datasource": {
  950. "type": "prometheus",
  951. "uid": "${DS_PROMETHEUS}"
  952. },
  953. "description": "",
  954. "fieldConfig": {
  955. "defaults": {
  956. "color": {
  957. "mode": "palette-classic"
  958. },
  959. "custom": {
  960. "axisCenteredZero": false,
  961. "axisColorMode": "text",
  962. "axisLabel": "",
  963. "axisPlacement": "auto",
  964. "barAlignment": 0,
  965. "drawStyle": "line",
  966. "fillOpacity": 0,
  967. "gradientMode": "none",
  968. "hideFrom": {
  969. "legend": false,
  970. "tooltip": false,
  971. "viz": false
  972. },
  973. "lineInterpolation": "linear",
  974. "lineWidth": 1,
  975. "pointSize": 5,
  976. "scaleDistribution": {
  977. "type": "linear"
  978. },
  979. "showPoints": "auto",
  980. "spanNulls": false,
  981. "stacking": {
  982. "group": "A",
  983. "mode": "none"
  984. },
  985. "thresholdsStyle": {
  986. "mode": "off"
  987. }
  988. },
  989. "mappings": [],
  990. "thresholds": {
  991. "mode": "absolute",
  992. "steps": [
  993. {
  994. "color": "green",
  995. "value": null
  996. },
  997. {
  998. "color": "red",
  999. "value": 80
  1000. }
  1001. ]
  1002. }
  1003. },
  1004. "overrides": []
  1005. },
  1006. "gridPos": {
  1007. "h": 8,
  1008. "w": 12,
  1009. "x": 12,
  1010. "y": 10
  1011. },
  1012. "id": 15,
  1013. "options": {
  1014. "legend": {
  1015. "calcs": [],
  1016. "displayMode": "list",
  1017. "placement": "bottom",
  1018. "showLegend": true
  1019. },
  1020. "tooltip": {
  1021. "mode": "single",
  1022. "sort": "none"
  1023. }
  1024. },
  1025. "targets": [
  1026. {
  1027. "datasource": {
  1028. "type": "prometheus",
  1029. "uid": "${DS_PROMETHEUS}"
  1030. },
  1031. "editorMode": "builder",
  1032. "exemplar": false,
  1033. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"4.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1034. "format": "time_series",
  1035. "hide": false,
  1036. "instant": true,
  1037. "legendFormat": "__auto",
  1038. "range": true,
  1039. "refId": "B"
  1040. }
  1041. ],
  1042. "title": "4xx by uri [$request_host]",
  1043. "type": "timeseries"
  1044. },
  1045. {
  1046. "collapsed": true,
  1047. "gridPos": {
  1048. "h": 1,
  1049. "w": 24,
  1050. "x": 0,
  1051. "y": 18
  1052. },
  1053. "id": 8,
  1054. "panels": [
  1055. {
  1056. "datasource": {
  1057. "type": "prometheus",
  1058. "uid": "${DS_PROMETHEUS}"
  1059. },
  1060. "description": "",
  1061. "fieldConfig": {
  1062. "defaults": {
  1063. "color": {
  1064. "mode": "palette-classic"
  1065. },
  1066. "custom": {
  1067. "axisCenteredZero": false,
  1068. "axisColorMode": "text",
  1069. "axisLabel": "",
  1070. "axisPlacement": "auto",
  1071. "barAlignment": 0,
  1072. "drawStyle": "line",
  1073. "fillOpacity": 0,
  1074. "gradientMode": "none",
  1075. "hideFrom": {
  1076. "legend": false,
  1077. "tooltip": false,
  1078. "viz": false
  1079. },
  1080. "lineInterpolation": "linear",
  1081. "lineWidth": 1,
  1082. "pointSize": 5,
  1083. "scaleDistribution": {
  1084. "type": "linear"
  1085. },
  1086. "showPoints": "auto",
  1087. "spanNulls": false,
  1088. "stacking": {
  1089. "group": "A",
  1090. "mode": "none"
  1091. },
  1092. "thresholdsStyle": {
  1093. "mode": "off"
  1094. }
  1095. },
  1096. "mappings": [],
  1097. "thresholds": {
  1098. "mode": "absolute",
  1099. "steps": [
  1100. {
  1101. "color": "green",
  1102. "value": null
  1103. },
  1104. {
  1105. "color": "red",
  1106. "value": 80
  1107. }
  1108. ]
  1109. }
  1110. },
  1111. "overrides": []
  1112. },
  1113. "gridPos": {
  1114. "h": 8,
  1115. "w": 12,
  1116. "x": 0,
  1117. "y": 3
  1118. },
  1119. "id": 10,
  1120. "options": {
  1121. "legend": {
  1122. "calcs": [],
  1123. "displayMode": "list",
  1124. "placement": "bottom",
  1125. "showLegend": true
  1126. },
  1127. "tooltip": {
  1128. "mode": "single",
  1129. "sort": "none"
  1130. }
  1131. },
  1132. "targets": [
  1133. {
  1134. "datasource": {
  1135. "type": "prometheus",
  1136. "uid": "${DS_PROMETHEUS}"
  1137. },
  1138. "editorMode": "builder",
  1139. "expr": "sum by(http_x_forwarded_for, status) (rate(http_response_count_total{status=~\"504|502\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1140. "hide": false,
  1141. "legendFormat": "__auto",
  1142. "range": true,
  1143. "refId": "B"
  1144. }
  1145. ],
  1146. "title": "502-504 by upstream addr[$request_host]",
  1147. "type": "timeseries"
  1148. },
  1149. {
  1150. "datasource": {
  1151. "type": "prometheus",
  1152. "uid": "${DS_PROMETHEUS}"
  1153. },
  1154. "description": "",
  1155. "fieldConfig": {
  1156. "defaults": {
  1157. "color": {
  1158. "mode": "palette-classic"
  1159. },
  1160. "custom": {
  1161. "axisCenteredZero": false,
  1162. "axisColorMode": "text",
  1163. "axisLabel": "",
  1164. "axisPlacement": "auto",
  1165. "barAlignment": 0,
  1166. "drawStyle": "line",
  1167. "fillOpacity": 0,
  1168. "gradientMode": "none",
  1169. "hideFrom": {
  1170. "legend": false,
  1171. "tooltip": false,
  1172. "viz": false
  1173. },
  1174. "lineInterpolation": "linear",
  1175. "lineWidth": 1,
  1176. "pointSize": 5,
  1177. "scaleDistribution": {
  1178. "type": "linear"
  1179. },
  1180. "showPoints": "auto",
  1181. "spanNulls": false,
  1182. "stacking": {
  1183. "group": "A",
  1184. "mode": "none"
  1185. },
  1186. "thresholdsStyle": {
  1187. "mode": "off"
  1188. }
  1189. },
  1190. "mappings": [],
  1191. "thresholds": {
  1192. "mode": "absolute",
  1193. "steps": [
  1194. {
  1195. "color": "green",
  1196. "value": null
  1197. },
  1198. {
  1199. "color": "red",
  1200. "value": 80
  1201. }
  1202. ]
  1203. }
  1204. },
  1205. "overrides": []
  1206. },
  1207. "gridPos": {
  1208. "h": 8,
  1209. "w": 12,
  1210. "x": 12,
  1211. "y": 3
  1212. },
  1213. "id": 11,
  1214. "options": {
  1215. "legend": {
  1216. "calcs": [],
  1217. "displayMode": "list",
  1218. "placement": "bottom",
  1219. "showLegend": true
  1220. },
  1221. "tooltip": {
  1222. "mode": "single",
  1223. "sort": "none"
  1224. }
  1225. },
  1226. "targets": [
  1227. {
  1228. "datasource": {
  1229. "type": "prometheus",
  1230. "uid": "${DS_PROMETHEUS}"
  1231. },
  1232. "editorMode": "builder",
  1233. "exemplar": false,
  1234. "expr": "sum by(request_host, status) (rate(http_response_count_total{status=~\"504|502\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1235. "format": "time_series",
  1236. "hide": false,
  1237. "instant": true,
  1238. "legendFormat": "__auto",
  1239. "range": true,
  1240. "refId": "B"
  1241. }
  1242. ],
  1243. "title": "502-504 by host [$request_host]",
  1244. "type": "timeseries"
  1245. },
  1246. {
  1247. "datasource": {
  1248. "type": "prometheus",
  1249. "uid": "${DS_PROMETHEUS}"
  1250. },
  1251. "description": "",
  1252. "fieldConfig": {
  1253. "defaults": {
  1254. "color": {
  1255. "mode": "palette-classic"
  1256. },
  1257. "custom": {
  1258. "axisCenteredZero": false,
  1259. "axisColorMode": "text",
  1260. "axisLabel": "",
  1261. "axisPlacement": "auto",
  1262. "barAlignment": 0,
  1263. "drawStyle": "line",
  1264. "fillOpacity": 0,
  1265. "gradientMode": "none",
  1266. "hideFrom": {
  1267. "legend": false,
  1268. "tooltip": false,
  1269. "viz": false
  1270. },
  1271. "lineInterpolation": "linear",
  1272. "lineWidth": 1,
  1273. "pointSize": 5,
  1274. "scaleDistribution": {
  1275. "type": "linear"
  1276. },
  1277. "showPoints": "auto",
  1278. "spanNulls": false,
  1279. "stacking": {
  1280. "group": "A",
  1281. "mode": "none"
  1282. },
  1283. "thresholdsStyle": {
  1284. "mode": "off"
  1285. }
  1286. },
  1287. "mappings": [],
  1288. "thresholds": {
  1289. "mode": "absolute",
  1290. "steps": [
  1291. {
  1292. "color": "green",
  1293. "value": null
  1294. },
  1295. {
  1296. "color": "red",
  1297. "value": 80
  1298. }
  1299. ]
  1300. }
  1301. },
  1302. "overrides": []
  1303. },
  1304. "gridPos": {
  1305. "h": 8,
  1306. "w": 12,
  1307. "x": 0,
  1308. "y": 11
  1309. },
  1310. "id": 12,
  1311. "options": {
  1312. "legend": {
  1313. "calcs": [],
  1314. "displayMode": "list",
  1315. "placement": "bottom",
  1316. "showLegend": true
  1317. },
  1318. "tooltip": {
  1319. "mode": "single",
  1320. "sort": "none"
  1321. }
  1322. },
  1323. "targets": [
  1324. {
  1325. "datasource": {
  1326. "type": "prometheus",
  1327. "uid": "${DS_PROMETHEUS}"
  1328. },
  1329. "editorMode": "builder",
  1330. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"5.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1331. "hide": false,
  1332. "legendFormat": "__auto",
  1333. "range": true,
  1334. "refId": "B"
  1335. }
  1336. ],
  1337. "title": "5xx by upstream addr[$request_host]",
  1338. "type": "timeseries"
  1339. },
  1340. {
  1341. "datasource": {
  1342. "type": "prometheus",
  1343. "uid": "${DS_PROMETHEUS}"
  1344. },
  1345. "description": "",
  1346. "fieldConfig": {
  1347. "defaults": {
  1348. "color": {
  1349. "mode": "palette-classic"
  1350. },
  1351. "custom": {
  1352. "axisCenteredZero": false,
  1353. "axisColorMode": "text",
  1354. "axisLabel": "",
  1355. "axisPlacement": "auto",
  1356. "barAlignment": 0,
  1357. "drawStyle": "line",
  1358. "fillOpacity": 0,
  1359. "gradientMode": "none",
  1360. "hideFrom": {
  1361. "legend": false,
  1362. "tooltip": false,
  1363. "viz": false
  1364. },
  1365. "lineInterpolation": "linear",
  1366. "lineWidth": 1,
  1367. "pointSize": 5,
  1368. "scaleDistribution": {
  1369. "type": "linear"
  1370. },
  1371. "showPoints": "auto",
  1372. "spanNulls": false,
  1373. "stacking": {
  1374. "group": "A",
  1375. "mode": "none"
  1376. },
  1377. "thresholdsStyle": {
  1378. "mode": "off"
  1379. }
  1380. },
  1381. "mappings": [],
  1382. "thresholds": {
  1383. "mode": "absolute",
  1384. "steps": [
  1385. {
  1386. "color": "green",
  1387. "value": null
  1388. },
  1389. {
  1390. "color": "red",
  1391. "value": 80
  1392. }
  1393. ]
  1394. }
  1395. },
  1396. "overrides": []
  1397. },
  1398. "gridPos": {
  1399. "h": 8,
  1400. "w": 12,
  1401. "x": 12,
  1402. "y": 11
  1403. },
  1404. "id": 13,
  1405. "options": {
  1406. "legend": {
  1407. "calcs": [],
  1408. "displayMode": "list",
  1409. "placement": "bottom",
  1410. "showLegend": true
  1411. },
  1412. "tooltip": {
  1413. "mode": "single",
  1414. "sort": "none"
  1415. }
  1416. },
  1417. "targets": [
  1418. {
  1419. "datasource": {
  1420. "type": "prometheus",
  1421. "uid": "${DS_PROMETHEUS}"
  1422. },
  1423. "editorMode": "builder",
  1424. "exemplar": false,
  1425. "expr": "sum by(request_host) (rate(http_response_count_total{status=~\"5.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1426. "format": "time_series",
  1427. "hide": false,
  1428. "instant": true,
  1429. "legendFormat": "__auto",
  1430. "range": true,
  1431. "refId": "B"
  1432. }
  1433. ],
  1434. "title": "5xx by uri [$request_host]",
  1435. "type": "timeseries"
  1436. }
  1437. ],
  1438. "title": "5xx Status Code ......................................................................",
  1439. "type": "row"
  1440. },
  1441. {
  1442. "collapsed": true,
  1443. "gridPos": {
  1444. "h": 1,
  1445. "w": 24,
  1446. "x": 0,
  1447. "y": 19
  1448. },
  1449. "id": 27,
  1450. "panels": [
  1451. {
  1452. "datasource": {
  1453. "type": "prometheus",
  1454. "uid": "${DS_PROMETHEUS}"
  1455. },
  1456. "description": "",
  1457. "fieldConfig": {
  1458. "defaults": {
  1459. "color": {
  1460. "mode": "palette-classic"
  1461. },
  1462. "custom": {
  1463. "axisCenteredZero": false,
  1464. "axisColorMode": "text",
  1465. "axisLabel": "",
  1466. "axisPlacement": "auto",
  1467. "barAlignment": 0,
  1468. "drawStyle": "line",
  1469. "fillOpacity": 0,
  1470. "gradientMode": "none",
  1471. "hideFrom": {
  1472. "legend": false,
  1473. "tooltip": false,
  1474. "viz": false
  1475. },
  1476. "lineInterpolation": "linear",
  1477. "lineWidth": 1,
  1478. "pointSize": 5,
  1479. "scaleDistribution": {
  1480. "type": "linear"
  1481. },
  1482. "showPoints": "auto",
  1483. "spanNulls": false,
  1484. "stacking": {
  1485. "group": "A",
  1486. "mode": "none"
  1487. },
  1488. "thresholdsStyle": {
  1489. "mode": "off"
  1490. }
  1491. },
  1492. "mappings": [],
  1493. "thresholds": {
  1494. "mode": "absolute",
  1495. "steps": [
  1496. {
  1497. "color": "green",
  1498. "value": null
  1499. },
  1500. {
  1501. "color": "red",
  1502. "value": 80
  1503. }
  1504. ]
  1505. }
  1506. },
  1507. "overrides": []
  1508. },
  1509. "gridPos": {
  1510. "h": 8,
  1511. "w": 12,
  1512. "x": 0,
  1513. "y": 4
  1514. },
  1515. "id": 24,
  1516. "options": {
  1517. "legend": {
  1518. "calcs": [],
  1519. "displayMode": "list",
  1520. "placement": "bottom",
  1521. "showLegend": true
  1522. },
  1523. "tooltip": {
  1524. "mode": "single",
  1525. "sort": "none"
  1526. }
  1527. },
  1528. "targets": [
  1529. {
  1530. "datasource": {
  1531. "type": "prometheus",
  1532. "uid": "${DS_PROMETHEUS}"
  1533. },
  1534. "editorMode": "builder",
  1535. "expr": "sum by(http_x_forwarded_for) (rate(http_response_count_total{status=~\"[6-9]{1}.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1536. "hide": false,
  1537. "legendFormat": "__auto",
  1538. "range": true,
  1539. "refId": "B"
  1540. }
  1541. ],
  1542. "title": "6xx > by upstream addr[$request_host]",
  1543. "type": "timeseries"
  1544. },
  1545. {
  1546. "datasource": {
  1547. "type": "prometheus",
  1548. "uid": "${DS_PROMETHEUS}"
  1549. },
  1550. "description": "",
  1551. "fieldConfig": {
  1552. "defaults": {
  1553. "color": {
  1554. "mode": "palette-classic"
  1555. },
  1556. "custom": {
  1557. "axisCenteredZero": false,
  1558. "axisColorMode": "text",
  1559. "axisLabel": "",
  1560. "axisPlacement": "auto",
  1561. "barAlignment": 0,
  1562. "drawStyle": "line",
  1563. "fillOpacity": 0,
  1564. "gradientMode": "none",
  1565. "hideFrom": {
  1566. "legend": false,
  1567. "tooltip": false,
  1568. "viz": false
  1569. },
  1570. "lineInterpolation": "linear",
  1571. "lineWidth": 1,
  1572. "pointSize": 5,
  1573. "scaleDistribution": {
  1574. "type": "linear"
  1575. },
  1576. "showPoints": "auto",
  1577. "spanNulls": false,
  1578. "stacking": {
  1579. "group": "A",
  1580. "mode": "none"
  1581. },
  1582. "thresholdsStyle": {
  1583. "mode": "off"
  1584. }
  1585. },
  1586. "mappings": [],
  1587. "thresholds": {
  1588. "mode": "absolute",
  1589. "steps": [
  1590. {
  1591. "color": "green",
  1592. "value": null
  1593. },
  1594. {
  1595. "color": "red",
  1596. "value": 80
  1597. }
  1598. ]
  1599. }
  1600. },
  1601. "overrides": []
  1602. },
  1603. "gridPos": {
  1604. "h": 8,
  1605. "w": 12,
  1606. "x": 12,
  1607. "y": 4
  1608. },
  1609. "id": 25,
  1610. "options": {
  1611. "legend": {
  1612. "calcs": [],
  1613. "displayMode": "list",
  1614. "placement": "bottom",
  1615. "showLegend": true
  1616. },
  1617. "tooltip": {
  1618. "mode": "single",
  1619. "sort": "none"
  1620. }
  1621. },
  1622. "targets": [
  1623. {
  1624. "datasource": {
  1625. "type": "prometheus",
  1626. "uid": "${DS_PROMETHEUS}"
  1627. },
  1628. "editorMode": "builder",
  1629. "exemplar": false,
  1630. "expr": "sum by(request_uri) (rate(http_response_count_total{status=~\"[6-9]{1}.*\", request_host=~\"$request_host\"}[$__rate_interval]))",
  1631. "format": "time_series",
  1632. "hide": false,
  1633. "instant": true,
  1634. "legendFormat": "__auto",
  1635. "range": true,
  1636. "refId": "B"
  1637. }
  1638. ],
  1639. "title": "6xx > by uri [$request_host]",
  1640. "type": "timeseries"
  1641. }
  1642. ],
  1643. "title": "6xx > Status Code ...................................................................",
  1644. "type": "row"
  1645. }
  1646. ],
  1647. "refresh": "30s",
  1648. "schemaVersion": 37,
  1649. "style": "dark",
  1650. "tags": [],
  1651. "templating": {
  1652. "list": [
  1653. {
  1654. "current": {
  1655. "selected": true,
  1656. "text": "Prometheus",
  1657. "value": "Prometheus"
  1658. },
  1659. "hide": 0,
  1660. "includeAll": false,
  1661. "multi": false,
  1662. "name": "DS_PROMETHEUS",
  1663. "options": [],
  1664. "query": "prometheus",
  1665. "queryValue": "",
  1666. "refresh": 1,
  1667. "regex": "",
  1668. "skipUrlSync": false,
  1669. "type": "datasource"
  1670. },
  1671. {
  1672. "current": {},
  1673. "datasource": {
  1674. "type": "prometheus",
  1675. "uid": "${DS_PROMETHEUS}"
  1676. },
  1677. "definition": "label_values(http_response_count_total, request_host)",
  1678. "hide": 0,
  1679. "includeAll": true,
  1680. "multi": true,
  1681. "name": "request_host",
  1682. "options": [],
  1683. "query": {
  1684. "query": "label_values(http_response_count_total, request_host)",
  1685. "refId": "StandardVariableQuery"
  1686. },
  1687. "refresh": 1,
  1688. "regex": "",
  1689. "skipUrlSync": false,
  1690. "sort": 1,
  1691. "type": "query"
  1692. }
  1693. ]
  1694. },
  1695. "time": {
  1696. "from": "now-1h",
  1697. "to": "now"
  1698. },
  1699. "timepicker": {},
  1700. "timezone": "",
  1701. "title": "NGINX PROXY",
  1702. "uid": "x2_jWNF4k",
  1703. "version": 12,
  1704. "weekStart": ""
  1705. }