Advertisement
Guest User

Untitled

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