dashboard.json 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. {
  2. "annotations": {
  3. "list": [
  4. {
  5. "builtIn": 1,
  6. "datasource": {
  7. "type": "grafana",
  8. "uid": "-- Grafana --"
  9. },
  10. "enable": true,
  11. "hide": true,
  12. "iconColor": "rgba(0, 211, 255, 1)",
  13. "name": "Annotations & Alerts",
  14. "target": {
  15. "limit": 100,
  16. "matchAny": false,
  17. "tags": [],
  18. "type": "dashboard"
  19. },
  20. "type": "dashboard"
  21. }
  22. ]
  23. },
  24. "editable": true,
  25. "fiscalYearStartMonth": 0,
  26. "graphTooltip": 0,
  27. "id": 1,
  28. "iteration": 1656342487734,
  29. "links": [],
  30. "liveNow": false,
  31. "panels": [
  32. {
  33. "datasource": {
  34. "type": "frser-sqlite-datasource",
  35. "uid": "TA7xhL3nk"
  36. },
  37. "description": "rss per process",
  38. "fieldConfig": {
  39. "defaults": {
  40. "color": {
  41. "mode": "palette-classic"
  42. },
  43. "custom": {
  44. "axisLabel": "",
  45. "axisPlacement": "auto",
  46. "barAlignment": 0,
  47. "drawStyle": "line",
  48. "fillOpacity": 50,
  49. "gradientMode": "opacity",
  50. "hideFrom": {
  51. "legend": false,
  52. "tooltip": false,
  53. "viz": false
  54. },
  55. "lineInterpolation": "linear",
  56. "lineWidth": 1,
  57. "pointSize": 5,
  58. "scaleDistribution": {
  59. "type": "linear"
  60. },
  61. "showPoints": "auto",
  62. "spanNulls": true,
  63. "stacking": {
  64. "group": "A",
  65. "mode": "none"
  66. },
  67. "thresholdsStyle": {
  68. "mode": "off"
  69. }
  70. },
  71. "mappings": [],
  72. "thresholds": {
  73. "mode": "absolute",
  74. "steps": [
  75. {
  76. "color": "green",
  77. "value": null
  78. },
  79. {
  80. "color": "red",
  81. "value": 80
  82. }
  83. ]
  84. },
  85. "unit": "decmbytes"
  86. },
  87. "overrides": []
  88. },
  89. "gridPos": {
  90. "h": 9,
  91. "w": 12,
  92. "x": 0,
  93. "y": 0
  94. },
  95. "id": 2,
  96. "options": {
  97. "legend": {
  98. "calcs": [],
  99. "displayMode": "table",
  100. "placement": "right"
  101. },
  102. "tooltip": {
  103. "mode": "single",
  104. "sort": "none"
  105. }
  106. },
  107. "targets": [
  108. {
  109. "datasource": {
  110. "type": "frser-sqlite-datasource",
  111. "uid": "TA7xhL3nk"
  112. },
  113. "queryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\n(rss / 1024) as rss\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
  114. "queryType": "time series",
  115. "rawQueryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\n(rss / 1024) as rss\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
  116. "refId": "A",
  117. "timeColumns": [
  118. "time",
  119. "ts"
  120. ]
  121. }
  122. ],
  123. "title": "rss per process",
  124. "transformations": [],
  125. "type": "timeseries"
  126. },
  127. {
  128. "datasource": {
  129. "type": "frser-sqlite-datasource",
  130. "uid": "TA7xhL3nk"
  131. },
  132. "description": "processes per program",
  133. "fieldConfig": {
  134. "defaults": {
  135. "color": {
  136. "mode": "palette-classic"
  137. },
  138. "custom": {
  139. "axisLabel": "",
  140. "axisPlacement": "auto",
  141. "barAlignment": 0,
  142. "drawStyle": "line",
  143. "fillOpacity": 50,
  144. "gradientMode": "opacity",
  145. "hideFrom": {
  146. "legend": false,
  147. "tooltip": false,
  148. "viz": false
  149. },
  150. "lineInterpolation": "linear",
  151. "lineWidth": 1,
  152. "pointSize": 5,
  153. "scaleDistribution": {
  154. "type": "linear"
  155. },
  156. "showPoints": "auto",
  157. "spanNulls": false,
  158. "stacking": {
  159. "group": "A",
  160. "mode": "none"
  161. },
  162. "thresholdsStyle": {
  163. "mode": "off"
  164. }
  165. },
  166. "mappings": [],
  167. "thresholds": {
  168. "mode": "absolute",
  169. "steps": [
  170. {
  171. "color": "green",
  172. "value": null
  173. },
  174. {
  175. "color": "red",
  176. "value": 80
  177. }
  178. ]
  179. }
  180. },
  181. "overrides": []
  182. },
  183. "gridPos": {
  184. "h": 9,
  185. "w": 12,
  186. "x": 12,
  187. "y": 0
  188. },
  189. "id": 4,
  190. "options": {
  191. "legend": {
  192. "calcs": [],
  193. "displayMode": "table",
  194. "placement": "right"
  195. },
  196. "tooltip": {
  197. "mode": "multi",
  198. "sort": "none"
  199. }
  200. },
  201. "targets": [
  202. {
  203. "datasource": {
  204. "type": "frser-sqlite-datasource",
  205. "uid": "TA7xhL3nk"
  206. },
  207. "queryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\nnum_procs as num_procs\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
  208. "queryType": "table",
  209. "rawQueryText": "WITH RECURSIVE cte(org, part, rest, pos) AS (\n VALUES(replace(replace('$process','}',''),'{',''), '',replace(replace('$process','}',''),'{','')|| ',', 0)\n UNION ALL\n SELECT org,\n replace(SUBSTR(org, pos+1, INSTR(rest, ',') ),',',''),\n SUBSTR(rest, INSTR(rest, ',')+1),\n pos + INSTR(rest, ',')\n FROM cte\n WHERE INSTR(rest, ',') > 0\n) SELECT\ntime,\nname as displayName,\nnum_procs as num_procs\nFROM procsummary\nWHERE\nname IN (select part from cte)\nAND\ntime >= $__from / 1000 and time < $__to / 1000",
  210. "refId": "A",
  211. "timeColumns": [
  212. "time",
  213. "ts"
  214. ]
  215. }
  216. ],
  217. "title": "Processes per program",
  218. "type": "timeseries"
  219. }
  220. ],
  221. "refresh": "",
  222. "schemaVersion": 36,
  223. "style": "dark",
  224. "tags": [],
  225. "templating": {
  226. "list": [
  227. {
  228. "current": {
  229. "selected": true,
  230. "text": [
  231. "All"
  232. ],
  233. "value": [
  234. "$__all"
  235. ]
  236. },
  237. "datasource": {
  238. "type": "frser-sqlite-datasource",
  239. "uid": "TA7xhL3nk"
  240. },
  241. "definition": "SELECT name FROM processes ORDER BY name ASC;",
  242. "description": "name of the process monitored",
  243. "hide": 0,
  244. "includeAll": true,
  245. "label": "process name",
  246. "multi": true,
  247. "name": "process",
  248. "options": [],
  249. "query": "SELECT name FROM processes ORDER BY name ASC;",
  250. "refresh": 1,
  251. "regex": "",
  252. "skipUrlSync": false,
  253. "sort": 0,
  254. "type": "query"
  255. }
  256. ]
  257. },
  258. "time": {
  259. "from": "2022-06-27T08:32:20.153Z",
  260. "to": "2022-06-27T20:32:20.153Z"
  261. },
  262. "timepicker": {},
  263. "timezone": "",
  264. "title": "System status",
  265. "uid": "ECc20Y37k",
  266. "version": 14,
  267. "weekStart": ""
  268. }