Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.00 KB | None | 0 0
  1. {
  2. "__inputs": [
  3. {
  4. "name": "DS_PROMETHEUS",
  5. "label": "Prometheus",
  6. "description": "",
  7. "type": "datasource",
  8. "pluginId": "prometheus",
  9. "pluginName": "Prometheus"
  10. }
  11. ],
  12. "__requires": [
  13. {
  14. "type": "grafana",
  15. "id": "grafana",
  16. "name": "Grafana",
  17. "version": "5.4.3"
  18. },
  19. {
  20. "type": "panel",
  21. "id": "graph",
  22. "name": "Graph",
  23. "version": "5.0.0"
  24. },
  25. {
  26. "type": "datasource",
  27. "id": "prometheus",
  28. "name": "Prometheus",
  29. "version": "5.0.0"
  30. }
  31. ],
  32. "annotations": {
  33. "list": [
  34. {
  35. "builtIn": 1,
  36. "datasource": "${DS_PROMETHEUS}",
  37. "enable": true,
  38. "hide": true,
  39. "iconColor": "rgba(0, 211, 255, 1)",
  40. "name": "Annotations & Alerts",
  41. "type": "dashboard"
  42. }
  43. ]
  44. },
  45. "editable": true,
  46. "gnetId": null,
  47. "graphTooltip": 0,
  48. "id": null,
  49. "links": [],
  50. "panels": [
  51. {
  52. "aliasColors": {},
  53. "bars": false,
  54. "dashLength": 10,
  55. "dashes": false,
  56. "datasource": "${DS_PROMETHEUS}",
  57. "fill": 1,
  58. "gridPos": {
  59. "h": 9,
  60. "w": 12,
  61. "x": 0,
  62. "y": 0
  63. },
  64. "id": 12,
  65. "legend": {
  66. "avg": false,
  67. "current": false,
  68. "max": false,
  69. "min": false,
  70. "show": true,
  71. "total": false,
  72. "values": false
  73. },
  74. "lines": true,
  75. "linewidth": 1,
  76. "links": [],
  77. "nullPointMode": "null",
  78. "percentage": false,
  79. "pointradius": 5,
  80. "points": false,
  81. "renderer": "flot",
  82. "seriesOverrides": [],
  83. "spaceLength": 10,
  84. "stack": false,
  85. "steppedLine": false,
  86. "targets": [
  87. {
  88. "expr": "avg(ruby_sidekiq_workers_size) by (app)",
  89. "format": "time_series",
  90. "groupBy": [
  91. {
  92. "params": [
  93. "$__interval"
  94. ],
  95. "type": "time"
  96. },
  97. {
  98. "params": [
  99. "null"
  100. ],
  101. "type": "fill"
  102. }
  103. ],
  104. "intervalFactor": 1,
  105. "legendFormat": "{{app}}",
  106. "orderByTime": "ASC",
  107. "policy": "default",
  108. "refId": "A",
  109. "resultFormat": "time_series",
  110. "select": [
  111. [
  112. {
  113. "params": [
  114. "value"
  115. ],
  116. "type": "field"
  117. },
  118. {
  119. "params": [],
  120. "type": "mean"
  121. }
  122. ]
  123. ],
  124. "tags": []
  125. }
  126. ],
  127. "thresholds": [],
  128. "timeFrom": null,
  129. "timeRegions": [],
  130. "timeShift": null,
  131. "title": "Active Workers",
  132. "tooltip": {
  133. "shared": true,
  134. "sort": 0,
  135. "value_type": "individual"
  136. },
  137. "type": "graph",
  138. "xaxis": {
  139. "buckets": null,
  140. "mode": "time",
  141. "name": null,
  142. "show": true,
  143. "values": []
  144. },
  145. "yaxes": [
  146. {
  147. "format": "short",
  148. "label": null,
  149. "logBase": 1,
  150. "max": null,
  151. "min": "0",
  152. "show": true
  153. },
  154. {
  155. "format": "short",
  156. "label": null,
  157. "logBase": 1,
  158. "max": null,
  159. "min": null,
  160. "show": false
  161. }
  162. ],
  163. "yaxis": {
  164. "align": false,
  165. "alignLevel": null
  166. }
  167. },
  168. {
  169. "alert": {
  170. "conditions": [
  171. {
  172. "evaluator": {
  173. "params": [
  174. 2000
  175. ],
  176. "type": "gt"
  177. },
  178. "operator": {
  179. "type": "and"
  180. },
  181. "query": {
  182. "params": [
  183. "A",
  184. "5m",
  185. "now"
  186. ]
  187. },
  188. "reducer": {
  189. "params": [],
  190. "type": "avg"
  191. },
  192. "type": "query"
  193. }
  194. ],
  195. "executionErrorState": "alerting",
  196. "for": "5m",
  197. "frequency": "1m",
  198. "handler": 1,
  199. "name": "Enqueued(except Concurrent) alert",
  200. "noDataState": "no_data",
  201. "notifications": []
  202. },
  203. "aliasColors": {},
  204. "bars": false,
  205. "dashLength": 10,
  206. "dashes": false,
  207. "datasource": "${DS_PROMETHEUS}",
  208. "fill": 1,
  209. "gridPos": {
  210. "h": 9,
  211. "w": 12,
  212. "x": 12,
  213. "y": 0
  214. },
  215. "id": 18,
  216. "legend": {
  217. "alignAsTable": false,
  218. "avg": false,
  219. "current": false,
  220. "max": false,
  221. "min": false,
  222. "rightSide": false,
  223. "show": true,
  224. "total": false,
  225. "values": false
  226. },
  227. "lines": true,
  228. "linewidth": 1,
  229. "links": [],
  230. "nullPointMode": "null as zero",
  231. "percentage": false,
  232. "pointradius": 5,
  233. "points": false,
  234. "renderer": "flot",
  235. "seriesOverrides": [],
  236. "spaceLength": 10,
  237. "stack": false,
  238. "steppedLine": false,
  239. "targets": [
  240. {
  241. "expr": "avg(ruby_sidekiq_queues_state{queue!='concurrent'}) by (queue,app)",
  242. "format": "time_series",
  243. "groupBy": [
  244. {
  245. "params": [
  246. "$__interval"
  247. ],
  248. "type": "time"
  249. },
  250. {
  251. "params": [
  252. "null"
  253. ],
  254. "type": "fill"
  255. }
  256. ],
  257. "intervalFactor": 1,
  258. "legendFormat": "{{queue}}@{{app}}",
  259. "orderByTime": "ASC",
  260. "policy": "default",
  261. "refId": "A",
  262. "resultFormat": "time_series",
  263. "select": [
  264. [
  265. {
  266. "params": [
  267. "value"
  268. ],
  269. "type": "field"
  270. },
  271. {
  272. "params": [],
  273. "type": "mean"
  274. }
  275. ]
  276. ],
  277. "tags": []
  278. }
  279. ],
  280. "thresholds": [
  281. {
  282. "colorMode": "critical",
  283. "fill": true,
  284. "line": true,
  285. "op": "gt",
  286. "value": 2000
  287. }
  288. ],
  289. "timeFrom": null,
  290. "timeRegions": [],
  291. "timeShift": null,
  292. "title": "Enqueued(except Concurrent)",
  293. "tooltip": {
  294. "shared": true,
  295. "sort": 0,
  296. "value_type": "individual"
  297. },
  298. "type": "graph",
  299. "xaxis": {
  300. "buckets": null,
  301. "mode": "time",
  302. "name": null,
  303. "show": true,
  304. "values": []
  305. },
  306. "yaxes": [
  307. {
  308. "format": "short",
  309. "label": null,
  310. "logBase": 1,
  311. "max": null,
  312. "min": "0",
  313. "show": true
  314. },
  315. {
  316. "format": "short",
  317. "label": null,
  318. "logBase": 1,
  319. "max": null,
  320. "min": null,
  321. "show": false
  322. }
  323. ],
  324. "yaxis": {
  325. "align": false,
  326. "alignLevel": null
  327. }
  328. },
  329. {
  330. "aliasColors": {},
  331. "bars": false,
  332. "dashLength": 10,
  333. "dashes": false,
  334. "datasource": "${DS_PROMETHEUS}",
  335. "fill": 1,
  336. "gridPos": {
  337. "h": 9,
  338. "w": 8,
  339. "x": 0,
  340. "y": 9
  341. },
  342. "id": 8,
  343. "legend": {
  344. "avg": false,
  345. "current": false,
  346. "max": false,
  347. "min": false,
  348. "show": true,
  349. "total": false,
  350. "values": false
  351. },
  352. "lines": true,
  353. "linewidth": 1,
  354. "links": [],
  355. "nullPointMode": "null as zero",
  356. "percentage": false,
  357. "pointradius": 5,
  358. "points": false,
  359. "renderer": "flot",
  360. "seriesOverrides": [],
  361. "spaceLength": 10,
  362. "stack": false,
  363. "steppedLine": false,
  364. "targets": [
  365. {
  366. "expr": "avg(ruby_sidekiq_scheduled_size) by (app)",
  367. "format": "time_series",
  368. "groupBy": [
  369. {
  370. "params": [
  371. "$__interval"
  372. ],
  373. "type": "time"
  374. },
  375. {
  376. "params": [
  377. "null"
  378. ],
  379. "type": "fill"
  380. }
  381. ],
  382. "intervalFactor": 1,
  383. "legendFormat": "{{app}}",
  384. "orderByTime": "ASC",
  385. "policy": "default",
  386. "refId": "A",
  387. "resultFormat": "time_series",
  388. "select": [
  389. [
  390. {
  391. "params": [
  392. "value"
  393. ],
  394. "type": "field"
  395. },
  396. {
  397. "params": [],
  398. "type": "mean"
  399. }
  400. ]
  401. ],
  402. "tags": []
  403. }
  404. ],
  405. "thresholds": [],
  406. "timeFrom": null,
  407. "timeRegions": [],
  408. "timeShift": null,
  409. "title": "Scheduled",
  410. "tooltip": {
  411. "shared": true,
  412. "sort": 0,
  413. "value_type": "individual"
  414. },
  415. "type": "graph",
  416. "xaxis": {
  417. "buckets": null,
  418. "mode": "time",
  419. "name": null,
  420. "show": true,
  421. "values": []
  422. },
  423. "yaxes": [
  424. {
  425. "format": "short",
  426. "label": null,
  427. "logBase": 1,
  428. "max": null,
  429. "min": "0",
  430. "show": true
  431. },
  432. {
  433. "format": "short",
  434. "label": null,
  435. "logBase": 1,
  436. "max": null,
  437. "min": null,
  438. "show": true
  439. }
  440. ],
  441. "yaxis": {
  442. "align": false,
  443. "alignLevel": null
  444. }
  445. },
  446. {
  447. "aliasColors": {},
  448. "bars": false,
  449. "dashLength": 10,
  450. "dashes": false,
  451. "datasource": "${DS_PROMETHEUS}",
  452. "fill": 1,
  453. "gridPos": {
  454. "h": 9,
  455. "w": 8,
  456. "x": 8,
  457. "y": 9
  458. },
  459. "id": 6,
  460. "legend": {
  461. "alignAsTable": false,
  462. "avg": false,
  463. "current": false,
  464. "max": false,
  465. "min": false,
  466. "rightSide": false,
  467. "show": true,
  468. "total": false,
  469. "values": false
  470. },
  471. "lines": true,
  472. "linewidth": 1,
  473. "links": [],
  474. "nullPointMode": "null as zero",
  475. "percentage": false,
  476. "pointradius": 5,
  477. "points": false,
  478. "renderer": "flot",
  479. "seriesOverrides": [],
  480. "spaceLength": 10,
  481. "stack": false,
  482. "steppedLine": false,
  483. "targets": [
  484. {
  485. "expr": "avg(ruby_sidekiq_queues_state) by (queue, app)",
  486. "format": "time_series",
  487. "groupBy": [
  488. {
  489. "params": [
  490. "$__interval"
  491. ],
  492. "type": "time"
  493. },
  494. {
  495. "params": [
  496. "null"
  497. ],
  498. "type": "fill"
  499. }
  500. ],
  501. "intervalFactor": 1,
  502. "legendFormat": "{{queue}}@{{app}}",
  503. "orderByTime": "ASC",
  504. "policy": "default",
  505. "refId": "A",
  506. "resultFormat": "time_series",
  507. "select": [
  508. [
  509. {
  510. "params": [
  511. "value"
  512. ],
  513. "type": "field"
  514. },
  515. {
  516. "params": [],
  517. "type": "mean"
  518. }
  519. ]
  520. ],
  521. "tags": []
  522. }
  523. ],
  524. "thresholds": [],
  525. "timeFrom": null,
  526. "timeRegions": [],
  527. "timeShift": null,
  528. "title": "Queues",
  529. "tooltip": {
  530. "shared": true,
  531. "sort": 0,
  532. "value_type": "individual"
  533. },
  534. "type": "graph",
  535. "xaxis": {
  536. "buckets": null,
  537. "mode": "time",
  538. "name": null,
  539. "show": true,
  540. "values": []
  541. },
  542. "yaxes": [
  543. {
  544. "format": "short",
  545. "label": null,
  546. "logBase": 1,
  547. "max": null,
  548. "min": "0",
  549. "show": true
  550. },
  551. {
  552. "format": "short",
  553. "label": null,
  554. "logBase": 1,
  555. "max": null,
  556. "min": null,
  557. "show": false
  558. }
  559. ],
  560. "yaxis": {
  561. "align": false,
  562. "alignLevel": null
  563. }
  564. },
  565. {
  566. "aliasColors": {},
  567. "bars": false,
  568. "dashLength": 10,
  569. "dashes": false,
  570. "datasource": "${DS_PROMETHEUS}",
  571. "fill": 1,
  572. "gridPos": {
  573. "h": 9,
  574. "w": 8,
  575. "x": 16,
  576. "y": 9
  577. },
  578. "id": 4,
  579. "legend": {
  580. "avg": false,
  581. "current": false,
  582. "max": false,
  583. "min": false,
  584. "show": true,
  585. "total": false,
  586. "values": false
  587. },
  588. "lines": true,
  589. "linewidth": 1,
  590. "links": [],
  591. "nullPointMode": "null as zero",
  592. "percentage": false,
  593. "pointradius": 5,
  594. "points": false,
  595. "renderer": "flot",
  596. "seriesOverrides": [],
  597. "spaceLength": 10,
  598. "stack": false,
  599. "steppedLine": false,
  600. "targets": [
  601. {
  602. "expr": "avg(ruby_sidekiq_enqueued_size) by (app)",
  603. "format": "time_series",
  604. "groupBy": [
  605. {
  606. "params": [
  607. "$__interval"
  608. ],
  609. "type": "time"
  610. },
  611. {
  612. "params": [
  613. "null"
  614. ],
  615. "type": "fill"
  616. }
  617. ],
  618. "intervalFactor": 1,
  619. "legendFormat": "{{app}}",
  620. "orderByTime": "ASC",
  621. "policy": "default",
  622. "refId": "A",
  623. "resultFormat": "time_series",
  624. "select": [
  625. [
  626. {
  627. "params": [
  628. "value"
  629. ],
  630. "type": "field"
  631. },
  632. {
  633. "params": [],
  634. "type": "mean"
  635. }
  636. ]
  637. ],
  638. "tags": []
  639. }
  640. ],
  641. "thresholds": [],
  642. "timeFrom": null,
  643. "timeRegions": [],
  644. "timeShift": null,
  645. "title": "Enqueued",
  646. "tooltip": {
  647. "shared": true,
  648. "sort": 0,
  649. "value_type": "individual"
  650. },
  651. "type": "graph",
  652. "xaxis": {
  653. "buckets": null,
  654. "mode": "time",
  655. "name": null,
  656. "show": true,
  657. "values": []
  658. },
  659. "yaxes": [
  660. {
  661. "format": "short",
  662. "label": null,
  663. "logBase": 1,
  664. "max": null,
  665. "min": "0",
  666. "show": true
  667. },
  668. {
  669. "format": "short",
  670. "label": null,
  671. "logBase": 1,
  672. "max": null,
  673. "min": null,
  674. "show": false
  675. }
  676. ],
  677. "yaxis": {
  678. "align": false,
  679. "alignLevel": null
  680. }
  681. }
  682. ],
  683. "refresh": "10s",
  684. "schemaVersion": 16,
  685. "style": "dark",
  686. "tags": [],
  687. "templating": {
  688. "list": []
  689. },
  690. "time": {
  691. "from": "now-15m",
  692. "to": "now"
  693. },
  694. "timepicker": {
  695. "refresh_intervals": [
  696. "5s",
  697. "10s",
  698. "30s",
  699. "1m",
  700. "5m",
  701. "15m",
  702. "30m",
  703. "1h",
  704. "2h",
  705. "1d"
  706. ],
  707. "time_options": [
  708. "5m",
  709. "15m",
  710. "1h",
  711. "6h",
  712. "12h",
  713. "24h",
  714. "2d",
  715. "7d",
  716. "30d"
  717. ]
  718. },
  719. "timezone": "",
  720. "title": "Sidekiq",
  721. "uid": "qzO5TTXiz",
  722. "version": 2
  723. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement