szymski

Untitled

May 17th, 2021
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.24 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": "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. "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 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(nonNegativeDerivative(stats.discount.messages.fetched), '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. "thresholds": [],
  563. "timeFrom": null,
  564. "timeRegions": [],
  565. "timeShift": null,
  566. "title": "Fetched messages",
  567. "tooltip": {
  568. "shared": true,
  569. "sort": 0,
  570. "value_type": "individual"
  571. },
  572. "type": "graph",
  573. "xaxis": {
  574. "buckets": null,
  575. "mode": "time",
  576. "name": null,
  577. "show": true,
  578. "values": []
  579. },
  580. "yaxes": [
  581. {
  582. "decimals": 0,
  583. "format": "short",
  584. "label": null,
  585. "logBase": 1,
  586. "max": null,
  587. "min": null,
  588. "show": true
  589. },
  590. {
  591. "format": "short",
  592. "label": null,
  593. "logBase": 1,
  594. "max": null,
  595. "min": null,
  596. "show": true
  597. }
  598. ],
  599. "yaxis": {
  600. "align": false,
  601. "alignLevel": null
  602. }
  603. },
  604. {
  605. "datasource": null,
  606. "description": "",
  607. "fieldConfig": {
  608. "defaults": {
  609. "custom": {},
  610. "decimals": 0,
  611. "mappings": [],
  612. "thresholds": {
  613. "mode": "absolute",
  614. "steps": [
  615. {
  616. "color": "rgb(255, 255, 255)",
  617. "value": null
  618. },
  619. {
  620. "color": "orange",
  621. "value": 50
  622. }
  623. ]
  624. }
  625. },
  626. "overrides": []
  627. },
  628. "gridPos": {
  629. "h": 4,
  630. "w": 2,
  631. "x": 12,
  632. "y": 8
  633. },
  634. "id": 14,
  635. "options": {
  636. "colorMode": "value",
  637. "graphMode": "area",
  638. "justifyMode": "auto",
  639. "orientation": "auto",
  640. "reduceOptions": {
  641. "calcs": [
  642. "mean"
  643. ],
  644. "fields": "",
  645. "values": false
  646. },
  647. "textMode": "auto"
  648. },
  649. "pluginVersion": "7.2.0",
  650. "targets": [
  651. {
  652. "hide": false,
  653. "refCount": 0,
  654. "refId": "A",
  655. "target": "stats.gauges.discount.messages.current_id",
  656. "textEditor": true
  657. },
  658. {
  659. "hide": false,
  660. "refCount": 0,
  661. "refId": "B",
  662. "target": "stats.gauges.discount.messages.last_good_id",
  663. "textEditor": false
  664. }
  665. ],
  666. "timeFrom": null,
  667. "timeShift": null,
  668. "title": "Messages ahead",
  669. "transformations": [
  670. {
  671. "id": "calculateField",
  672. "options": {
  673. "binary": {
  674. "left": "stats.gauges.discount.messages.current_id",
  675. "operator": "-",
  676. "reducer": "sum",
  677. "right": "stats.gauges.discount.messages.last_good_id"
  678. },
  679. "mode": "binary",
  680. "reduce": {
  681. "include": [],
  682. "reducer": "sum"
  683. },
  684. "replaceFields": true
  685. }
  686. }
  687. ],
  688. "type": "stat"
  689. },
  690. {
  691. "aliasColors": {},
  692. "bars": false,
  693. "cacheTimeout": "",
  694. "dashLength": 10,
  695. "dashes": false,
  696. "datasource": "Graphite",
  697. "fieldConfig": {
  698. "defaults": {
  699. "custom": {},
  700. "mappings": [],
  701. "thresholds": {
  702. "mode": "absolute",
  703. "steps": [
  704. {
  705. "color": "green",
  706. "value": null
  707. },
  708. {
  709. "color": "red",
  710. "value": 80
  711. }
  712. ]
  713. }
  714. },
  715. "overrides": [
  716. {
  717. "matcher": {
  718. "id": "byName",
  719. "options": "movingAverage(stats.timers.discount.time.message_fetch.upper,5)"
  720. },
  721. "properties": [
  722. {
  723. "id": "displayName",
  724. "value": "Upper"
  725. }
  726. ]
  727. },
  728. {
  729. "matcher": {
  730. "id": "byName",
  731. "options": "movingAverage(stats.timers.discount.time.message_fetch.lower,5)"
  732. },
  733. "properties": [
  734. {
  735. "id": "displayName",
  736. "value": "Lower"
  737. }
  738. ]
  739. },
  740. {
  741. "matcher": {
  742. "id": "byName",
  743. "options": "movingAverage(stats.timers.discount.time.message_fetch.mean,5)"
  744. },
  745. "properties": [
  746. {
  747. "id": "displayName",
  748. "value": "Average"
  749. }
  750. ]
  751. }
  752. ]
  753. },
  754. "fill": 5,
  755. "fillGradient": 6,
  756. "gridPos": {
  757. "h": 8,
  758. "w": 12,
  759. "x": 0,
  760. "y": 13
  761. },
  762. "hiddenSeries": false,
  763. "id": 6,
  764. "interval": "",
  765. "legend": {
  766. "avg": false,
  767. "current": false,
  768. "max": false,
  769. "min": false,
  770. "show": true,
  771. "total": false,
  772. "values": false
  773. },
  774. "lines": true,
  775. "linewidth": 1,
  776. "maxDataPoints": 100,
  777. "nullPointMode": "connected",
  778. "options": {
  779. "alertThreshold": true
  780. },
  781. "percentage": false,
  782. "pluginVersion": "7.2.0",
  783. "pointradius": 2,
  784. "points": false,
  785. "renderer": "flot",
  786. "seriesOverrides": [],
  787. "spaceLength": 10,
  788. "stack": false,
  789. "steppedLine": false,
  790. "targets": [
  791. {
  792. "hide": false,
  793. "refCount": 0,
  794. "refId": "C",
  795. "target": "movingAverage(stats.timers.discount.time.message_fetch.upper, 5)",
  796. "textEditor": false
  797. },
  798. {
  799. "hide": false,
  800. "refCount": 0,
  801. "refId": "A",
  802. "target": "movingAverage(stats.timers.discount.time.message_fetch.mean, 5)"
  803. },
  804. {
  805. "refCount": 0,
  806. "refId": "B",
  807. "target": "movingAverage(stats.timers.discount.time.message_fetch.lower, 5)"
  808. }
  809. ],
  810. "thresholds": [],
  811. "timeFrom": null,
  812. "timeRegions": [],
  813. "timeShift": null,
  814. "title": "Message fetch delay",
  815. "tooltip": {
  816. "shared": true,
  817. "sort": 0,
  818. "value_type": "individual"
  819. },
  820. "type": "graph",
  821. "xaxis": {
  822. "buckets": null,
  823. "mode": "time",
  824. "name": null,
  825. "show": true,
  826. "values": []
  827. },
  828. "yaxes": [
  829. {
  830. "format": "ms",
  831. "label": "",
  832. "logBase": 1,
  833. "max": null,
  834. "min": null,
  835. "show": true
  836. },
  837. {
  838. "format": "short",
  839. "label": null,
  840. "logBase": 1,
  841. "max": null,
  842. "min": null,
  843. "show": true
  844. }
  845. ],
  846. "yaxis": {
  847. "align": false,
  848. "alignLevel": null
  849. }
  850. }
  851. ],
  852. "refresh": "5s",
  853. "schemaVersion": 26,
  854. "style": "dark",
  855. "tags": [],
  856. "templating": {
  857. "list": []
  858. },
  859. "time": {
  860. "from": "now-5m",
  861. "to": "now"
  862. },
  863. "timepicker": {},
  864. "timezone": "",
  865. "title": "Discount",
  866. "uid": "fuKwplCGk",
  867. "version": 6
  868. }
Advertisement
Add Comment
Please, Sign In to add comment