szymski

Untitled

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