szymski

Untitled

May 21st, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.03 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": 1,
  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": "light-yellow",
  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. "mean"
  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 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. "refId": "A",
  226. "target": "smartSummarize(nonNegativeDerivative(stats.discount.messages.fetched), '1m', 'sum')"
  227. }
  228. ],
  229. "timeFrom": null,
  230. "timeShift": null,
  231. "title": "Requests per minute",
  232. "type": "stat"
  233. },
  234. {
  235. "datasource": null,
  236. "fieldConfig": {
  237. "defaults": {
  238. "custom": {},
  239. "mappings": [
  240. {
  241. "from": "",
  242. "id": 0,
  243. "text": "Running",
  244. "to": "",
  245. "type": 1,
  246. "value": "1"
  247. },
  248. {
  249. "from": "",
  250. "id": 1,
  251. "text": "Waiting",
  252. "to": "",
  253. "type": 1,
  254. "value": "0"
  255. }
  256. ],
  257. "thresholds": {
  258. "mode": "absolute",
  259. "steps": [
  260. {
  261. "color": "semi-dark-orange",
  262. "value": null
  263. },
  264. {
  265. "color": "semi-dark-green",
  266. "value": 1
  267. }
  268. ]
  269. }
  270. },
  271. "overrides": []
  272. },
  273. "gridPos": {
  274. "h": 4,
  275. "w": 3,
  276. "x": 9,
  277. "y": 0
  278. },
  279. "id": 10,
  280. "options": {
  281. "colorMode": "value",
  282. "graphMode": "area",
  283. "justifyMode": "auto",
  284. "orientation": "auto",
  285. "reduceOptions": {
  286. "calcs": [
  287. "lastNotNull"
  288. ],
  289. "fields": "",
  290. "values": false
  291. },
  292. "textMode": "auto"
  293. },
  294. "pluginVersion": "7.2.0",
  295. "targets": [
  296. {
  297. "refId": "A",
  298. "target": "stats.gauges.discount.running"
  299. }
  300. ],
  301. "timeFrom": null,
  302. "timeShift": null,
  303. "title": "Running",
  304. "type": "stat"
  305. },
  306. {
  307. "cards": {
  308. "cardPadding": null,
  309. "cardRound": null
  310. },
  311. "color": {
  312. "cardColor": "rgb(167, 242, 9)",
  313. "colorScale": "sqrt",
  314. "colorScheme": "interpolateOranges",
  315. "exponent": 0.5,
  316. "min": null,
  317. "mode": "opacity"
  318. },
  319. "dataFormat": "tsbuckets",
  320. "datasource": null,
  321. "fieldConfig": {
  322. "defaults": {
  323. "custom": {
  324. "align": null,
  325. "filterable": false
  326. },
  327. "mappings": [],
  328. "thresholds": {
  329. "mode": "absolute",
  330. "steps": [
  331. {
  332. "color": "green",
  333. "value": null
  334. },
  335. {
  336. "color": "red",
  337. "value": 80
  338. }
  339. ]
  340. }
  341. },
  342. "overrides": []
  343. },
  344. "gridPos": {
  345. "h": 8,
  346. "w": 11,
  347. "x": 12,
  348. "y": 0
  349. },
  350. "heatmap": {},
  351. "hideZeroBuckets": false,
  352. "highlightCards": true,
  353. "id": 18,
  354. "legend": {
  355. "show": false
  356. },
  357. "pluginVersion": "7.2.0",
  358. "reverseYBuckets": false,
  359. "targets": [
  360. {
  361. "refCount": 0,
  362. "refId": "A",
  363. "target": "stats.discount.messages.match_reasons.important",
  364. "textEditor": false
  365. },
  366. {
  367. "refCount": 0,
  368. "refId": "B",
  369. "target": "stats.discount.messages.match_reasons.whitelist",
  370. "textEditor": false
  371. },
  372. {
  373. "refCount": 0,
  374. "refId": "C",
  375. "target": "stats.discount.messages.match_reasons.blacklist",
  376. "textEditor": false
  377. }
  378. ],
  379. "timeFrom": null,
  380. "timeShift": null,
  381. "title": "Match reasons",
  382. "tooltip": {
  383. "show": true,
  384. "showHistogram": false
  385. },
  386. "transformations": [],
  387. "type": "heatmap",
  388. "xAxis": {
  389. "show": true
  390. },
  391. "xBucketNumber": null,
  392. "xBucketSize": null,
  393. "yAxis": {
  394. "decimals": 1,
  395. "format": "short",
  396. "logBase": 1,
  397. "max": null,
  398. "min": null,
  399. "show": true,
  400. "splitFactor": null
  401. },
  402. "yBucketBound": "middle",
  403. "yBucketNumber": null,
  404. "yBucketSize": null
  405. },
  406. {
  407. "aliasColors": {},
  408. "bars": true,
  409. "dashLength": 10,
  410. "dashes": false,
  411. "datasource": "Graphite",
  412. "fieldConfig": {
  413. "defaults": {
  414. "custom": {},
  415. "mappings": [],
  416. "thresholds": {
  417. "mode": "absolute",
  418. "steps": [
  419. {
  420. "color": "green",
  421. "value": null
  422. },
  423. {
  424. "color": "red",
  425. "value": 80
  426. }
  427. ]
  428. }
  429. },
  430. "overrides": [
  431. {
  432. "matcher": {
  433. "id": "byName",
  434. "options": "stats.discount.messages.saved"
  435. },
  436. "properties": [
  437. {
  438. "id": "displayName",
  439. "value": "Saved"
  440. }
  441. ]
  442. },
  443. {
  444. "matcher": {
  445. "id": "byName",
  446. "options": "stats.discount.messages.fetch_failed"
  447. },
  448. "properties": [
  449. {
  450. "id": "links"
  451. }
  452. ]
  453. },
  454. {
  455. "matcher": {
  456. "id": "byName",
  457. "options": "stats.discount.messages.fetched"
  458. },
  459. "properties": []
  460. }
  461. ]
  462. },
  463. "fill": 1,
  464. "fillGradient": 0,
  465. "gridPos": {
  466. "h": 9,
  467. "w": 12,
  468. "x": 0,
  469. "y": 4
  470. },
  471. "hiddenSeries": false,
  472. "id": 2,
  473. "interval": "1",
  474. "legend": {
  475. "alignAsTable": false,
  476. "avg": true,
  477. "current": false,
  478. "hideEmpty": false,
  479. "hideZero": false,
  480. "max": false,
  481. "min": false,
  482. "rightSide": false,
  483. "show": true,
  484. "total": false,
  485. "values": true
  486. },
  487. "lines": false,
  488. "linewidth": 1,
  489. "nullPointMode": "connected",
  490. "options": {
  491. "alertThreshold": false
  492. },
  493. "percentage": false,
  494. "pluginVersion": "7.2.0",
  495. "pointradius": 2,
  496. "points": false,
  497. "renderer": "flot",
  498. "seriesOverrides": [
  499. {
  500. "alias": "Saved",
  501. "color": "rgb(0, 65, 232)"
  502. },
  503. {
  504. "alias": "stats.discount.messages.fetch_failed",
  505. "color": "#E02F44",
  506. "stack": "D"
  507. },
  508. {
  509. "alias": "stats.discount.messages.ignored",
  510. "color": "#FADE2A",
  511. "stack": "C"
  512. },
  513. {
  514. "alias": "stats.discount.messages.fetched",
  515. "color": "#73BF69"
  516. },
  517. {
  518. "alias": "stats.discount.messages.saved.important",
  519. "color": "#8F3BB8"
  520. }
  521. ],
  522. "spaceLength": 10,
  523. "stack": false,
  524. "steppedLine": false,
  525. "targets": [
  526. {
  527. "hide": false,
  528. "refCount": 0,
  529. "refId": "A",
  530. "target": "stats.discount.messages.fetched",
  531. "textEditor": false
  532. },
  533. {
  534. "refCount": 0,
  535. "refId": "B",
  536. "target": "stats.discount.messages.ignored"
  537. },
  538. {
  539. "hide": false,
  540. "refCount": 0,
  541. "refId": "D",
  542. "target": "stats.discount.messages.fetch_failed"
  543. },
  544. {
  545. "hide": false,
  546. "refCount": 0,
  547. "refId": "C",
  548. "target": "stats.discount.messages.saved.default",
  549. "textEditor": true
  550. },
  551. {
  552. "hide": false,
  553. "refCount": 0,
  554. "refId": "E",
  555. "target": "stats.discount.messages.saved.important",
  556. "textEditor": true
  557. }
  558. ],
  559. "thresholds": [],
  560. "timeFrom": null,
  561. "timeRegions": [],
  562. "timeShift": null,
  563. "title": "Fetched messages",
  564. "tooltip": {
  565. "shared": true,
  566. "sort": 0,
  567. "value_type": "individual"
  568. },
  569. "type": "graph",
  570. "xaxis": {
  571. "buckets": null,
  572. "mode": "time",
  573. "name": null,
  574. "show": true,
  575. "values": []
  576. },
  577. "yaxes": [
  578. {
  579. "decimals": 0,
  580. "format": "short",
  581. "label": null,
  582. "logBase": 1,
  583. "max": null,
  584. "min": null,
  585. "show": true
  586. },
  587. {
  588. "format": "short",
  589. "label": null,
  590. "logBase": 1,
  591. "max": null,
  592. "min": null,
  593. "show": true
  594. }
  595. ],
  596. "yaxis": {
  597. "align": false,
  598. "alignLevel": null
  599. }
  600. },
  601. {
  602. "datasource": null,
  603. "description": "",
  604. "fieldConfig": {
  605. "defaults": {
  606. "custom": {},
  607. "decimals": 0,
  608. "mappings": [],
  609. "thresholds": {
  610. "mode": "absolute",
  611. "steps": [
  612. {
  613. "color": "rgb(255, 255, 255)",
  614. "value": null
  615. },
  616. {
  617. "color": "orange",
  618. "value": 50
  619. }
  620. ]
  621. }
  622. },
  623. "overrides": []
  624. },
  625. "gridPos": {
  626. "h": 4,
  627. "w": 2,
  628. "x": 12,
  629. "y": 8
  630. },
  631. "id": 14,
  632. "options": {
  633. "colorMode": "value",
  634. "graphMode": "area",
  635. "justifyMode": "auto",
  636. "orientation": "auto",
  637. "reduceOptions": {
  638. "calcs": [
  639. "mean"
  640. ],
  641. "fields": "",
  642. "values": false
  643. },
  644. "textMode": "auto"
  645. },
  646. "pluginVersion": "7.2.0",
  647. "targets": [
  648. {
  649. "hide": false,
  650. "refCount": 0,
  651. "refId": "A",
  652. "target": "stats.gauges.discount.messages.current_id",
  653. "textEditor": true
  654. },
  655. {
  656. "hide": false,
  657. "refCount": 0,
  658. "refId": "B",
  659. "target": "stats.gauges.discount.messages.last_good_id",
  660. "textEditor": false
  661. }
  662. ],
  663. "timeFrom": null,
  664. "timeShift": null,
  665. "title": "Messages ahead",
  666. "transformations": [
  667. {
  668. "id": "calculateField",
  669. "options": {
  670. "binary": {
  671. "left": "stats.gauges.discount.messages.current_id",
  672. "operator": "-",
  673. "reducer": "sum",
  674. "right": "stats.gauges.discount.messages.last_good_id"
  675. },
  676. "mode": "binary",
  677. "reduce": {
  678. "include": [],
  679. "reducer": "sum"
  680. },
  681. "replaceFields": true
  682. }
  683. }
  684. ],
  685. "type": "stat"
  686. },
  687. {
  688. "aliasColors": {},
  689. "bars": false,
  690. "cacheTimeout": "",
  691. "dashLength": 10,
  692. "dashes": false,
  693. "datasource": "Graphite",
  694. "fieldConfig": {
  695. "defaults": {
  696. "custom": {},
  697. "mappings": [],
  698. "thresholds": {
  699. "mode": "absolute",
  700. "steps": [
  701. {
  702. "color": "green",
  703. "value": null
  704. },
  705. {
  706. "color": "red",
  707. "value": 80
  708. }
  709. ]
  710. }
  711. },
  712. "overrides": [
  713. {
  714. "matcher": {
  715. "id": "byName",
  716. "options": "movingAverage(stats.timers.discount.time.message_fetch.upper,5)"
  717. },
  718. "properties": [
  719. {
  720. "id": "displayName",
  721. "value": "Upper"
  722. }
  723. ]
  724. },
  725. {
  726. "matcher": {
  727. "id": "byName",
  728. "options": "movingAverage(stats.timers.discount.time.message_fetch.lower,5)"
  729. },
  730. "properties": [
  731. {
  732. "id": "displayName",
  733. "value": "Lower"
  734. }
  735. ]
  736. },
  737. {
  738. "matcher": {
  739. "id": "byName",
  740. "options": "movingAverage(stats.timers.discount.time.message_fetch.mean,5)"
  741. },
  742. "properties": [
  743. {
  744. "id": "displayName",
  745. "value": "Average"
  746. }
  747. ]
  748. }
  749. ]
  750. },
  751. "fill": 5,
  752. "fillGradient": 6,
  753. "gridPos": {
  754. "h": 8,
  755. "w": 12,
  756. "x": 0,
  757. "y": 13
  758. },
  759. "hiddenSeries": false,
  760. "id": 6,
  761. "interval": "",
  762. "legend": {
  763. "avg": false,
  764. "current": false,
  765. "max": false,
  766. "min": false,
  767. "show": true,
  768. "total": false,
  769. "values": false
  770. },
  771. "lines": true,
  772. "linewidth": 1,
  773. "maxDataPoints": 100,
  774. "nullPointMode": "connected",
  775. "options": {
  776. "alertThreshold": true
  777. },
  778. "percentage": false,
  779. "pluginVersion": "7.2.0",
  780. "pointradius": 2,
  781. "points": false,
  782. "renderer": "flot",
  783. "seriesOverrides": [],
  784. "spaceLength": 10,
  785. "stack": false,
  786. "steppedLine": false,
  787. "targets": [
  788. {
  789. "hide": false,
  790. "refCount": 0,
  791. "refId": "C",
  792. "target": "movingAverage(stats.timers.discount.time.message_fetch.upper, 5)",
  793. "textEditor": false
  794. },
  795. {
  796. "hide": false,
  797. "refCount": 0,
  798. "refId": "A",
  799. "target": "movingAverage(stats.timers.discount.time.message_fetch.mean, 5)"
  800. },
  801. {
  802. "refCount": 0,
  803. "refId": "B",
  804. "target": "movingAverage(stats.timers.discount.time.message_fetch.lower, 5)"
  805. }
  806. ],
  807. "thresholds": [],
  808. "timeFrom": null,
  809. "timeRegions": [],
  810. "timeShift": null,
  811. "title": "Message fetch delay",
  812. "tooltip": {
  813. "shared": true,
  814. "sort": 0,
  815. "value_type": "individual"
  816. },
  817. "type": "graph",
  818. "xaxis": {
  819. "buckets": null,
  820. "mode": "time",
  821. "name": null,
  822. "show": true,
  823. "values": []
  824. },
  825. "yaxes": [
  826. {
  827. "format": "ms",
  828. "label": "",
  829. "logBase": 1,
  830. "max": null,
  831. "min": null,
  832. "show": true
  833. },
  834. {
  835. "format": "short",
  836. "label": null,
  837. "logBase": 1,
  838. "max": null,
  839. "min": null,
  840. "show": true
  841. }
  842. ],
  843. "yaxis": {
  844. "align": false,
  845. "alignLevel": null
  846. }
  847. }
  848. ],
  849. "refresh": "5s",
  850. "schemaVersion": 26,
  851. "style": "dark",
  852. "tags": [],
  853. "templating": {
  854. "list": []
  855. },
  856. "time": {
  857. "from": "now-5m",
  858. "to": "now"
  859. },
  860. "timepicker": {},
  861. "timezone": "",
  862. "title": "Discount",
  863. "uid": "fuKwplCGk",
  864. "version": 2
  865. }
Advertisement
Add Comment
Please, Sign In to add comment