szymski

Untitled

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