szymski

Untitled

May 31st, 2021
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.66 KB | None | 0 0
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": "-- Grafana --",
  7. "enable": true,
  8. "hide": true,
  9. "iconColor": "rgba(0, 211, 255, 1)",
  10. "name": "Annotations & Alerts",
  11. "type": "dashboard"
  12. }
  13. ]
  14. },
  15. "editable": true,
  16. "gnetId": null,
  17. "graphTooltip": 0,
  18. "id": 2,
  19. "links": [],
  20. "panels": [
  21. {
  22. "datasource": null,
  23. "description": "",
  24. "fieldConfig": {
  25. "defaults": {
  26. "custom": {
  27. "align": null,
  28. "filterable": false
  29. },
  30. "mappings": [],
  31. "thresholds": {
  32. "mode": "absolute",
  33. "steps": [
  34. {
  35. "color": "green",
  36. "value": null
  37. }
  38. ]
  39. }
  40. },
  41. "overrides": []
  42. },
  43. "gridPos": {
  44. "h": 4,
  45. "w": 3,
  46. "x": 0,
  47. "y": 0
  48. },
  49. "id": 4,
  50. "options": {
  51. "colorMode": "value",
  52. "graphMode": "area",
  53. "justifyMode": "auto",
  54. "orientation": "auto",
  55. "reduceOptions": {
  56. "calcs": [
  57. "lastNotNull"
  58. ],
  59. "fields": "",
  60. "values": false
  61. },
  62. "textMode": "auto"
  63. },
  64. "pluginVersion": "7.2.0",
  65. "targets": [
  66. {
  67. "refId": "A",
  68. "target": "stats.gauges.discount.messages.current_id"
  69. }
  70. ],
  71. "timeFrom": null,
  72. "timeShift": null,
  73. "title": "Current message id",
  74. "type": "stat"
  75. },
  76. {
  77. "datasource": null,
  78. "description": "",
  79. "fieldConfig": {
  80. "defaults": {
  81. "custom": {
  82. "align": null,
  83. "filterable": false
  84. },
  85. "mappings": [],
  86. "thresholds": {
  87. "mode": "absolute",
  88. "steps": [
  89. {
  90. "color": "rgb(255, 255, 255)",
  91. "value": null
  92. }
  93. ]
  94. }
  95. },
  96. "overrides": []
  97. },
  98. "gridPos": {
  99. "h": 4,
  100. "w": 2,
  101. "x": 3,
  102. "y": 0
  103. },
  104. "id": 12,
  105. "options": {
  106. "colorMode": "value",
  107. "graphMode": "none",
  108. "justifyMode": "auto",
  109. "orientation": "auto",
  110. "reduceOptions": {
  111. "calcs": [
  112. "lastNotNull"
  113. ],
  114. "fields": "",
  115. "values": false
  116. },
  117. "textMode": "auto"
  118. },
  119. "pluginVersion": "7.2.0",
  120. "targets": [
  121. {
  122. "refId": "A",
  123. "target": "stats.gauges.discount.messages.last_good_id"
  124. }
  125. ],
  126. "timeFrom": null,
  127. "timeShift": null,
  128. "title": "Last good message id",
  129. "type": "stat"
  130. },
  131. {
  132. "datasource": null,
  133. "fieldConfig": {
  134. "defaults": {
  135. "custom": {},
  136. "mappings": [],
  137. "thresholds": {
  138. "mode": "absolute",
  139. "steps": [
  140. {
  141. "color": "blue",
  142. "value": null
  143. }
  144. ]
  145. }
  146. },
  147. "overrides": []
  148. },
  149. "gridPos": {
  150. "h": 4,
  151. "w": 2,
  152. "x": 5,
  153. "y": 0
  154. },
  155. "id": 20,
  156. "options": {
  157. "colorMode": "value",
  158. "graphMode": "area",
  159. "justifyMode": "auto",
  160. "orientation": "auto",
  161. "reduceOptions": {
  162. "calcs": [
  163. "lastNotNull"
  164. ],
  165. "fields": "",
  166. "values": false
  167. },
  168. "textMode": "auto"
  169. },
  170. "pluginVersion": "7.2.0",
  171. "targets": [
  172. {
  173. "refId": "A",
  174. "target": "stats.gauges.discount.messages.recent_message_id"
  175. }
  176. ],
  177. "timeFrom": null,
  178. "timeShift": null,
  179. "title": "Recent niepodam message id",
  180. "type": "stat"
  181. },
  182. {
  183. "datasource": null,
  184. "description": "",
  185. "fieldConfig": {
  186. "defaults": {
  187. "custom": {},
  188. "mappings": [],
  189. "thresholds": {
  190. "mode": "absolute",
  191. "steps": [
  192. {
  193. "color": "blue",
  194. "value": null
  195. }
  196. ]
  197. }
  198. },
  199. "overrides": []
  200. },
  201. "gridPos": {
  202. "h": 4,
  203. "w": 2,
  204. "x": 7,
  205. "y": 0
  206. },
  207. "id": 16,
  208. "options": {
  209. "colorMode": "value",
  210. "graphMode": "area",
  211. "justifyMode": "auto",
  212. "orientation": "auto",
  213. "reduceOptions": {
  214. "calcs": [
  215. "lastNotNull"
  216. ],
  217. "fields": "",
  218. "values": false
  219. },
  220. "textMode": "auto"
  221. },
  222. "pluginVersion": "7.2.0",
  223. "targets": [
  224. {
  225. "refCount": 0,
  226. "refId": "A",
  227. "target": "smartSummarize(hitcount(stats.discount.messages.fetched, '10s'), '1m', 'sum')"
  228. }
  229. ],
  230. "timeFrom": null,
  231. "timeShift": null,
  232. "title": "Requests per minute",
  233. "type": "stat"
  234. },
  235. {
  236. "datasource": null,
  237. "fieldConfig": {
  238. "defaults": {
  239. "custom": {},
  240. "mappings": [
  241. {
  242. "from": "",
  243. "id": 0,
  244. "text": "Running",
  245. "to": "",
  246. "type": 1,
  247. "value": "1"
  248. },
  249. {
  250. "from": "",
  251. "id": 1,
  252. "text": "Waiting",
  253. "to": "",
  254. "type": 1,
  255. "value": "0"
  256. }
  257. ],
  258. "thresholds": {
  259. "mode": "absolute",
  260. "steps": [
  261. {
  262. "color": "semi-dark-orange",
  263. "value": null
  264. },
  265. {
  266. "color": "semi-dark-green",
  267. "value": 1
  268. }
  269. ]
  270. }
  271. },
  272. "overrides": []
  273. },
  274. "gridPos": {
  275. "h": 4,
  276. "w": 3,
  277. "x": 9,
  278. "y": 0
  279. },
  280. "id": 10,
  281. "options": {
  282. "colorMode": "value",
  283. "graphMode": "area",
  284. "justifyMode": "auto",
  285. "orientation": "auto",
  286. "reduceOptions": {
  287. "calcs": [
  288. "lastNotNull"
  289. ],
  290. "fields": "",
  291. "values": false
  292. },
  293. "textMode": "auto"
  294. },
  295. "pluginVersion": "7.2.0",
  296. "targets": [
  297. {
  298. "refId": "A",
  299. "target": "stats.gauges.discount.running"
  300. }
  301. ],
  302. "timeFrom": null,
  303. "timeShift": null,
  304. "title": "Running",
  305. "type": "stat"
  306. },
  307. {
  308. "cards": {
  309. "cardPadding": null,
  310. "cardRound": null
  311. },
  312. "color": {
  313. "cardColor": "rgb(167, 242, 9)",
  314. "colorScale": "sqrt",
  315. "colorScheme": "interpolateOranges",
  316. "exponent": 0.5,
  317. "min": null,
  318. "mode": "opacity"
  319. },
  320. "dataFormat": "tsbuckets",
  321. "datasource": null,
  322. "fieldConfig": {
  323. "defaults": {
  324. "custom": {
  325. "align": null,
  326. "filterable": false
  327. },
  328. "mappings": [],
  329. "thresholds": {
  330. "mode": "absolute",
  331. "steps": [
  332. {
  333. "color": "green",
  334. "value": null
  335. },
  336. {
  337. "color": "red",
  338. "value": 80
  339. }
  340. ]
  341. }
  342. },
  343. "overrides": []
  344. },
  345. "gridPos": {
  346. "h": 8,
  347. "w": 11,
  348. "x": 12,
  349. "y": 0
  350. },
  351. "heatmap": {},
  352. "hideZeroBuckets": false,
  353. "highlightCards": true,
  354. "id": 18,
  355. "legend": {
  356. "show": false
  357. },
  358. "pluginVersion": "7.2.0",
  359. "reverseYBuckets": false,
  360. "targets": [
  361. {
  362. "refCount": 0,
  363. "refId": "A",
  364. "target": "hitcount(stats.discount.messages.match_reasons.important, '10s')",
  365. "textEditor": false
  366. },
  367. {
  368. "refCount": 0,
  369. "refId": "B",
  370. "target": "hitcount(stats.discount.messages.match_reasons.whitelist, '10s')",
  371. "textEditor": false
  372. },
  373. {
  374. "refCount": 0,
  375. "refId": "C",
  376. "target": "hitcount(stats.discount.messages.match_reasons.blacklist, '10s')",
  377. "textEditor": false
  378. }
  379. ],
  380. "timeFrom": null,
  381. "timeShift": null,
  382. "title": "Match reasons",
  383. "tooltip": {
  384. "show": true,
  385. "showHistogram": false
  386. },
  387. "transformations": [],
  388. "type": "heatmap",
  389. "xAxis": {
  390. "show": true
  391. },
  392. "xBucketNumber": null,
  393. "xBucketSize": null,
  394. "yAxis": {
  395. "decimals": 1,
  396. "format": "short",
  397. "logBase": 1,
  398. "max": null,
  399. "min": null,
  400. "show": true,
  401. "splitFactor": null
  402. },
  403. "yBucketBound": "middle",
  404. "yBucketNumber": null,
  405. "yBucketSize": null
  406. },
  407. {
  408. "aliasColors": {},
  409. "bars": true,
  410. "dashLength": 10,
  411. "dashes": false,
  412. "datasource": "Graphite",
  413. "fieldConfig": {
  414. "defaults": {
  415. "custom": {},
  416. "mappings": [],
  417. "thresholds": {
  418. "mode": "absolute",
  419. "steps": [
  420. {
  421. "color": "green",
  422. "value": null
  423. },
  424. {
  425. "color": "red",
  426. "value": 80
  427. }
  428. ]
  429. }
  430. },
  431. "overrides": [
  432. {
  433. "matcher": {
  434. "id": "byName",
  435. "options": "stats.discount.messages.saved"
  436. },
  437. "properties": [
  438. {
  439. "id": "displayName",
  440. "value": "Saved"
  441. }
  442. ]
  443. },
  444. {
  445. "matcher": {
  446. "id": "byName",
  447. "options": "stats.discount.messages.fetch_failed"
  448. },
  449. "properties": [
  450. {
  451. "id": "links"
  452. }
  453. ]
  454. },
  455. {
  456. "matcher": {
  457. "id": "byName",
  458. "options": "stats.discount.messages.fetched"
  459. },
  460. "properties": []
  461. }
  462. ]
  463. },
  464. "fill": 1,
  465. "fillGradient": 0,
  466. "gridPos": {
  467. "h": 9,
  468. "w": 12,
  469. "x": 0,
  470. "y": 4
  471. },
  472. "hiddenSeries": false,
  473. "id": 2,
  474. "interval": "1",
  475. "legend": {
  476. "alignAsTable": false,
  477. "avg": true,
  478. "current": false,
  479. "hideEmpty": false,
  480. "hideZero": false,
  481. "max": false,
  482. "min": false,
  483. "rightSide": false,
  484. "show": true,
  485. "total": false,
  486. "values": true
  487. },
  488. "lines": false,
  489. "linewidth": 1,
  490. "nullPointMode": "connected",
  491. "options": {
  492. "alertThreshold": false
  493. },
  494. "percentage": false,
  495. "pluginVersion": "7.2.0",
  496. "pointradius": 2,
  497. "points": false,
  498. "renderer": "flot",
  499. "seriesOverrides": [
  500. {
  501. "alias": "Saved",
  502. "color": "rgb(0, 65, 232)"
  503. },
  504. {
  505. "alias": "stats.discount.messages.fetch_failed",
  506. "color": "#E02F44",
  507. "stack": "D"
  508. },
  509. {
  510. "alias": "stats.discount.messages.ignored",
  511. "color": "#FADE2A",
  512. "stack": "C"
  513. },
  514. {
  515. "alias": "stats.discount.messages.fetched",
  516. "color": "#73BF69"
  517. },
  518. {
  519. "alias": "stats.discount.messages.saved.important",
  520. "color": "#8F3BB8"
  521. }
  522. ],
  523. "spaceLength": 10,
  524. "stack": false,
  525. "steppedLine": false,
  526. "targets": [
  527. {
  528. "hide": false,
  529. "refCount": 0,
  530. "refId": "A",
  531. "target": "hitcount(stats.discount.messages.fetched, '10s')",
  532. "textEditor": true
  533. },
  534. {
  535. "refCount": 0,
  536. "refId": "B",
  537. "target": "hitcount(stats.discount.messages.ignored, '10s')",
  538. "textEditor": true
  539. },
  540. {
  541. "hide": false,
  542. "refCount": 0,
  543. "refId": "D",
  544. "target": "hitcount(stats.discount.messages.fetch_failed, '10s')",
  545. "textEditor": true
  546. },
  547. {
  548. "hide": false,
  549. "refCount": 0,
  550. "refId": "C",
  551. "target": "hitcount(stats.discount.messages.saved.default, '10s')",
  552. "textEditor": true
  553. },
  554. {
  555. "hide": false,
  556. "refCount": 0,
  557. "refId": "E",
  558. "target": "hitcount(stats.discount.messages.saved.important, '10s')",
  559. "textEditor": true
  560. },
  561. {
  562. "hide": false,
  563. "refCount": 0,
  564. "refId": "F",
  565. "target": "hitcount(stats.discount.messages.fetch_retries, '10s')",
  566. "textEditor": true
  567. }
  568. ],
  569. "thresholds": [],
  570. "timeFrom": null,
  571. "timeRegions": [],
  572. "timeShift": null,
  573. "title": "Fetched messages",
  574. "tooltip": {
  575. "shared": true,
  576. "sort": 0,
  577. "value_type": "individual"
  578. },
  579. "type": "graph",
  580. "xaxis": {
  581. "buckets": null,
  582. "mode": "time",
  583. "name": null,
  584. "show": true,
  585. "values": []
  586. },
  587. "yaxes": [
  588. {
  589. "decimals": 0,
  590. "format": "short",
  591. "label": null,
  592. "logBase": 1,
  593. "max": null,
  594. "min": null,
  595. "show": true
  596. },
  597. {
  598. "format": "short",
  599. "label": null,
  600. "logBase": 1,
  601. "max": null,
  602. "min": null,
  603. "show": true
  604. }
  605. ],
  606. "yaxis": {
  607. "align": false,
  608. "alignLevel": null
  609. }
  610. },
  611. {
  612. "datasource": null,
  613. "description": "",
  614. "fieldConfig": {
  615. "defaults": {
  616. "custom": {},
  617. "decimals": 0,
  618. "mappings": [],
  619. "thresholds": {
  620. "mode": "absolute",
  621. "steps": [
  622. {
  623. "color": "rgb(255, 255, 255)",
  624. "value": null
  625. },
  626. {
  627. "color": "orange",
  628. "value": 50
  629. }
  630. ]
  631. }
  632. },
  633. "overrides": []
  634. },
  635. "gridPos": {
  636. "h": 4,
  637. "w": 2,
  638. "x": 12,
  639. "y": 8
  640. },
  641. "id": 14,
  642. "options": {
  643. "colorMode": "value",
  644. "graphMode": "area",
  645. "justifyMode": "auto",
  646. "orientation": "auto",
  647. "reduceOptions": {
  648. "calcs": [
  649. "lastNotNull"
  650. ],
  651. "fields": "",
  652. "values": false
  653. },
  654. "textMode": "auto"
  655. },
  656. "pluginVersion": "7.2.0",
  657. "targets": [
  658. {
  659. "hide": false,
  660. "refCount": 0,
  661. "refId": "A",
  662. "target": "keepLastValue(stats.gauges.discount.messages.current_id, 1)",
  663. "textEditor": false
  664. },
  665. {
  666. "hide": false,
  667. "refCount": 0,
  668. "refId": "B",
  669. "target": "keepLastValue(stats.gauges.discount.messages.recent_message_id, 1)",
  670. "textEditor": false
  671. }
  672. ],
  673. "timeFrom": null,
  674. "timeShift": null,
  675. "title": "Messages ahead",
  676. "transformations": [
  677. {
  678. "id": "calculateField",
  679. "options": {
  680. "binary": {
  681. "left": "keepLastValue(stats.gauges.discount.messages.current_id)",
  682. "operator": "-",
  683. "reducer": "sum",
  684. "right": "keepLastValue(stats.gauges.discount.messages.recent_message_id)"
  685. },
  686. "mode": "binary",
  687. "reduce": {
  688. "include": [],
  689. "reducer": "sum"
  690. },
  691. "replaceFields": true
  692. }
  693. }
  694. ],
  695. "type": "stat"
  696. },
  697. {
  698. "datasource": null,
  699. "description": "",
  700. "fieldConfig": {
  701. "defaults": {
  702. "custom": {},
  703. "mappings": [],
  704. "thresholds": {
  705. "mode": "absolute",
  706. "steps": [
  707. {
  708. "color": "blue",
  709. "value": null
  710. }
  711. ]
  712. }
  713. },
  714. "overrides": []
  715. },
  716. "gridPos": {
  717. "h": 4,
  718. "w": 2,
  719. "x": 14,
  720. "y": 8
  721. },
  722. "id": 21,
  723. "options": {
  724. "colorMode": "value",
  725. "graphMode": "area",
  726. "justifyMode": "auto",
  727. "orientation": "auto",
  728. "reduceOptions": {
  729. "calcs": [
  730. "lastNotNull"
  731. ],
  732. "fields": "",
  733. "values": false
  734. },
  735. "textMode": "auto"
  736. },
  737. "pluginVersion": "7.2.0",
  738. "targets": [
  739. {
  740. "refCount": 0,
  741. "refId": "A",
  742. "target": "hitcount(stats.discount.homepage_recent_id_checks, '10s')"
  743. }
  744. ],
  745. "timeFrom": null,
  746. "timeShift": null,
  747. "title": "Homepage recent id checks",
  748. "type": "stat"
  749. },
  750. {
  751. "aliasColors": {},
  752. "bars": false,
  753. "cacheTimeout": "",
  754. "dashLength": 10,
  755. "dashes": false,
  756. "datasource": "Graphite",
  757. "fieldConfig": {
  758. "defaults": {
  759. "custom": {},
  760. "mappings": [],
  761. "thresholds": {
  762. "mode": "absolute",
  763. "steps": [
  764. {
  765. "color": "green",
  766. "value": null
  767. },
  768. {
  769. "color": "red",
  770. "value": 80
  771. }
  772. ]
  773. }
  774. },
  775. "overrides": [
  776. {
  777. "matcher": {
  778. "id": "byName",
  779. "options": "movingAverage(stats.timers.discount.time.message_fetch.upper,5)"
  780. },
  781. "properties": [
  782. {
  783. "id": "displayName",
  784. "value": "Upper"
  785. }
  786. ]
  787. },
  788. {
  789. "matcher": {
  790. "id": "byName",
  791. "options": "movingAverage(stats.timers.discount.time.message_fetch.lower,5)"
  792. },
  793. "properties": [
  794. {
  795. "id": "displayName",
  796. "value": "Lower"
  797. }
  798. ]
  799. },
  800. {
  801. "matcher": {
  802. "id": "byName",
  803. "options": "movingAverage(stats.timers.discount.time.message_fetch.mean,5)"
  804. },
  805. "properties": [
  806. {
  807. "id": "displayName",
  808. "value": "Average"
  809. }
  810. ]
  811. }
  812. ]
  813. },
  814. "fill": 5,
  815. "fillGradient": 6,
  816. "gridPos": {
  817. "h": 8,
  818. "w": 12,
  819. "x": 0,
  820. "y": 13
  821. },
  822. "hiddenSeries": false,
  823. "id": 6,
  824. "interval": "",
  825. "legend": {
  826. "avg": false,
  827. "current": false,
  828. "max": false,
  829. "min": false,
  830. "show": true,
  831. "total": false,
  832. "values": false
  833. },
  834. "lines": true,
  835. "linewidth": 1,
  836. "maxDataPoints": 100,
  837. "nullPointMode": "connected",
  838. "options": {
  839. "alertThreshold": true
  840. },
  841. "percentage": false,
  842. "pluginVersion": "7.2.0",
  843. "pointradius": 2,
  844. "points": false,
  845. "renderer": "flot",
  846. "seriesOverrides": [],
  847. "spaceLength": 10,
  848. "stack": false,
  849. "steppedLine": false,
  850. "targets": [
  851. {
  852. "hide": false,
  853. "refCount": 0,
  854. "refId": "C",
  855. "target": "movingAverage(stats.timers.discount.time.message_fetch.upper, 5)",
  856. "textEditor": false
  857. },
  858. {
  859. "hide": false,
  860. "refCount": 0,
  861. "refId": "A",
  862. "target": "movingAverage(stats.timers.discount.time.message_fetch.mean, 5)"
  863. },
  864. {
  865. "refCount": 0,
  866. "refId": "B",
  867. "target": "movingAverage(stats.timers.discount.time.message_fetch.lower, 5)"
  868. }
  869. ],
  870. "thresholds": [],
  871. "timeFrom": null,
  872. "timeRegions": [],
  873. "timeShift": null,
  874. "title": "Message fetch delay",
  875. "tooltip": {
  876. "shared": true,
  877. "sort": 0,
  878. "value_type": "individual"
  879. },
  880. "type": "graph",
  881. "xaxis": {
  882. "buckets": null,
  883. "mode": "time",
  884. "name": null,
  885. "show": true,
  886. "values": []
  887. },
  888. "yaxes": [
  889. {
  890. "format": "ms",
  891. "label": "",
  892. "logBase": 1,
  893. "max": null,
  894. "min": null,
  895. "show": true
  896. },
  897. {
  898. "format": "short",
  899. "label": null,
  900. "logBase": 1,
  901. "max": null,
  902. "min": null,
  903. "show": true
  904. }
  905. ],
  906. "yaxis": {
  907. "align": false,
  908. "alignLevel": null
  909. }
  910. }
  911. ],
  912. "refresh": "5s",
  913. "schemaVersion": 26,
  914. "style": "dark",
  915. "tags": [],
  916. "templating": {
  917. "list": []
  918. },
  919. "time": {
  920. "from": "now-5m",
  921. "to": "now"
  922. },
  923. "timepicker": {},
  924. "timezone": "",
  925. "title": "Discount2",
  926. "uid": "fuKwplCGk2",
  927. "version": 12
  928. }
Advertisement
Add Comment
Please, Sign In to add comment