shared_queries.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322
  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. "links": [],
  19. "panels": [
  20. {
  21. "aliasColors": {},
  22. "bars": false,
  23. "dashLength": 10,
  24. "dashes": false,
  25. "fill": 0,
  26. "fillGradient": 6,
  27. "gridPos": {
  28. "h": 15,
  29. "w": 12,
  30. "x": 0,
  31. "y": 0
  32. },
  33. "id": 2,
  34. "legend": {
  35. "avg": false,
  36. "current": false,
  37. "max": false,
  38. "min": false,
  39. "show": true,
  40. "total": false,
  41. "values": false
  42. },
  43. "lines": true,
  44. "linewidth": 1,
  45. "nullPointMode": "null",
  46. "options": {
  47. "dataLinks": []
  48. },
  49. "percentage": false,
  50. "pointradius": 2,
  51. "points": true,
  52. "renderer": "flot",
  53. "seriesOverrides": [],
  54. "spaceLength": 10,
  55. "stack": false,
  56. "steppedLine": false,
  57. "targets": [
  58. {
  59. "refId": "A",
  60. "scenarioId": "csv_metric_values",
  61. "stringInput": "1,20,90,30,5,0,100"
  62. },
  63. {
  64. "refId": "B",
  65. "scenarioId": "csv_metric_values",
  66. "stringInput": "1,20,90,30,5,-100,200"
  67. },
  68. {
  69. "refId": "C",
  70. "scenarioId": "csv_metric_values",
  71. "stringInput": "2.5,3.5,4.5,10.5,20.5,21.5,19.5"
  72. }
  73. ],
  74. "thresholds": [],
  75. "timeFrom": null,
  76. "timeRegions": [],
  77. "timeShift": null,
  78. "title": "Raw Data Graph",
  79. "tooltip": {
  80. "shared": true,
  81. "sort": 0,
  82. "value_type": "individual"
  83. },
  84. "type": "graph",
  85. "xaxis": {
  86. "buckets": null,
  87. "mode": "time",
  88. "name": null,
  89. "show": true,
  90. "values": []
  91. },
  92. "yaxes": [
  93. {
  94. "format": "short",
  95. "label": null,
  96. "logBase": 1,
  97. "max": null,
  98. "min": null,
  99. "show": true
  100. },
  101. {
  102. "format": "short",
  103. "label": null,
  104. "logBase": 1,
  105. "max": null,
  106. "min": null,
  107. "show": true
  108. }
  109. ],
  110. "yaxis": {
  111. "align": false,
  112. "alignLevel": null
  113. }
  114. },
  115. {
  116. "datasource": "-- Dashboard --",
  117. "gridPos": {
  118. "h": 5,
  119. "w": 12,
  120. "x": 12,
  121. "y": 0
  122. },
  123. "id": 4,
  124. "options": {
  125. "fieldOptions": {
  126. "calcs": ["lastNotNull"],
  127. "defaults": {
  128. "mappings": [],
  129. "max": 100,
  130. "min": 0,
  131. "thresholds": [
  132. {
  133. "color": "green",
  134. "value": null
  135. },
  136. {
  137. "color": "red",
  138. "value": 80
  139. }
  140. ]
  141. },
  142. "override": {},
  143. "values": false
  144. },
  145. "orientation": "auto",
  146. "showThresholdLabels": false,
  147. "showThresholdMarkers": true
  148. },
  149. "pluginVersion": "6.4.0-pre",
  150. "targets": [
  151. {
  152. "panelId": 2,
  153. "refId": "A"
  154. }
  155. ],
  156. "timeFrom": null,
  157. "timeShift": null,
  158. "title": "Last non nulll",
  159. "type": "gauge"
  160. },
  161. {
  162. "datasource": "-- Dashboard --",
  163. "gridPos": {
  164. "h": 5,
  165. "w": 12,
  166. "x": 12,
  167. "y": 5
  168. },
  169. "id": 6,
  170. "options": {
  171. "fieldOptions": {
  172. "calcs": ["min"],
  173. "defaults": {
  174. "mappings": [],
  175. "max": 100,
  176. "min": 0,
  177. "thresholds": [
  178. {
  179. "color": "green",
  180. "value": null
  181. },
  182. {
  183. "color": "red",
  184. "value": 80
  185. }
  186. ]
  187. },
  188. "override": {},
  189. "values": false
  190. },
  191. "orientation": "auto",
  192. "showThresholdLabels": false,
  193. "showThresholdMarkers": true
  194. },
  195. "pluginVersion": "6.4.0-pre",
  196. "targets": [
  197. {
  198. "panelId": 2,
  199. "refId": "A"
  200. }
  201. ],
  202. "timeFrom": null,
  203. "timeShift": null,
  204. "title": "min",
  205. "type": "gauge"
  206. },
  207. {
  208. "datasource": "-- Dashboard --",
  209. "gridPos": {
  210. "h": 5,
  211. "w": 12,
  212. "x": 12,
  213. "y": 10
  214. },
  215. "id": 5,
  216. "options": {
  217. "displayMode": "basic",
  218. "fieldOptions": {
  219. "calcs": ["max"],
  220. "defaults": {
  221. "mappings": [],
  222. "max": 200,
  223. "min": 0,
  224. "thresholds": [
  225. {
  226. "color": "green",
  227. "value": null
  228. },
  229. {
  230. "color": "blue",
  231. "value": 40
  232. },
  233. {
  234. "color": "red",
  235. "value": 120
  236. }
  237. ]
  238. },
  239. "override": {},
  240. "values": false
  241. },
  242. "orientation": "vertical"
  243. },
  244. "pluginVersion": "6.4.0-pre",
  245. "targets": [
  246. {
  247. "panelId": 2,
  248. "refId": "A"
  249. }
  250. ],
  251. "timeFrom": null,
  252. "timeShift": null,
  253. "title": "Max",
  254. "type": "bargauge"
  255. },
  256. {
  257. "columns": [],
  258. "datasource": "-- Dashboard --",
  259. "fontSize": "100%",
  260. "gridPos": {
  261. "h": 10,
  262. "w": 24,
  263. "x": 0,
  264. "y": 15
  265. },
  266. "id": 8,
  267. "options": {},
  268. "pageSize": null,
  269. "showHeader": true,
  270. "sort": {
  271. "col": 0,
  272. "desc": true
  273. },
  274. "styles": [
  275. {
  276. "alias": "Time",
  277. "dateFormat": "YYYY-MM-DD HH:mm:ss",
  278. "pattern": "Time",
  279. "type": "date"
  280. },
  281. {
  282. "alias": "",
  283. "colorMode": null,
  284. "colors": ["rgba(245, 54, 54, 0.9)", "rgba(237, 129, 40, 0.89)", "rgba(50, 172, 45, 0.97)"],
  285. "decimals": 2,
  286. "pattern": "/.*/",
  287. "thresholds": [],
  288. "type": "number",
  289. "unit": "short"
  290. }
  291. ],
  292. "targets": [
  293. {
  294. "panelId": 2,
  295. "refId": "A"
  296. }
  297. ],
  298. "timeFrom": null,
  299. "timeShift": null,
  300. "title": "Panel Title",
  301. "transform": "timeseries_to_columns",
  302. "type": "table"
  303. }
  304. ],
  305. "schemaVersion": 19,
  306. "style": "dark",
  307. "tags": ["gdev", "datasource-test"],
  308. "templating": {
  309. "list": []
  310. },
  311. "time": {
  312. "from": "now-6h",
  313. "to": "now"
  314. },
  315. "timepicker": {
  316. "refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"]
  317. },
  318. "timezone": "",
  319. "title": "Datasource tests - Shared Queries",
  320. "uid": "ZqZnVvFZz",
  321. "version": 10
  322. }